/*
Theme Name: Akıllı Ev Sistemleri
Description: Akıllı ev sistemleri için özel olarak tasarlanmış modern WordPress teması. SEO dostu, AdSense uyumlu, responsive tasarım.
Author: AkilliEviniz.com
Version: 1.0
Text Domain: akilli-ev
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, technology, responsive, custom-menu, featured-images, threaded-comments, translation-ready, custom-header, custom-background
*/

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-color: #333;
    --bg-color: #fff;
    --border-color: #e0e0e0;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.header-top {
    padding: 15px 0;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.logo a {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* Navigation */
.main-navigation {
    padding: 15px 0;
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-menu a:hover::before {
    left: 0;
}

.nav-menu a:hover {
    color: white;
    transform: translateY(-2px);
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: var(--shadow);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0;
}

.nav-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu a {
    display: block;
    padding: 12px 20px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
}

.sub-menu a:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    color: white;
    text-align: center;
    padding: 80px 0;
    margin: 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="3" fill="white" opacity="0.1"/><circle cx="40" cy="70" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="30" r="2" fill="white" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="white" opacity="0.1"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    background: white;
    color: var(--primary-color);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Categories Section */
.categories-section {
    background: white;
    margin: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 60px 0;
}

.categories-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    padding: 0 40px;
}

.category-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    padding: 25px;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.category-header:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.category-icon {
    font-size: 2rem;
    margin-right: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.category-header h3 {
    flex: 1;
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0;
}

.toggle-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.category-item.active .toggle-icon {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(102, 126, 234, 0.02);
}

.category-content.open {
    max-height: 300px;
}

.category-link {
    display: block;
    padding: 15px 25px 15px 105px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.category-link:last-child {
    border-bottom: none;
}

.category-link::before {
    content: '→';
    position: absolute;
    left: 80px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.category-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: var(--text-color);
    padding-left: 110px;
}

.category-link:hover::before {
    left: 85px;
    color: var(--secondary-color);
}

/* Main Content */
.main-content {
    background: white;
    margin: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.content-section {
    padding: 60px 40px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.article-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image.placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* AdSense Areas */
.ad-banner {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    text-align: center;
    padding: 40px 20px;
    margin: 40px 0;
    border-radius: 10px;
    color: #888;
    font-style: italic;
}

.ad-sidebar {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    text-align: center;
    padding: 30px 15px;
    border-radius: 10px;
    color: #888;
    font-style: italic;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 40px 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .category-link {
        padding-left: 60px;
    }
    
    .category-link::before {
        left: 35px;
    }
    
    .category-link:hover {
        padding-left: 65px;
    }
    
    .category-link:hover::before {
        left: 40px;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 10px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}