/*
Theme Name: Cartoondb Wallpaper Theme
Theme URI: https://cartoon-db.com
Author: Cartoondb Team
Description: Clean professional WordPress theme for wallpaper websites
Version: 2.0.0
License: GPL v2
Text Domain: cartoondb
*/

/* ============================================
   BASE STYLES
   ============================================ */

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-hover: #222222;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: #2a2a2a;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #22c55e;
    --image-badge: #22c55e;
    --gif-badge: #f59e0b;
    --radius: 8px;
    --radius-lg: 12px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.site-logo i {
    color: var(--accent);
    font-size: 24px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-btn,
.menu-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.search-btn:hover,
.menu-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.menu-btn {
    display: none;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 200;
    transition: right 0.3s;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.mobile-nav {
    padding: 12px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.mobile-nav a:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   SEARCH MODAL
   ============================================ */

.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 300;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-inner {
    width: 90%;
    max-width: 600px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.search-modal-close {
    float: right;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 16px;
}

.search-form-large {
    display: flex;
    gap: 12px;
}

.search-form-large input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 16px;
}

.search-form-large input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-form-large button {
    padding: 14px 24px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form-large button:hover {
    background: var(--accent-hover);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-title span {
    color: var(--accent);
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

.hero-search {
    max-width: 550px;
    margin: 0 auto 40px;
}

.hero-search .search-box {
    display: flex;
    gap: 10px;
}

.hero-search input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
}

.hero-search input:focus {
    outline: none;
    border-color: var(--accent);
}

.hero-search button {
    padding: 14px 28px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat-item .stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-item .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* ============================================
   SECTIONS
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent);
}

.view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* ============================================
   CATEGORY GRID
   ============================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.2s;
}

.category-card:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.category-card i {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
    color: var(--accent);
}

.category-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   WALLPAPER CARDS - 16:9 RATIO
   ============================================ */

.wallpapers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.wallpaper-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.wallpaper-card:hover {
    border-color: var(--accent);
}

.wallpaper-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    display: block;
}

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

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

.wallpaper-type {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.wallpaper-type.image {
    background: var(--image-badge);
    color: white;
}

.wallpaper-type.gif {
    background: var(--gif-badge);
    color: white;
}

.wallpaper-res {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.7);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: white;
}

.wallpaper-info {
    padding: 14px 16px;
}

.wallpaper-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallpaper-title a:hover {
    color: var(--accent);
}

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

.wallpaper-meta-left {
    display: flex;
    gap: 14px;
}

.wallpaper-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wallpaper-cat {
    color: var(--accent);
}

.wallpaper-cat:hover {
    text-decoration: underline;
}

/* ============================================
   SINGLE WALLPAPER PAGE
   ============================================ */

.single-wallpaper {
    padding: 24px 0 48px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.wallpaper-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

/* Main Content */
.wallpaper-main {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.wallpaper-preview {
    position: relative;
    background: var(--bg-secondary);
}

.wallpaper-preview img,
.wallpaper-preview video {
    width: 100%;
    display: block;
}

.wallpaper-preview-type {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.wallpaper-preview-type.image {
    background: var(--image-badge);
    color: white;
}

.wallpaper-preview-type.gif {
    background: var(--gif-badge);
    color: white;
}

.wallpaper-content {
    padding: 24px;
}

.wallpaper-content h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.wallpaper-content-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.wallpaper-content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.wallpaper-content-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallpaper-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wallpaper-tag {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.wallpaper-tag:hover {
    background: var(--accent);
    color: white;
}

/* Sidebar */
.wallpaper-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.sidebar-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-box h3 i {
    color: var(--accent);
}

/* Download Buttons */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.download-btn:hover {
    border-color: var(--accent);
}

.download-btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.download-btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.download-btn-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.download-btn-info i {
    font-size: 18px;
}

.download-btn-text {
    font-weight: 500;
}

.download-btn-sub {
    font-size: 12px;
    opacity: 0.8;
}

.download-btn-size {
    font-size: 13px;
    font-weight: 500;
}

/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value {
    font-weight: 500;
}

/* Share */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    flex: 1;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.8;
}

.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.pi { background: #bd081c; }
.share-btn.wa { background: #25d366; }

/* Related */
.related-wallpapers {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   ARCHIVE / CATEGORY PAGE
   ============================================ */

.category-header {
    padding: 40px 0;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.category-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-header p {
    color: var(--text-secondary);
}

.category-nav {
    padding: 16px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.category-nav-inner {
    display: flex;
    gap: 8px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-nav a {
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-nav a:hover,
.category-nav a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

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

.archive-sort select {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
}

/* ============================================
   EXPLORE PAGE
   ============================================ */

.explore-header {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.explore-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.explore-header p {
    color: var(--text-secondary);
}

.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.filter-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.filter-search-box {
    position: relative;
}

.filter-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-search-box input {
    padding-left: 42px;
}

.filter-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent);
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

/* ============================================
   SEARCH PAGE
   ============================================ */

.search-header {
    padding: 40px 0;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.search-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.search-header .query {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 8px;
}

.search-header .count {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-secondary);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin: 16px 0;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--accent);
    color: white;
}

.footer-column h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-legal a:hover {
    color: var(--accent);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .wallpaper-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 56px;
    }
    
    .main-nav {
        display: none;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 40px 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .hero-search .search-box {
        flex-direction: column;
    }
    
    .section {
        padding: 32px 0;
    }
    
    .wallpapers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wallpapers-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .category-header h1 {
        font-size: 24px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.hidden { display: none !important; }

/* Loading */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}
