/* ================================
   CSS VARIABLES & RESET
   ================================ */
:root {
    --bg-primary: #1a1d29;
    --bg-secondary: #252936;
    --bg-card: #2d3142;
    --bg-hover: #353849;
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --text-muted: #6b7280;
    --accent-green: #7ed56f;
    --accent-blue: #4a9eff;
    --border-color: #373b4d;
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ================================
   CONTAINER
   ================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   HEADER
   ================================ */
.header {
    background-color: var(--bg-secondary);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================
   NAVIGATION
   ================================ */
.nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.btn-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-dropdown:hover {
    background-color: var(--bg-hover);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-height: 400px;
    overflow-y: auto;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

/* Icon Button */
.btn-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

/* Search Form */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 300px;
    padding: 10px 45px 10px 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background-color: var(--bg-hover);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    position: absolute;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--accent-blue);
}

/* ================================
   QUICK CATEGORIES BAR
   ================================ */
.quick-categories {
    background-color: var(--bg-secondary);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.quick-categories-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quick-categories-list::-webkit-scrollbar {
    display: none;
}

.quick-category {
    padding: 8px 20px;
    background-color: var(--bg-card);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition);
}

.quick-category:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

/* ================================
   FILTER TABS
   ================================ */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin: 40px 0 30px;
    flex-wrap: wrap;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.filter-tab:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-green);
}

.filter-tab.active {
    background: linear-gradient(135deg, rgba(126, 213, 111, 0.2) 0%, rgba(74, 158, 255, 0.2) 100%);
    border-color: var(--accent-green);
    color: var(--text-primary);
}

/* ================================
   SECTION TITLE
   ================================ */
.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.title-line {
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    border-radius: 2px;
}

.section-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-green);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

/* ================================
   NO RESULTS
   ================================ */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .wallpapers-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-input {
        width: 100%;
    }
    
    .wallpapers-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .filter-tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .page-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .wallpapers-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .section-title h1 {
        font-size: 20px;
    }
}

/* ================================
   SCROLLBAR STYLING
   ================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}

/* ================================
   WALLPAPER DETAIL PAGE - COMPLETE
   ================================ */

/* Main Detail Container */
.wallpaper-detail {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin: 40px 0;
}

/* Left Side - Image and Tags */
.wallpaper-detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wallpaper-detail-image {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.wallpaper-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Tags Below Image */
.wallpaper-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.tag {
    padding: 8px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.tag:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-green);
}

/* Right Side - Info */
.wallpaper-detail-info h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.wallpaper-specs {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-muted);
    font-size: 14px;
}

.spec-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.spec-value a {
    color: var(--accent-green);
    transition: var(--transition);
}

.spec-value a:hover {
    color: var(--accent-blue);
}

/* Download Button */
.btn-download {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(126, 213, 111, 0.3);
}

/* Related Section */
.related-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.related-section .section-title {
    margin-bottom: 30px;
}

/* Related Wallpapers Grid - Compact Style */
.related-section .wallpapers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.related-section .wallpaper-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.related-section .wallpaper-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.related-section .wallpaper-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background-color: var(--bg-primary);
    overflow: hidden;
}

.related-section .wallpaper-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-section .wallpaper-card:hover .wallpaper-image img {
    transform: scale(1.08);
}

/* Overlay with title on hover */
.related-section .wallpaper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    opacity: 0;
    transition: var(--transition);
}

.related-section .wallpaper-card:hover .wallpaper-overlay {
    opacity: 1;
}

.related-section .wallpaper-info {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    align-self: flex-start;
}

