/**
 * AngelYazılım - Yeni Tema CSS
 * Tasarımcı tasarımından uyarlanmıştır
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght@100..700&display=swap');

:root {
    /* Renkler - Tasarımcı tarafından belirlenecek */
    --primary: #8b5cf6; /* Electric Purple */
    --accent: #06b6d4; /* Neon Cyan */
    --background-light: #f1f5f9;
    --background-dark: #020617;
    --surface-dark: #0f172a;
    --surface-elevated: #ffffff;
    
    /* Metin Renkleri */
    --text-primary: #0f172a;
    --text-secondary: #475569; /* Biraz daha koyu (64748b → 475569) */
    --text-muted: #64748b;    /* Biraz daha koyu (94a3b8 → 64748b) */
    --text-light: #ffffff;
    
    /* Border */
    --border: rgba(148, 163, 184, 0.2);
    --border-primary: rgba(139, 92, 246, 0.3);
    
    /* Font */
    --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
    
    /* Spacing */
    --radius: 1rem;
    --radius-lg: 2rem;
    --radius-xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-primary: 0 10px 25px rgba(139, 92, 246, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: var(--background-light);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 450; /* Hafif kalın → yazılar daha belirgin */
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode */
.dark {
    background: var(--background-dark) !important;
    color: #f1f5f9 !important;
    /* Dark mode — tüm yazı renkleri belirgin */
    --text-primary:   #ffffff;   /* Tam beyaz */
    --text-secondary: #e2e8f0;   /* Açık gri   */
    --text-muted:     #cbd5e1;   /* Orta gri   */
    --surface-elevated: #1e293b;
    --border: rgba(148, 163, 184, 0.35);
}

.dark body {
    background: var(--background-dark);
    color: #f1f5f9;
}

/* Dark mode — form elemanları */
.dark input,
.dark textarea,
.dark select {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Dark mode — tüm placeholder'lar net görünsün */
.dark input::placeholder,
.dark textarea::placeholder,
.dark select::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #94a3b8 !important;
}

/* Global: tüm paragraf ve açıklama yazıları dark modda net */
.dark p,
.dark span,
.dark li,
.dark td,
.dark th,
.dark label {
    color: inherit;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 80px;
    }
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(241, 245, 249, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
}

.dark header {
    background: rgba(2, 6, 23, 0.8);
    border-bottom-color: rgba(148, 163, 184, 0.1);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

@media (min-width: 1024px) {
    .header-inner {
        padding: 0 80px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    font-variation-settings: 'FILL' 1;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.dark .logo-text {
    color: #ffffff;
}

/* Navigation */
.nav-menu {
    display: none;
    align-items: center;
    gap: 24px;
}

@media (min-width: 1280px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.dark .nav-link {
    color: #cbd5e1;
}

.dark .nav-link:hover {
    color: var(--primary);
}

/* Search */
.header-search {
    display: none;
    position: relative;
    min-width: 160px;
    max-width: 256px;
    height: 40px;
}

@media (min-width: 768px) {
    .header-search {
        display: block;
    }
}

.search-input-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: stretch;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.search-input-wrapper:focus-within {
    border-color: rgba(139, 92, 246, 0.5);
}

.dark .search-input-wrapper {
    background: rgba(255, 255, 255, 0.05);
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 16px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0 12px;
    font-size: 0.875rem;
    color: var(--text-primary);
    outline: none;
    width: 100%;
}

.search-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

.dark .search-input {
    color: #f1f5f9;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-signin {
    display: flex;
    min-width: 90px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    height: 40px;
    padding: 0 24px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.2);
    border: none;
    cursor: pointer;
}

.btn-signin:active {
    transform: scale(0.95);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.2);
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 48px 24px 96px;
    position: relative;
    overflow: hidden;
    background: var(--background-light);
}

.dark .hero-section {
    background: var(--background-dark);
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 96px 80px 96px;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    opacity: 0.3;
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    filter: blur(120px);
}

.hero-bg-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
    opacity: 0.2;
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.2);
    border-radius: 50%;
    filter: blur(120px);
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    max-width: 48rem;
}

.hero-title .highlight {
    color: var(--primary);
}

.dark .hero-title {
    color: #ffffff !important;
}

.dark .hero-title .highlight {
    color: var(--primary) !important;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 42rem;
    margin: 0 auto;
}

.dark .hero-description {
    color: #94a3b8 !important;
}

/* Hero Search */
.hero-search-wrapper {
    width: 100%;
    max-width: 42rem;
    padding: 8px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.hero-search-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 640px) {
    .hero-search-form {
        flex-direction: row;
    }
}

.hero-search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.dark .hero-search-input-wrapper {
    background: rgba(0, 0, 0, 0.2);
}

.hero-search-icon {
    color: var(--text-muted);
    margin-right: 8px;
}

.hero-search-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 0;
    color: #f1f5f9;
    outline: none;
    font-size: 1rem;
}

