/* ========== SHADOWWALLPAPERS - BEAUTIFUL DESIGN ========== */
/* Logo Styling */
.site-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    transition: all 0.3s ease;
}

[data-color-scheme="light"] .site-logo {
    filter: drop-shadow(0 0 10px rgba(255, 23, 68, 0.4));
}

.site-logo:hover {
    transform: scale(1.05);
}

:root {
    /* Night Mode (Default) - Black Theme */
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-cyan: #00ffff;
    --accent-magenta: #ff00ff;
    --card-bg: #1a1a1a;
    --border-color: #333333;
    --shadow-color: rgba(0, 255, 255, 0.2);
    --transition: all 0.3s ease;
}

/* Day Mode - Red Pink Theme */
[data-color-scheme="light"] {
    --bg-primary: #fff0f5;
    --bg-secondary: #ffe6f0;
    --text-primary: #8b0000;
    --text-secondary: #c41e3a;
    --accent-cyan: #ff1744;
    --accent-magenta: #f06292;
    --card-bg: #ffffff;
    --border-color: #ffb3c6;
    --shadow-color: rgba(255, 23, 68, 0.2);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========== HEADER ========== */
header {
    background-color: var(--bg-secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
    border-bottom: 1px solid var(--border-color);
}
/* Shrinking Header on Scroll */
header.shrink {
    padding: 5px 0 !important;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

header.shrink .logo-img {
    height: 45px !important;
    max-width: 150px !important;
    transition: all 0.3s ease;
}

header.shrink .site-name h2 {
    font-size: 1rem !important;
    transition: all 0.3s ease;
}

header.shrink .youtube-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    transition: all 0.3s ease;
}

header.shrink .filter-btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
    transition: all 0.3s ease;
}

header.shrink .header-container {
    gap: 5px !important;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 80px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    border: none;
    outline: none;
    background: transparent;
    border-radius: 10px;
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(0, 212, 255, 0.3));
    transition: all 0.3s ease;
}

.logo-link:hover .logo-img {
    filter: brightness(1.25) drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

/* YouTube Link */
.youtube-channel-link {
    display: flex;
    align-items: center;
}

.youtube-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff0000, #ff4500);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    border: 2px solid #ff0000;
}

.youtube-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
    background: linear-gradient(135deg, #ff4500, #ff6b35);
}

.youtube-icon {
    font-size: 18px;
    animation: pulse 2s infinite;
}

.youtube-text {
    line-height: 1.2;
}

.youtube-text small {
    font-size: 11px;
    opacity: 0.9;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 26, 26, 0.95);
    padding: 8px 15px;
    border-radius: 25px;
    box-shadow: 0 2px 15px var(--shadow-color);
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-outline,
.btn-primary {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
}

.btn-outline:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.theme-toggle:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    transform: rotate(180deg);
}

/* ========== HERO SECTION ========== */
.hero-section {
    padding: 30px 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
}

.search-section {
    padding: 20px 0;
}

.search-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#search-input,
#resolution-filter {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
    outline: none;
}

#search-input {
    min-width: 300px;
    flex: 1;
    max-width: 500px;
}

#search-input:focus,
#resolution-filter:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

#resolution-filter {
    cursor: pointer;
    min-width: 150px;
}

/* ========== MAIN CONTENT ========== */
main {
    padding: 30px 0;
    min-height: 60vh;
}

.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    border-radius: 2px;
}

/* Wallpaper Grid */
.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 10px 0;
}

/* Wallpaper Card */
.wallpaper-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.wallpaper-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.2);
}

.wallpaper-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.wallpaper-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.wallpaper-card:hover .wallpaper-img {
    transform: scale(1.1);
}

.wallpaper-info {
    padding: 20px;
}

.wallpaper-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.wallpaper-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    border-radius: 50%;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.2);
}

.favorite-btn.active {
    color: #ff6b9d;
}

/* Download Button */
.download-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.wallpaper-card:hover .download-overlay {
    opacity: 1;
}

.download-overlay:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}

/* ========== LIGHTBOX ========== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    background: var(--card-bg);
    border-radius: 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--accent-cyan);
}

#lightbox-img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-info {
    padding: 20px 0;
    text-align: center;
}

.download-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.download-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.related-card {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.related-card:hover {
    transform: scale(1.05);
}

.related-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: var(--card-bg);
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.close:hover {
    color: var(--accent-cyan);
}

#signup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#signup-form input {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
}

#signup-form button {
    padding: 12px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

/* ========== FOOTER ========== */
footer {
    background: var(--bg-secondary);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--accent-cyan);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.footer-section ul li:hover {
    color: var(--accent-cyan);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    font-size: 24px;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    transform: scale(1.2);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-primary);
}

.newsletter-form button {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-secondary);
}
/* AI Declaration */
.ai-declaration {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    text-align: center;
}

.ai-declaration p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.ai-declaration p:first-child {
    color: var(--accent-cyan);
}