.related-section .wallpaper-type,
.related-section .wallpaper-resolution {
    padding: 3px 8px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Title shows on hover at bottom */
.related-section .wallpaper-title {
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-green);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* Detail Page Responsive */
@media (max-width: 1024px) {
    .wallpaper-detail {
        grid-template-columns: 1fr;
    }
    
    .related-section .wallpapers-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .wallpaper-detail-info h1 {
        font-size: 22px;
    }
    
    .wallpaper-tags {
        gap: 6px;
    }
    
    .tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .related-section .wallpapers-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .related-section .wallpapers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .wallpaper-detail-info h1 {
        font-size: 20px;
    }
    
    .wallpaper-specs {
        padding: 16px;
    }
    
    .spec-item {
        flex-direction: column;
        gap: 4px;
        padding: 10px 0;
    }
}

/* ================================
   HOMEPAGE GRID - TITLE ON HOVER ONLY
   ================================ */

/* Hide title by default on homepage */
.wallpapers-grid .wallpaper-card .wallpaper-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 20%);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

/* Show title on hover */
.wallpapers-grid .wallpaper-card:hover .wallpaper-title {
    opacity: 1;
}

/* Adjust overlay for homepage */
.wallpapers-grid .wallpaper-overlay {
    opacity: 0;
    pointer-events: none;
}

.wallpapers-grid .wallpaper-card:hover .wallpaper-overlay {
    opacity: 1;
}

/* Remove info badges and downloads from homepage */
.wallpapers-grid .wallpaper-info,
.wallpapers-grid .wallpaper-downloads {
    display: none;
}

/* ================================
   WALLPAPER DETAIL - MOBILE OPTIMIZATION
   ================================ */

/* Make main image responsive and limit max size */
.wallpaper-detail-image {
    width: 100%;
    max-width: 900px; /* Limit max width */
    margin: 0 auto;
}

.wallpaper-detail-image img {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limit height on desktop */
    object-fit: contain;
    display: block;
}

/* Detail Page Mobile Specific */
@media (max-width: 1024px) {
    .wallpaper-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .wallpaper-detail-image img {
        max-height: 500px;
    }
    
    .related-section .wallpapers-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 12px;
        padding: 15px 0;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .wallpaper-detail {
        gap: 20px;
        margin: 20px 0;
    }
    
    .wallpaper-detail-image {
        border-radius: 8px;
        max-width: 100%;
    }
    
    .wallpaper-detail-image img {
        max-height: 400px; /* Smaller on tablets */
        border-radius: 8px;
    }
    
    .wallpaper-detail-info h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .wallpaper-tags {
        gap: 6px;
    }
    
    .tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .wallpaper-specs {
        padding: 16px;
    }
    
    .spec-item {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .spec-label {
        font-size: 12px;
    }
    
    .spec-value {
        font-size: 13px;
    }
    
    .btn-download {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .related-section {
        margin-top: 40px;
    }
    
    .related-section .section-title h2 {
        font-size: 20px;
    }
    
    .related-section .wallpapers-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .wallpaper-detail-image img {
        max-height: 300px; /* Even smaller on phones */
        border-radius: 6px;
    }
    
    .wallpaper-detail-info h1 {
        font-size: 18px;
    }
    
    .wallpaper-specs {
        padding: 12px;
    }
    
    .spec-item {
        flex-direction: column;
        gap: 4px;
        padding: 8px 0;
        align-items: flex-start;
    }
    
    .spec-label,
    .spec-value {
        font-size: 12px;
    }
    
    .btn-download {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .related-section .wallpapers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .related-section {
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

/* Optimize image loading on mobile */
@media (max-width: 768px) {
    .wallpaper-detail-image {
        background: var(--bg-card);
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Show loading state */
    .wallpaper-detail-image img[loading="lazy"] {
        background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
    }
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ================================
   COLLECTIONS STYLES
   Add this to your style.css
   ================================ */

/* Collections Intro Text */
.collections-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.collection-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    border-color: var(--accent-green);
}

.collection-link {
    display: block;
    text-decoration: none;
}

.collection-image {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 5:3 aspect ratio */
    background-color: var(--bg-card);
    overflow: hidden;
}

.collection-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card:hover .collection-image img {
    transform: scale(1.08);
}

/* Collection Placeholder */
.collection-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-primary) 100%);
    color: var(--text-muted);
}

/* Collection Overlay */
.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.collection-card:hover .collection-overlay {
    opacity: 1;
}

.collection-count {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    align-self: flex-start;
}

/* Collection Info */
.collection-info {
    padding: 20px;
}

.collection-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.collection-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Collection Detail Page Header */
.collection-header {
    margin-bottom: 40px;
}

.collection-header-content {
    max-width: 800px;
}

.collection-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin: 20px 0;
}

.collection-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-item svg {
    color: var(--accent-green);
}

/* Responsive */
@media (max-width: 1024px) {
    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .collection-info h3 {
        font-size: 16px;
    }
    
    .collection-info p {
        font-size: 13px;
    }
    
    .collection-description {
        font-size: 14px;
    }
    
    .collection-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .collections-intro {
        font-size: 14px;
        margin-bottom: 30px;
    }
}

/* ================================
   FEATURED COLLECTIONS SECTION
   Add this to your assets/css/style.css
   ================================ */

.featured-collections-section {
    margin: 40px 0 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.section-header .section-title h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(126, 213, 111, 0.3);
}

.view-all-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 213, 111, 0.4);
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.collection-card {
    display: block;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-card);
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

/* Collection Thumbnail */
.collection-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 5:3 aspect ratio */
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.collection-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card:hover .collection-thumbnail img {
    transform: scale(1.1);
}

.collection-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-hover) 100%);
    color: var(--text-muted);
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: var(--transition);
}