.hero-search-input::placeholder {
    color: var(--text-muted);
}

.hero-search-btn {
    background: var(--primary);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.3);
}

.hero-search-btn:hover {
    background: rgba(139, 92, 246, 0.9);
}

/* Statistics */
.stats-section {
    padding: 0 24px 64px;
}

@media (min-width: 1024px) {
    .stats-section {
        padding: 0 80px 64px;
    }
}

.stats-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.05);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    transition: border-color 0.2s;
}

.dark .stat-card {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(148, 163, 184, 0.1);
}

.stat-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.dark .stat-label {
    color: #94a3b8 !important;
}

.stat-value {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.dark .stat-number {
    color: #ffffff !important;
}

.stat-trend {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-trend-icon {
    font-size: 0.875rem;
}

/* Categories Section */
.categories-section {
    padding: 64px 24px;
    background: rgba(15, 23, 42, 0.5);
}

.dark .categories-section {
    background: rgba(15, 23, 42, 0.5);
}

@media (min-width: 1024px) {
    .categories-section {
        padding: 64px 80px;
    }
}

.categories-header {
    max-width: 1280px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.categories-title {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.dark .categories-title {
    color: #ffffff !important;
}

.categories-subtitle {
    color: var(--text-secondary);
    margin-top: 8px;
}

.dark .categories-subtitle {
    color: #94a3b8 !important;
}

.categories-view-all {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.categories-view-all:hover {
    text-decoration: underline;
}

.categories-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

@media (min-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s;
}

.dark .category-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(148, 163, 184, 0.1);
}

.category-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
}

.category-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary);
    transition: all 0.2s;
}

.category-card:hover .category-icon-wrapper {
    background: var(--primary);
    color: #ffffff;
}

.category-icon {
    font-size: 1.5rem;
}

.category-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dark .category-name {
    color: #ffffff !important;
}

.category-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dark .category-desc {
    color: #94a3b8 !important;
}

/* Products Section */
.products-section {
    padding: 80px 24px;
}

@media (min-width: 1024px) {
    .products-section {
        padding: 80px 80px;
    }
}

.products-header {
    max-width: 1280px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.products-icon {
    font-size: 1.875rem;
    color: var(--accent);
}

.products-title {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.dark .products-title {
    color: #ffffff !important;
}

.products-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Product Card */
.product-card-new {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.3s;
}

.dark .product-card-new {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(148, 163, 184, 0.3);
}

.dark .product-card-new:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 25px rgba(139, 92, 246, 0.2);
}

.product-card-new:hover {
    box-shadow: 0 20px 25px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.product-image-wrapper {
    position: relative;
    height: 224px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card-new:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-price {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-body {
    padding: 24px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.2s;
}

.product-card-new:hover .product-title {
    color: var(--primary);
}

.dark .product-title {
    color: #ffffff !important;
}

.dark .product-card-new:hover .product-title {
    color: var(--primary) !important;
}

.product-rating {
    display: flex;
    align-items: center;
    color: var(--accent);
}

.product-rating-icon {
    font-size: 0.875rem;
    fill: currentColor;
}

.product-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .product-description {
    color: #94a3b8 !important;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.dark .product-footer {
    border-top-color: rgba(148, 163, 184, 0.3);
}

.product-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
}

.author-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dark .author-name {
    color: #94a3b8 !important;
}

.product-details-btn {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.product-details-btn:hover {
    color: var(--accent);
}

.product-details-icon {
    font-size: 0.875rem;
}

/* Load More */
.load-more {
    margin-top: 64px;
    text-align: center;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 9999px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.dark .load-more-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dark .load-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 64px 24px;
}

.dark footer {
    background: var(--background-dark);
    border-top-color: rgba(148, 163, 184, 0.3);
}

.dark .footer-content {
    color: #f1f5f9;
}

@media (min-width: 1024px) {
    footer {
        padding: 64px 80px;
    }
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 48px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    margin-bottom: 24px;
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dark .footer-brand-text {
    color: #ffffff;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 320px;
    margin-bottom: 24px;
}

.dark .footer-description {
    color: #94a3b8;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.dark .social-link {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}

.social-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.social-icon {
    font-size: 1.25rem;
}

.footer-column-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.dark .footer-column-title {
    color: #ffffff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
}

.dark .footer-link {
    color: #94a3b8;
}

.footer-newsletter-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.dark .footer-newsletter-title {
    color: #ffffff;
}

.footer-newsletter-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.dark .footer-newsletter-desc {
    color: #94a3b8;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
}

.footer-newsletter-input {
    flex: 1;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius);
    padding: 8px 16px;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.dark .footer-newsletter-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(148, 163, 184, 0.3);
    color: #f1f5f9;
}

.footer-newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.footer-newsletter-btn {
    background: var(--primary);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    max-width: 1280px;
    margin: 64px auto 0;
    padding-top: 32px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dark .footer-bottom {
    border-top-color: rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}

/* Helper Classes */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-10 {
    gap: 40px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.gap-6 {
    gap: 24px;
}

.gap-8 {
    gap: 32px;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 200px;
    padding: 8px 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    display: none;
}

.dropdown.show .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--surface);
}

/* Slightly nicer dropdown for user menu */
.user-menu .dropdown-menu {
    min-width: 240px;
}

.user-menu .dropdown-item i {
    width: 18px;
    display: inline-block;
    margin-right: 10px;
    opacity: 0.9;
}

.dark .dropdown-menu {
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(148, 163, 184, 0.18);
}

.dark .dropdown-item {
    color: rgba(226, 232, 240, 0.92);
}

.dark .dropdown-item:hover {
    background: rgba(139, 92, 246, 0.12);
}

.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background: var(--border);
    border: none;
}

/* Global Dark Mode Styles */
.dark {
    background: var(--background-dark) !important;
    color: #f1f5f9 !important;
}

.dark main {
    background: var(--background-dark);
    color: #f1f5f9;
}

.dark .container {
    color: #f1f5f9;
}

.dark .container h1, .dark .container h2, .dark .container h3 {
    color: #ffffff !important;
}

.dark .container p, .dark .container .text-muted {
    color: #94a3b8 !important;
}

.dark .card {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    color: #f1f5f9 !important;
}

.dark .card-body {
    color: #f1f5f9 !important;
}

.dark .card-body h2, .dark .card-body h3, .dark .card-body h4 {
    color: #ffffff !important;
}

.dark .form-card {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.dark .page-header {
    background: transparent !important;
    color: #f1f5f9 !important;
}

.dark .page-header h1 {
    color: #ffffff !important;
}

.dark .breadcrumb a {
    color: #94a3b8 !important;
}

.dark .breadcrumb span {
    color: #64748b !important;
}

.dark .nav-link {
    color: #cbd5e1 !important;
}

.dark .nav-link.active {
    color: var(--primary) !important;
    background: rgba(139, 92, 246, 0.1) !important;
}

.dark .alert {
    background: rgba(6, 182, 212, 0.1) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
    color: var(--accent) !important;
}

.dark .btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

.dark .btn-outline-primary {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.dark .btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
}

.dark .empty-state {
    color: #f1f5f9 !important;
}

.dark .empty-state h3 {
    color: #ffffff !important;
}

.dark .empty-state p {
    color: #94a3b8 !important;
}

/* Accordion Dark Mode */
.dark .accordion-item {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
}

.dark .accordion-button {
    background: rgba(15, 23, 42, 0.4) !important;
    color: #ffffff !important;
}

.dark .accordion-button:not(.collapsed) {
    background: rgba(139, 92, 246, 0.1) !important;
    color: var(--primary) !important;
}

.dark .accordion-body {
    background: rgba(15, 23, 42, 0.2) !important;
    color: #94a3b8 !important;
}

/* Form Controls Dark Mode */
.dark .form-control, .dark .form-select {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    color: #f1f5f9 !important;
}

.dark .form-control:focus, .dark .form-select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary) !important;
    color: #f1f5f9 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

.dark .form-label {
    color: #cbd5e1 !important;
}

/* Article/Content Dark Mode */
.dark article {
    color: #f1f5f9 !important;
}

.dark article h1, .dark article h2, .dark article h3 {
    color: #ffffff !important;
}

.dark article p {
    color: #94a3b8 !important;
}

.dark .content {
    color: #f1f5f9 !important;
}

.dark .content p {
    color: #94a3b8 !important;
}

.dark .content h1, .dark .content h2, .dark .content h3, .dark .content h4 {
    color: #ffffff !important;
}

/* Detail Sidebar Dark Mode */
.dark .detail-sidebar {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    color: #f1f5f9 !important;
}

.dark .detail-sidebar h5 {
    color: #ffffff !important;
}

/* Links Dark Mode */
.dark a {
    color: inherit;
}

.dark a:hover {
    color: var(--primary) !important;
}

.dark .text-decoration-none {
    color: inherit !important;
}

.dark .text-decoration-none:hover {
    color: var(--primary) !important;
}

/* List Items Dark Mode */
.dark .list-unstyled li {
    color: #94a3b8 !important;
}

.dark .list-unstyled li i {
    color: var(--success) !important;
}

/* Placeholder Dark Mode */
.dark .placeholder-img {
    background: rgba(15, 23, 42, 0.4) !important;
    color: #94a3b8 !important;
}

/* Badge Dark Mode */
.dark .badge {
    background: rgba(139, 92, 246, 0.2) !important;
    color: var(--primary) !important;
}

/* Price Tag Dark Mode */
.dark .price-tag {
    color: var(--primary) !important;
}

.dark .price-tag.free {
    color: var(--success) !important;
}

/* Small Text Dark Mode */
.dark small, .dark .small {
    color: #94a3b8 !important;
}

/* Section Dark Mode */
.dark section {
    color: #f1f5f9 !important;
}

.dark section h1, .dark section h2, .dark section h3 {
    color: #ffffff !important;
}

.dark section p {
    color: #94a3b8 !important;
}

/* Ensure all pages have dark background */
.dark {
    background-color: var(--background-dark) !important;
}

.dark body {
    background-color: var(--background-dark) !important;
    color: #f1f5f9 !important;
}

/* Override Bootstrap dark mode */
.dark .bg-white {
    background-color: rgba(15, 23, 42, 0.4) !important;
}

.dark .text-muted {
    color: #94a3b8 !important;
}

.dark .text-success {
    color: var(--success) !important;
}

.dark .text-danger {
    color: #ef4444 !important;
}

.dark .text-warning {
    color: #f59e0b !important;
}

.dark .text-primary {
    color: var(--primary) !important;
}

/* Admin Panel Dark Mode */
.dark .admin-content {
    background: var(--background-dark) !important;
    color: #f1f5f9 !important;
}

.dark .admin-content h1, .dark .admin-content h2, .dark .admin-content h3 {
    color: #ffffff !important;
}

.dark .admin-content .btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

.dark .admin-content .btn-outline-primary {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.dark .admin-content .btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
}

.dark .admin-content .btn-outline-secondary {
    border-color: rgba(148, 163, 184, 0.3) !important;
    color: #94a3b8 !important;
}

.dark .admin-content .btn-outline-secondary:hover {
    background: rgba(148, 163, 184, 0.1) !important;
    color: #ffffff !important;
}

.dark .admin-content .badge {
    background: rgba(139, 92, 246, 0.2) !important;
    color: var(--primary) !important;
}

.dark .admin-content .badge.bg-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
}

.dark .admin-content .badge.bg-success {
    background: rgba(16, 185, 129, 0.2) !important;
    color: var(--success) !important;
}

.dark .admin-content .badge.bg-warning {
    background: rgba(245, 158, 11, 0.2) !important;
    color: var(--warning) !important;
}

/* User Panel Dark Mode */
.dark .user-content {
    background: var(--background-dark) !important;
    color: #f1f5f9 !important;
}

.dark .user-content h1, .dark .user-content h2, .dark .user-content h3 {
    color: #ffffff !important;
}

.dark .user-content .btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

.dark .user-content .btn-outline-primary {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.dark .user-content .btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
}

/* Form Controls Dark Mode for Panels */
.dark .admin-content .form-control,
.dark .admin-content .form-select,
.dark .user-content .form-control,
.dark .user-content .form-select {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    color: #f1f5f9 !important;
}

.dark .admin-content .form-control:focus,
.dark .admin-content .form-select:focus,
.dark .user-content .form-control:focus,
.dark .user-content .form-select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary) !important;
    color: #f1f5f9 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

.dark .admin-content .form-label,
.dark .user-content .form-label {
    color: #cbd5e1 !important;
}

/* Table Dark Mode for Panels */
.dark .admin-content table,
.dark .user-content table {
    color: #f1f5f9 !important;
}

.dark .admin-content table th,
.dark .user-content table th {
    background: rgba(15, 23, 42, 0.6) !important;
    color: #ffffff !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
}

.dark .admin-content table td,
.dark .user-content table td {
    background: rgba(15, 23, 42, 0.2) !important;
    color: #f1f5f9 !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
}

.dark .admin-content table tbody tr:hover,
.dark .user-content table tbody tr:hover {
    background: rgba(139, 92, 246, 0.05) !important;
}

/* Pagination Dark Mode for Panels */
.dark .admin-content .pagination .page-link,
.dark .user-content .pagination .page-link {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    color: #94a3b8 !important;
}

.dark .admin-content .pagination .page-link:hover,
.dark .user-content .pagination .page-link:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.dark .admin-content .pagination .page-item.active .page-link,
.dark .user-content .pagination .page-item.active .page-link {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

/* User Panel Specific Dark Mode Fixes */
.dark .user-content .bg-white {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
}

.dark .user-content .table-light {
    background: rgba(15, 23, 42, 0.6) !important;
    color: #ffffff !important;
}

.dark .user-content .bg-light {
    background: rgba(15, 23, 42, 0.2) !important;
    color: #f1f5f9 !important;
}

.dark .user-content .text-dark {
    color: #f1f5f9 !important;
}

.dark .user-content code {
    background: rgba(15, 23, 42, 0.6) !important;
    color: var(--accent) !important;
    padding: 2px 6px;
    border-radius: 4px;
}

.dark .user-content pre {
    background: rgba(15, 23, 42, 0.6) !important;
    color: #f1f5f9 !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
}

.dark .user-content .chat-messages .bg-light {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #f1f5f9 !important;
}

.dark .user-content .chat-messages .bg-primary {
    background: var(--primary) !important;
    color: #ffffff !important;
}

.dark .user-content .list-group-item {
    background: rgba(15, 23, 42, 0.2) !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
    color: #f1f5f9 !important;
}

.dark .user-content .card-header {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
    color: #ffffff !important;
}

.dark .user-content .card-footer {
    background: rgba(15, 23, 42, 0.2) !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
    color: #f1f5f9 !important;
}

.dark .user-content .form-check-label {
    color: #cbd5e1 !important;
}

.dark .user-content .breadcrumb {
    background: transparent !important;
}

.dark .user-content .breadcrumb-item a {
    color: #94a3b8 !important;
}

.dark .user-content .breadcrumb-item.active {
    color: #f1f5f9 !important;
}

.dark .user-content .article-content {
    color: #f1f5f9 !important;
}

.dark .user-content .article-content h1,
.dark .user-content .article-content h2,
.dark .user-content .article-content h3 {
    color: #ffffff !important;
}

.dark .user-content .article-content p {
    color: #94a3b8 !important;
}

.dark .user-content .article-content code {
    background: rgba(15, 23, 42, 0.6) !important;
    color: var(--accent) !important;
}

.dark .user-content .article-content a {
    color: var(--primary) !important;
}

/* Admin Panel Specific Dark Mode Fixes */
.dark .admin-content .bg-white {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
}

.dark .admin-content .card-header.bg-white {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
    color: #ffffff !important;
}

.dark .admin-content .table-light {
    background: rgba(15, 23, 42, 0.6) !important;
    color: #ffffff !important;
}

.dark .admin-content .bg-light {
    background: rgba(15, 23, 42, 0.2) !important;
    color: #f1f5f9 !important;
}

.dark .admin-content .text-dark {
    color: #f1f5f9 !important;
}

.dark .admin-content code {
    background: rgba(15, 23, 42, 0.6) !important;
    color: var(--accent) !important;
    padding: 2px 6px;
    border-radius: 4px;
}

.dark .admin-content pre {
    background: rgba(15, 23, 42, 0.6) !important;
    color: #f1f5f9 !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
}

.dark .admin-content .list-group-item {
    background: rgba(15, 23, 42, 0.2) !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
    color: #f1f5f9 !important;
}

.dark .admin-content .breadcrumb {
    background: transparent !important;
}

.dark .admin-content .breadcrumb-item a {
    color: #94a3b8 !important;
}

.dark .admin-content .breadcrumb-item.active {
    color: #f1f5f9 !important;
}

.dark .admin-content .alert {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
    color: #f1f5f9 !important;
}

.dark .admin-content .alert-success {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: var(--success) !important;
}

.dark .admin-content .alert-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
}

.dark .admin-content .alert-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: var(--warning) !important;
}

.dark .admin-content .alert-info {
    background: rgba(6, 182, 212, 0.1) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
    color: var(--accent) !important;
}

.dark .admin-content .dropdown-menu {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

.dark .admin-content .dropdown-item {
    color: #f1f5f9 !important;
}

.dark .admin-content .dropdown-item:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #ffffff !important;
}

.dark .admin-content .modal-content {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: #f1f5f9 !important;
}

.dark .admin-content .modal-header {
    border-color: rgba(148, 163, 184, 0.1) !important;
}

.dark .admin-content .modal-footer {
    border-color: rgba(148, 163, 184, 0.1) !important;
}

/* Override Bootstrap table-light in dark mode */
.dark .table-light {
    background: rgba(15, 23, 42, 0.6) !important;
    color: #ffffff !important;
}

.dark .table-light th {
    background: rgba(15, 23, 42, 0.6) !important;
    color: #ffffff !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
    color: #ffffff !important;
}

.dark p, .dark span, .dark div {
    color: inherit;
}

.dark a {
    color: inherit;
}

.dark input, .dark textarea, .dark select {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    color: #f1f5f9 !important;
}

.dark input::placeholder, .dark textarea::placeholder {
    color: #94a3b8 !important;
}

.dark button {
    color: inherit;
}

/* Market Grid Dark Mode */
.dark .market-grid {
    color: #f1f5f9;
}

.dark .market-grid .product-card-new {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
}

.dark .market-grid .product-card-new h4 {
    color: #ffffff !important;
}

.dark .market-grid .product-card-new p {
    color: #94a3b8 !important;
}

/* Detail Page Dark Mode */
.dark .detail-grid {
    color: #f1f5f9;
}

.dark .detail-grid aside {
    color: #f1f5f9;
}

.dark .detail-grid h1, .dark .detail-grid h3, .dark .detail-grid h4 {
    color: #ffffff !important;
}

.dark .detail-grid p {
    color: #94a3b8 !important;
}

.dark .detail-grid .product-card-new {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
}

/* Cart Page Dark Mode */
.dark main[style*="padding"] {
    background: var(--background-dark) !important;
    color: #f1f5f9 !important;
}

.dark main h1 {
    color: #ffffff !important;
}

.dark main p {
    color: #94a3b8 !important;
}

.dark main section {
    background: rgba(139, 92, 246, 0.05) !important;
    border-color: rgba(139, 92, 246, 0.1) !important;
}

.dark main section h3 {
    color: #ffffff !important;
}

.dark main section h4 {
    color: #ffffff !important;
}

.dark main section p {
    color: #94a3b8 !important;
}

.dark main .product-card-new {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
}

/* Breadcrumbs Dark Mode */
.dark main a[style*="color:var(--text-secondary)"] {
    color: #94a3b8 !important;
}

.dark main span[style*="color:var(--accent)"] {
    color: var(--accent) !important;
}

/* Pagination Dark Mode */
.dark main a[style*="background:var(--surface)"] {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #94a3b8 !important;
}

.dark main a[style*="background:var(--primary)"] {
    background: var(--primary) !important;
    color: #ffffff !important;
}

/* Category Chips Dark Mode */
.dark main a[style*="background:rgba(139,92,246,0.1)"] {
    background: rgba(139, 92, 246, 0.1) !important;
    color: var(--primary) !important;
}

.dark main a[style*="background:var(--surface)"] {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #94a3b8 !important;
}

/* =============================================
   DROPDOWN MENU DARK MODE
   ============================================= */
.dark .dropdown-menu {
    background: var(--surface-dark) !important;
    border: 1px solid rgba(148, 163, 184, 0.15) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    border-radius: 12px !important;
    padding: 8px !important;
}

.dark .dropdown-item {
    color: #e2e8f0 !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.dark .dropdown-item:hover,
.dark .dropdown-item:focus {
    background: rgba(139, 92, 246, 0.15) !important;
    color: var(--primary) !important;
}

.dark .dropdown-item i {
    font-size: 1rem;
    opacity: 0.7;
}

.dark .dropdown-item:hover i {
    opacity: 1;
}

.dark .dropdown-item.logout {
    color: #f87171 !important;
}

.dark .dropdown-item.logout:hover {
    background: rgba(248, 113, 113, 0.15) !important;
    color: #f87171 !important;
}

.dark .dropdown-divider {
    border-color: rgba(148, 163, 184, 0.1) !important;
    margin: 8px 0 !important;
}

/* Responsive */
@media (max-width: 767px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        margin-top: 16px;
        display: flex;
        flex-direction: column;
    }
    
    .hero-section {
        padding: 32px 16px 64px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-card {
        padding: 24px;
    }
    
    .header-actions {
        flex-wrap: wrap;
    }
}