/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-section {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .header-container {
        text-align: center;
    }
    
    .logo-img {
        height: 60px;
        max-width: 180px;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .youtube-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .nav {
        gap: 5px;
        padding: 6px 10px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .wallpaper-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    #search-input {
        min-width: 250px;
    }
    
    .search-container {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 50px;
        max-width: 150px;
    }
    
    .youtube-text {
        display: none;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
        min-width: 60px;
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .wallpaper-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #search-input {
        min-width: 200px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .btn-outline,
    .btn-primary {
        padding: 8px 15px;
        font-size: 13px;
    }
}
/* Light mode category text fix - ADD TO EXISTING CSS */
[data-theme="light"] .filter-btn {
    color: #8c3b5d !important;  /* Light pink-brown color for better visibility */
}

[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn.active {
    color: white !important;  /* White text on hover/active in light mode */
}

/* Logo size increase - ADD TO EXISTING CSS */
.logo-img {
    height: 100px !important;      /* 80px से 100px */
    max-width: 350px !important;   /* 250px से 350px */
}

@media (max-width: 768px) {
    .logo-img {
        height: 80px !important;      /* Mobile में भी बड़ा */
        max-width: 250px !important;
    }
}

/* Download button overlay - ADD TO EXISTING CSS */
.wallpaper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wallpaper-card:hover .wallpaper-overlay {
    opacity: 1;
}

.download-btn-overlay {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.download-btn-overlay:hover {
    transform: scale(1.1);
}
/* Light mode category text yellow color - ADD TO EXISTING CSS */
[data-theme="light"] .filter-btn {
    color: #ff8c00 !important;  /* Orange-yellow color for better visibility */
    font-weight: 600 !important;
}

[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn.active {
    color: white !important;  /* White text on hover/active in light mode */
    background: linear-gradient(135deg, #ff8c00, #ffa500) !important;
}

/* Site name responsive styling - ADD TO EXISTING CSS */
.site-name {
    margin: 0 20px;
    text-align: center;
}

.site-name h2 {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .site-name {
        margin: 5px 0;
    }
    
    .site-name h2 {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    .site-name h2 {
        font-size: 1rem !important;
    }
}

/* ========== FIXES ADDED - Light Mode + Logo + Site Name ========== */

/* Light mode category text yellow color */
[data-theme="light"] .filter-btn {
    color: #ff8c00 !important;  /* Orange-yellow color for better visibility */
    font-weight: 600 !important;
}

[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn.active {
    color: white !important;  /* White text on hover/active in light mode */
    background: linear-gradient(135deg, #ff8c00, #ffa500) !important;
}

/* Logo size increase */
.logo-img {
    height: 100px !important;      /* 80px से 100px */
    max-width: 350px !important;   /* 250px से 350px */
}

@media (max-width: 768px) {
    .logo-img {
        height: 80px !important;      /* Mobile में भी बड़ा */
        max-width: 250px !important;
    }
}

/* Site name responsive styling */
.site-name {
    margin: 0 20px;
    text-align: center;
}

.site-name h2 {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .site-name {
        margin: 5px 0;
    }
    
    .site-name h2 {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    .site-name h2 {
        font-size: 1rem !important;
    }
}

/* Download button overlay */
.wallpaper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wallpaper-card:hover .wallpaper-overlay {
    opacity: 1;
}

.download-btn-overlay {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.download-btn-overlay:hover {
    transform: scale(1.1);
}

/* ========== END FIXES ========== */
/* ========== ADVANCED FEATURES STYLES ========== */

/* User Account Dropdown */
.user-account {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    margin-top: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    font-size: 40px;
    color: var(--accent-cyan);
    margin-right: 15px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 16px;
}

.user-stats {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 5px;
}

.dropdown-menu {
    padding: 10px 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.dropdown-menu i {
    margin-right: 10px;
    width: 16px;
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 10px 0;
}

/* Upload Area */
.upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 255, 255, 0.05);
}

.upload-area.dragover {
    border-color: var(--accent-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.upload-icon {
    font-size: 48px;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.upload-details {
    display: grid;
    gap: 20px;
}

.upload-details input,
.upload-details select,
.upload-details textarea {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

.upload-details textarea {
    min-height: 100px;
    resize: vertical;
}

.upload-details input:focus,
.upload-details select:focus,
.upload-details textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    outline: none;
}

/* Profile Stats */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* History List */
.history-list {
    max-width: 800px;
    margin: 0 auto;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.history-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px var(--shadow-color);
}

.history-thumbnail {
    width: 80px;
    height: 50px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-right: 20px;
}

.history-details {
    flex: 1;
}

.history-title {
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.history-meta {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Social Sharing */
.social-sharing {
    margin: 20px 0;
    text-align: center;
}

.social-sharing h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.copy-link {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 255, 0.3);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-primary);
    margin-top: 20px;
    font-size: 18px;
}

/* API Refresh Button */
.btn-secondary {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

/* Enhanced Auth Forms */
.auth-form {
    text-align: center;
    padding: 20px;
}

.auth-form h2 {
    color: var(--text-primary);
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

.auth-form input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    outline: none;
}

.auth-form p {
    margin-top: 20px;
    color: var(--text-secondary);
}

.auth-form a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: bold;
}

.auth-form a:hover {
    color: var(--accent-magenta);
}

/* Responsive Design */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
        justify-content: center;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .history-item {
        flex-direction: column;
        text-align: center;
    }
    
    .history-thumbnail {
        margin: 0 0 15px 0;
    }
    
    .user-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 300px;
    }
}
/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination button {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 45px;
}

.pagination button:hover:not(:disabled) {
    background: rgba(0, 255, 255, 0.25);
    border-color: #00ffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 255, 255, 0.4);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.pagination button.active {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    border-color: #ff00ff;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.5);
}

.pagination button:active:not(:disabled) {
    transform: translateY(0);
}

/* ========== END ADVANCED FEATURES ========== */
/* ============================================
   MOBILE RESPONSIVE - COMPLETE FIX
   ============================================ */

/* Tablets and Medium Screens */
@media (max-width: 1024px) {
    .wallpaper-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Mobile Screens */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 10px;
        width: 100%;
    }
    
    /* Header */
    .header-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-img {
        height: 70px !important;
        max-width: 200px !important;
    }
    
    .site-name h2 {
        font-size: 1.2rem !important;
    }
    
    /* YouTube Button */
    .youtube-btn {
        font-size: 12px;
        padding: 8px 15px;
    }
    
    /* Navigation Categories */
    .nav {
        width: 100%;
        justify-content: center;
        gap: 5px;
        padding: 8px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1;
        min-width: 70px;
        text-align: center;
    }
    
    /* Search Section */
    .search-container {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 10px;
    }
    
    #search-input {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        font-size: 14px;
        padding: 12px 15px;
    }
    
    #resolution-filter {
        width: 100%;
        font-size: 14px;
        padding: 12px 15px;
    }
    
    /* Wallpaper Grid */
    .wallpaper-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }
    
    .wallpaper-card {
        border-radius: 10px;
    }
    
    .wallpaper-img-container {
        height: 150px;
    }
    
    .wallpaper-info {
        padding: 12px;
    }
    
    .wallpaper-title {
        font-size: 1rem;
    }
    
    /* Header Actions */
    .header-actions {
        gap: 8px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-outline,
    .btn-primary {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 80px;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Pagination */
    .pagination {
        gap: 5px;
        margin: 20px 0;
        padding: 10px;
    }
    
    .pagination button {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 35px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Lightbox */
    .lightbox-content {
        width: 95%;
        padding: 15px;
    }
    
    .lightbox-img {
        max-height: 50vh;
    }
    
    .download-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .download-btn {
        width: 100%;
    }
    
    /* Upload Area */
    .upload-area {
        padding: 20px;
    }
    
    .upload-icon {
        font-size: 32px;
    }
    
    /* User Dropdown */
    .user-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    /* Logo */
    .logo-img {
        height: 50px !important;
        max-width: 150px !important;
    }
    
    .site-name h2 {
        font-size: 1rem !important;
    }
    
    /* Hide YouTube Text */
    .youtube-text {
        display: none;
    }
    
    .youtube-btn {
        padding: 8px 12px;
    }
    
    /* Navigation */
    .nav {
        gap: 3px;
        padding: 5px;
    }
    
    .filter-btn {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 60px;
    }
    
    /* Wallpaper Grid - Single Column */
    .wallpaper-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .wallpaper-img-container {
        height: 200px;
    }
    
    /* Search */
    #search-input {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    #resolution-filter {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    /* Buttons */
    .btn-outline,
    .btn-primary {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 70px;
    }
    
    /* Pagination */
    .pagination button {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 30px;
    }
    
    /* Section Title */
    .section-title {
        font-size: 1.3rem;
    }
    
    /* Visitor Stats Widget */
    #visitor-stats-widget {
        bottom: 10px !important;
        left: 10px !important;
        font-size: 11px !important;
        padding: 8px !important;
        max-width: 140px !important;
    }
    
    /* Share Buttons */
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}
/* Mobile: Hide visitor stats completely */
@media only screen and (max-width: 768px) {
    div[id*="visitor"],
    div[class*="visitor"],
    #visitor-stats,
    .visitor-stats,
    [class*="stats-widget"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* ============================================
   PAGINATION CONTROLS
   ============================================ */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px auto;
    padding: 20px;
}

.btn-page {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.btn-page:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
}

.btn-page:disabled {
    background: #333333;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.page-info {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    padding: 0 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pagination-controls {
        gap: 10px;
        padding: 15px;
    }
    
    .btn-page {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .page-info {
        font-size: 14px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .pagination-controls {
        gap: 8px;
        padding: 10px;
    }
    
    .btn-page {
        padding: 8px 12px;
        font-size: 11px;
        gap: 4px;
    }
    
    .page-info {
        font-size: 12px;
        padding: 0 5px;
    }
}
/* Wallpaper Image Container Fix */
.wallpaper-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.wallpaper-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wallpaper-card:hover .wallpaper-image img {
    transform: scale(1.1);
}

/* Download Button Fix */
.wallpaper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wallpaper-card:hover .wallpaper-overlay {
    opacity: 1;
}

.download-btn-overlay {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.download-btn-overlay:hover {
    transform: scale(1.1);
}