.collection-card:hover .collection-overlay {
    opacity: 1;
}

.collection-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: white;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Collection Info */
.collection-info {
    padding: 20px;
}

.collection-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.collection-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .view-all-link {
        width: 100%;
        justify-content: center;
    }
    
    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .collection-name {
        font-size: 16px;
    }
    
    .collection-description {
        font-size: 13px;
    }
    
    .collection-info {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-collections-section {
        margin: 30px 0 40px;
    }
}
/* ================================
   WALLPAPERS GRID - DYNAMIC COLUMN SPANNING
   Mobile wallpapers = 1 column (narrow)
   Desktop wallpapers = 2 columns (wide)
   All same height, different widths
   ================================ */

.wallpapers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 60px;
    grid-auto-rows: 280px; /* Fixed height for all cards */
}

.wallpaper-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.wallpaper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* DYNAMIC COLUMN SPANNING */
/* Mobile wallpapers = 1 column (narrow, portrait) */
.wallpaper-card[data-type="mobile"] {
    grid-column: span 1;
}

/* Desktop wallpapers = 2 columns (wide, landscape) */
.wallpaper-card[data-type="desktop"] {
    grid-column: span 2;
}

.wallpaper-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wallpaper-image {
    position: relative;
    width: 100%;
    background-color: var(--bg-card);
    overflow: hidden;
    flex: 1; /* Takes all available space */
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallpaper-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill entire area */
    display: block;
    transition: transform 0.5s ease;
}

.wallpaper-card:hover .wallpaper-image img {
    transform: scale(1.1);
}

.wallpaper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.wallpaper-card:hover .wallpaper-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Title on hover */
.wallpapers-grid .wallpaper-card .wallpaper-title {
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Info badges - hidden by default on homepage */
.wallpapers-grid .wallpaper-info,
.wallpapers-grid .wallpaper-downloads {
    display: none;
}

.wallpaper-info {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.wallpaper-type,
.wallpaper-resolution {
    padding: 4px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.wallpaper-downloads {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}

/* Lazy Load */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.lazy.loaded {
    opacity: 1;
    animation: none;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ================================
   PAGINATION
   ================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 60px 0;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.page-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-green);
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.page-number:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.page-number.active {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    border-color: transparent;
    color: var(--text-primary);
}

.page-dots {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    padding: 0 5px;
}

/* ================================
   SEARCH & CATEGORY PAGE GRIDS
   Show info badges on these pages
   ================================ */

.search-page .wallpapers-grid .wallpaper-info,
.category-page .wallpapers-grid .wallpaper-info,
.search-page .wallpapers-grid .wallpaper-downloads,
.category-page .wallpapers-grid .wallpaper-downloads {
    display: flex !important;
}

/* ================================
   SEARCH PAGE STYLES
   ================================ */

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding: 40px 0 20px;
}

.search-info h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.search-count {
    color: var(--text-secondary);
    font-size: 16px;
}

.search-count strong {
    color: var(--accent-green);
}

.search-again-form {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 300px;
}

.search-again-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.search-again-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background-color: var(--bg-hover);
}

.search-again-input::placeholder {
    color: var(--text-muted);
}

.search-again-btn {
    position: absolute;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-again-btn:hover {
    color: var(--accent-blue);
}

.search-filters {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-group label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.filter-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-green);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(126, 213, 111, 0.2) 0%, rgba(74, 158, 255, 0.2) 100%);
    border-color: var(--accent-green);
    color: var(--text-primary);
}

