/* AytarMedya - Modern Script Satış Platformu */

/* ===================================
   CSS Değişkenleri
   =================================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #f8fafc;
    --white: #ffffff;
    --dark: #1e293b;
    --text-dark: #334155;
    --text-gray: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #0f172a;
    --white: #1e293b;
    --dark: #f1f5f9;
    --text-dark: #e2e8f0;
    --text-gray: #94a3b8;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
    background: var(--secondary-color);
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

/* Section separators - subtle shadow effect */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(37, 99, 235, 0.1), transparent);
    z-index: 1;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(37, 99, 235, 0.1), transparent);
    z-index: 1;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a i {
    font-size: 0.95em;
    opacity: 0.85;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    background: linear-gradient(135deg, #6b46c1 0%, #3b82f6 50%, #2563eb 100%);
    padding: 50px 0;
    position: relative;
    color: var(--white);
    z-index: 1;
    overflow: hidden;
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    animation: rotate 20s linear infinite;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero > .container > div {
    position: relative;
    z-index: 1;
}

.hero-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ===================================
   Cards
   =================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

/* Script cards with aspect ratio */
.card-image[style*="aspect-ratio"] {
    height: auto;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.card-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card-price-old {
    text-decoration: line-through;
    color: var(--text-gray);
    font-size: 1rem;
    margin-right: 0.5rem;
}

.card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.card-stats i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-subtitle {
    color: #64748b;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto;
}

/* ===================================
   Categories
   =================================== */
.categories {
    background: var(--white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: var(--transition);
    opacity: 0;
}

.category-item:hover::before {
    opacity: 1;
}

.category-item:hover {
    transform: translateY(-10px) scale(1.05);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-count {
    opacity: 0.9;
    font-size: 0.875rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-links li i {
    color: #667eea;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white !important;
    text-decoration: none !important;
}

.social-link i {
    color: white !important;
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .dark-mode-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero .container > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .hero {
        padding: 30px 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero > .container > div > div:last-child {
        height: 200px !important;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-icons i,
    .hero > .container > div > div:last-child i {
        font-size: 2rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.875rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        margin-bottom: 0;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        font-size: 1.4rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Grid adjustments */
    div[style*="grid-template-columns: repeat(auto-fit"],
    div[style*="grid-template-columns: repeat(auto-fill"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Section headers */
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    /* Stats grid */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(200px"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    /* Forms */
    form {
        width: 100%;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        width: 100%;
    }
    
    /* Tables - horizontal scroll */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .card {
        padding: 1rem;
    }
    
    div[style*="grid-template-columns: repeat(auto-fit, minmax(200px"] {
        grid-template-columns: 1fr !important;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Two column grids to single */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    div[style*="grid-template-columns: 2fr 1fr"],
    div[style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Inline flex to column */
    div[style*="display: flex"][style*="gap"] {
        flex-wrap: wrap;
    }
    
    /* Inline grid adjustments */
    div[style*="display: grid"] {
        gap: 1rem !important;
    }
}

/* Additional responsive fixes for specific inline styles */
@media (max-width: 768px) {
    /* Hero section responsive */
    .hero > .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Section grids */
    section > div[style*="grid-template-columns"] > div {
        width: 100%;
    }
    
    /* Badge and button groups */
    div[style*="display: inline-flex"],
    div[style*="display: flex"][style*="gap: 0.5rem"] {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Form grids */
    form > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    /* All multi-column grids to single */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===================================
   Utilities
   =================================== */
.text-center {
    text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Loading Animation */
.loader {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-top.active {
    display: flex;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links li i {
    color: #667eea;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===================================
   Dark Mode Styles
   =================================== */
[data-theme="dark"] body {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

[data-theme="dark"] .header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .section {
    background: var(--secondary-color);
}

[data-theme="dark"] .card {
    background: var(--white);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .card:hover {
    border-color: var(--primary-color);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
}

[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid var(--border-color);
}

/* Dark mode for inline styles in sections */
[data-theme="dark"] section[style*="background"] {
    background: var(--secondary-color) !important;
}

[data-theme="dark"] div[style*="background: white"],
[data-theme="dark"] div[style*="background:linear-gradient"][style*="#f8fafc"],
[data-theme="dark"] div[style*="background: linear-gradient"][style*="#ffffff"] {
    background: var(--white) !important;
}

[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] .section-title {
    color: var(--text-dark) !important;
}

[data-theme="dark"] .section-description,
[data-theme="dark"] p[style*="color: #64748b"] {
    color: var(--text-gray) !important;
}

[data-theme="dark"] .btn-primary {
    background: var(--primary-color) !important;
}

[data-theme="dark"] .nav-links {
    background: var(--white);
}

/* Dark Mode - Hero Buttons */
[data-theme="dark"] .hero .btn-primary {
    background: var(--primary-color) !important;
    color: white !important;
}

[data-theme="dark"] .hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-color: white !important;
}

[data-theme="dark"] .hero .btn-secondary:hover {
    background: white !important;
    color: var(--primary-color) !important;
}

/* Dark Mode - FAQ Section */
[data-theme="dark"] .faq-item {
    background: var(--white) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .faq-question {
    color: var(--text-dark) !important;
}

[data-theme="dark"] .faq-answer div {
    color: var(--text-gray) !important;
}

[data-theme="dark"] .faq-item[style*="background: white"] {
    background: var(--white) !important;
}

[data-theme="dark"] .faq-item[style*="background: #f8fafc"] {
    background: var(--secondary-color) !important;
}

/* Dark Mode - Footer Social Links */
[data-theme="dark"] .social-link {
    background: var(--primary-color) !important;
    color: white !important;
}

[data-theme="dark"] .social-link:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-5px);
}


/* Dark Mode - Footer Contact Info */
[data-theme="dark"] .footer-links li {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="dark"] .footer-links li i {
    color: var(--primary-color) !important;
}

/* Dark Mode - Premium Badge */
[data-theme="dark"] span[style*="background: linear-gradient"][style*="#f59e0b"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
}

[data-theme="dark"] div[style*="color: #f59e0b"] {
    color: #f59e0b !important;
}

[data-theme="dark"] div[style*="color: #2563eb"] {
    color: #3b82f6 !important;
}

/* Dark Mode - Hızlı Erişim İkonları */
[data-theme="dark"] .btn-secondary i[style*="color: #2563eb"] {
    color: #3b82f6 !important;
}

[data-theme="dark"] .btn-secondary[style*="background: #f8fafc"] {
    background: var(--secondary-color) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark) !important;
}

[data-theme="dark"] .btn-secondary[style*="background: #f8fafc"] span {
    color: var(--text-dark) !important;
}

[data-theme="dark"] .btn-secondary[style*="background: #f8fafc"]:hover {
    background: var(--border-color) !important;
}

/* Dark Mode - Section backgrounds */
[data-theme="dark"] section[style*="background: white"],
[data-theme="dark"] section[style*="background: linear-gradient"][style*="#ffffff"] {
    background: var(--secondary-color) !important;
}

/* Announcement (Duyuru) */
.site-announcement-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(2px);
}
.site-announcement-overlay.hide { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.site-announcement {
    width: min(560px, 92vw);
    background: #ffffff;
    color: #0f172a;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.25);
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    position: relative;
    border: 2px solid var(--announce-accent, #248a3f);
}
.site-announcement:before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.02);
}
.announce-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(15,23,42,0.05);
    border: 1px solid #e2e8f0;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.announce-close:hover { background: rgba(15,23,42,0.08); }
.announce-title { margin: 0 2rem 0.5rem 0; font-weight: 800; font-size: 1.125rem; }
.announce-desc { color: #334155; line-height: 1.6; }
.announce-actions { margin-top: 1rem; display: flex; gap: 0.5rem; }

/* Süre çizgisi */
.announce-progress {
    margin-top: 0.75rem;
    height: 4px;
    background: rgba(2, 6, 23, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
.announce-progress-bar {
    height: 100%;
    width: 0;
    background: var(--announce-accent, #248a3f);
}
.announce-progress-bar.no-auto { width: 0; background: rgba(2,6,23,0.12); }

[data-theme="dark"] .site-announcement-overlay { background: rgba(2,6,23,0.6); }
[data-theme="dark"] .site-announcement { background: var(--white); color: var(--text-dark); border-color: var(--announce-accent, var(--primary-color)); }
[data-theme="dark"] .announce-close { background: rgba(255,255,255,0.08); color: var(--text-dark); border-color: var(--border-color); }
[data-theme="dark"] .announce-desc { color: var(--text-gray); }
[data-theme="dark"] .announce-progress { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .announce-progress-bar.no-auto { background: rgba(255,255,255,0.15); }

@media (max-width: 480px) {
    .announce-title { font-size: 1rem; }
    .announce-desc { font-size: 0.9375rem; }
}

[data-theme="dark"] section[style*="background: linear-gradient"][style*="#f1f5f9"] {
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-color) 100%) !important;
}

[data-theme="dark"] section[style*="background: linear-gradient"][style*="#f8fafc"] {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 100%) !important;
}

[data-theme="dark"] section[style*="background: linear-gradient"][style*="#e2e8f0"] {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--border-color) 50%, var(--white) 100%) !important;
}

/* Dark Mode - Section separators */
[data-theme="dark"] .section::before,
[data-theme="dark"] .section::after {
    background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.15), transparent);
}

/* Dark Mode - Scriptler sayfası butonları */
[data-theme="dark"] .btn-primary {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

[data-theme="dark"] .btn-secondary {
    background: var(--white) !important;
    color: var(--text-dark) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--border-color) !important;
    color: var(--text-dark) !important;
}

/* Dark Mode - Seçili kategori butonu */
[data-theme="dark"] .btn.btn-primary {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Dark Mode - Arama input */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"] {
    background: var(--white) !important;
    color: var(--text-dark) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="search"]:focus,
[data-theme="dark"] input[type="email"]:focus,
[data-theme="dark"] input[type="password"]:focus {
    border-color: var(--primary-color) !important;
    outline: none;
}

[data-theme="dark"] input[type="text"]::placeholder,
[data-theme="dark"] input[type="search"]::placeholder {
    color: var(--text-gray) !important;
}

/* Dark Mode - Kategori item'ları */
[data-theme="dark"] .category-item {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    border: 2px solid var(--border-color);
}

[data-theme="dark"] .category-item:hover {
    border-color: var(--primary-color);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-size: 1.1rem;
    padding: 0;
    margin: 0;
}

.dark-mode-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

[data-theme="dark"] .dark-mode-toggle {
    background: var(--white);
    border-color: var(--border-color);
    color: #fbbf24;
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background: #fbbf24;
    color: var(--white);
    border-color: #fbbf24;
}

/* Smooth Theme Transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

#darkModeIcon {
    transition: transform 0.3s ease;
}