.filter-select {
    padding: 8px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.filter-select:hover {
    border-color: var(--accent-green);
    background-color: var(--bg-hover);
}

.no-search-results {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--bg-card);
    border-radius: 12px;
    margin: 40px 0;
}

.no-search-results svg {
    color: var(--text-muted);
    margin: 0 auto 20px;
}

.no-search-results h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.no-search-results p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.btn-back-home:hover {
    background-color: var(--bg-hover);
    border-color: var(--accent-green);
    transform: translateY(-2px);
}

/* ================================
   CATEGORY PAGE STYLES
   ================================ */

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

.category-info {
    flex: 1;
}

.category-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-top: 10px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-card);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.sort-options label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.sort-options select {
    padding: 8px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 150px;
}

.sort-options select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.sort-options select:hover {
    border-color: var(--accent-green);
}

.empty-category {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--bg-card);
    border-radius: 12px;
    margin: 40px 0;
}

.empty-category svg {
    color: var(--text-muted);
    margin: 0 auto 20px;
}

.empty-category h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-category p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
}

/* ================================
   RELATED SECTION FIX - Dynamic Column Spanning
   Replace the "RELATED SECTION" in your style.css with this
   ================================ */

.related-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.related-section .section-title {
    margin-bottom: 30px;
}

.related-section .wallpapers-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 240px;
    gap: 12px;
}

/* IMPORTANT: Remove the override that forces all to span 1 column */
/* DELETE THIS: .related-section .wallpaper-card[data-type="mobile"],
                .related-section .wallpaper-card[data-type="desktop"] {
                    grid-column: span 1;
                } */

/* Let dynamic spanning work in related section too */
.related-section .wallpaper-card[data-type="mobile"] {
    grid-column: span 1; /* Mobile = 1 column */
}

.related-section .wallpaper-card[data-type="desktop"] {
    grid-column: span 2; /* Desktop = 2 columns */
}

.related-section .wallpaper-overlay {
    opacity: 0;
}

.related-section .wallpaper-card:hover .wallpaper-overlay {
    opacity: 1;
}

.related-section .wallpaper-info {
    display: flex !important;
    gap: 6px;
    margin-bottom: 6px;
}

.related-section .wallpaper-type,
.related-section .wallpaper-resolution {
    padding: 3px 8px;
    font-size: 10px;
}

.related-section .wallpaper-title {
    font-size: 13px;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1024px) {
    .wallpapers-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        grid-auto-rows: 260px;
        gap: 14px;
    }
    
    .related-section .wallpapers-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        grid-auto-rows: 220px;
    }
}

@media (max-width: 768px) {
    .wallpapers-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        grid-auto-rows: 240px;
        gap: 12px;
    }
    
    /* On mobile, all wallpapers take 1 column */
    .wallpaper-card[data-type="desktop"] {
        grid-column: span 1;
    }
    
    .search-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-again-form {
        width: 100%;
        min-width: auto;
    }
    
    .search-filters {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .category-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .sort-options {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-options select {
        flex: 1;
    }
    
    .related-section .wallpapers-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        grid-auto-rows: 200px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .wallpapers-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
        gap: 10px;
    }
    
    .wallpaper-card {
        border-radius: 8px;
    }
    
    .wallpaper-title {
        font-size: 12px !important;
        padding: 10px 12px !important;
    }
    
    .related-section .wallpapers-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 8px;
    }
    
    .search-info h1 {
        font-size: 22px;
    }
    
    .search-count {
        font-size: 14px;
    }
}

/* ================================
   ABOUT PAGE STYLES
   ================================ */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.about-hero {
    text-align: center;
    margin-bottom: 80px;
    padding: 40px 20px;
}

.about-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.about-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.about-section {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 48px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.about-section h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-section h2 svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-section p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-section p a {
    color: var(--accent-green);
    text-decoration: none;
    transition: var(--transition);
}

.about-section p a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.about-section ul {
    list-style: none;
    padding: 0;
    margin: 28px 0;
}

.about-section ul li {
    padding: 16px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 16px;
    line-height: 1.7;
    border-bottom: 1px solid var(--border-color);
}

.about-section ul li:last-child {
    border-bottom: none;
}

.about-section ul li svg {
    color: var(--accent-green);
    flex-shrink: 0;
    margin-top: 4px;
}

.about-section ul li span {
    flex: 1;
}

.about-section ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 32px 0 0;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 36px 24px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .about-container {
        padding: 40px 20px 60px;
    }
    
    .about-hero {
        margin-bottom: 50px;
        padding: 20px 0;
    }
    
    .about-hero h1 {
        font-size: 36px;
    }
    
    .about-hero p {
        font-size: 16px;
    }
    
    .about-section {
        padding: 32px 24px;
        margin-bottom: 30px;
    }
    
    .about-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .about-section p {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    .about-section ul li {
        padding: 14px 0;
        font-size: 15px;
    }
    
    .stats-grid {
        gap: 16px;
        margin-top: 24px;
    }
    
    .stat-card {
        padding: 28px 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        font-size: 28px;
    }
    
    .about-hero p {
        font-size: 15px;
    }
    
    .about-section {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    
    .about-section h2 {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .about-section p {
        font-size: 14px;
    }
    
    .about-section ul li {
        padding: 12px 0;
        font-size: 14px;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 24px 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* ================================
   CONTACT PAGE STYLES
   ================================ */
.contact-container {
    max-width: 700px;
    margin: 60px auto 80px;
    padding: 0 20px;
}

.contact-container .section-title {
    margin-bottom: 40px;
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 48px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 28px;
    font-size: 15px;
    font-weight: 500;
}

.alert svg {
    flex-shrink: 0;
}

.alert-success {
    background: rgba(126, 213, 111, 0.15);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-hover);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: -4px;
}

.btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(126, 213, 111, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--accent-green);
    transform: translateX(4px);
}

.info-card svg {
    color: var(--accent-green);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-card strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.info-card a {
    color: var(--accent-green);
    text-decoration: none;
    transition: var(--transition);
}

.info-card a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        margin: 40px auto 60px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .contact-form {
        gap: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn-submit {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .info-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 0 16px;
    }
    
    .contact-form-wrapper {
        padding: 24px 20px;
    }
    
    .contact-form {
        gap: 18px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px 13px;
        font-size: 14px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .btn-submit {
        padding: 13px 18px;
        font-size: 14px;
    }
    
    .info-card {
        padding: 18px;
        flex-direction: column;
        gap: 12px;
    }
    
    .info-card strong {
        font-size: 15px;
    }
    
    .info-card p {
        font-size: 13px;
    }
}

/* ================================
   LEGAL/CONTENT PAGES STYLES
   (Privacy, Terms, DMCA)
   ================================ */
.legal-container {
    max-width: 900px;
    margin: 60px auto 80px;
    padding: 0 20px;
}

.legal-container .section-title {
    margin-bottom: 40px;
}

.content-page {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.last-updated {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-green);
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 40px;
    font-size: 14px;
}

.content-section {
    margin-bottom: 48px;
}

.content-section h2 {
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 600;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h2:first-of-type {
    margin-top: 0;
}

.content-section h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section h3 svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

.content-section p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content-section ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.content-section ul li {
    margin-bottom: 12px;
    padding-left: 32px;
    position: relative;
    line-height: 1.7;
}

.content-section ul li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
}

.content-section ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content-section ol {
    margin: 20px 0;
    padding-left: 28px;
}

.content-section ol li {
    margin-bottom: 12px;
    padding-left: 8px;
    line-height: 1.7;
}

.content-section a {
    color: var(--accent-green);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.content-section a:hover {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

/* Notice Boxes (GDPR, CCPA, etc.) */
.notice-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-green);
    padding: 32px;
    border-radius: 10px;
    margin-top: 40px;
}

.notice-box h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-box h3 svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

.notice-box p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.notice-box p:last-child {
    margin-bottom: 0;
}

.notice-box ul {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
}

.notice-box ul li {
    margin-bottom: 12px;
    padding-left: 32px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
}

.notice-box ul li::before {
    content: "✓";
    position: absolute;
    left: 8px;
    top: 0;
    color: var(--accent-green);
    font-weight: 700;
    font-size: 16px;
}

/* Table of Contents (optional) */
.toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 40px;
}

.toc h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc ul li {
    margin-bottom: 10px;
    padding-left: 0;
}

.toc ul li::before {
    display: none;
}

.toc ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 6px 0;
}

.toc ul li a:hover {
    color: var(--accent-green);
    border-bottom-color: transparent;
    transform: translateX(4px);
}

/* Highlight Box */
.highlight-box {
    background: rgba(126, 213, 111, 0.1);
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text-primary);
}

/* Warning Box */
.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
}

.warning-box p {
    margin: 0;
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-container {
        margin: 40px auto 60px;
    }
    
    .content-page {
        font-size: 14px;
    }
    
    .last-updated {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .content-section {
        margin-bottom: 40px;
    }
    
    .content-section h2 {
        font-size: 22px;
        margin: 32px 0 16px;
        padding-bottom: 10px;
    }
    
    .content-section h3 {
        font-size: 18px;
        margin: 24px 0 14px;
    }
    
    .content-section p {
        margin-bottom: 14px;
    }
    
    .content-section ul li {
        margin-bottom: 10px;
        padding-left: 28px;
    }
    
    .content-section ul li::before {
        left: 6px;
        top: 9px;
        width: 5px;
        height: 5px;
    }
    
    .notice-box {
        padding: 24px 20px;
        margin-top: 32px;
    }
    
    .notice-box h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .notice-box ul li {
        padding-left: 28px;
    }
    
    .toc {
        padding: 20px 24px;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 0 16px;
    }
    
    .content-page {
        font-size: 14px;
    }
    
    .content-section h2 {
        font-size: 20px;
        margin: 28px 0 14px;
    }
    
    .content-section h3 {
        font-size: 17px;
        margin: 20px 0 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .content-section ul li {
        padding-left: 24px;
        font-size: 14px;
    }
    
    .content-section ul li::before {
        left: 4px;
    }
    
    .notice-box {
        padding: 20px 16px;
    }
    
    .notice-box h3 {
        font-size: 17px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .notice-box ul li {
        padding-left: 24px;
        font-size: 14px;
    }
    
    .notice-box ul li::before {
        left: 4px;
    }
}

/* ================================
   ADDITIONAL STYLES FOR DMCA PAGE
   Add these to your legal_pages_styles.css
   ================================ */

/* Contact Box (for DMCA agent info) */
.contact-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    margin: 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-box svg {
    color: var(--accent-green);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-box div {
    flex: 1;
}

.contact-box p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-box p:last-child {
    margin-bottom: 0;
}

.contact-box strong {
    color: var(--text-primary);
    font-weight: 600;
}

.contact-box a {
    color: var(--accent-green);
    text-decoration: none;
    transition: var(--transition);
}

.contact-box a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* Enhanced Warning Box (with icon) */
.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.warning-box svg {
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-box p {
    margin: 0;
    color: #ef4444;
    line-height: 1.7;
}

.warning-box strong {
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-box {
        padding: 20px;
        gap: 14px;
    }
    
    .warning-box {
        padding: 18px 20px;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .contact-box {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }
    
    .contact-box svg {
        align-self: flex-start;
    }
    
    .warning-box {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }
    
    .warning-box svg {
        align-self: flex-start;
    }
}