/* ============================================================
   AI WALLPAPER 4K - PREMIUM CHROME EDITION v3.0 (FINAL)
   ============================================================ */
:root {
    /* --- PREMIUM DARK CHROME PALETTE --- */
    --bg-dark: #050505;       /* En koyu zemin (Derinlik için) */
    --bg-chrome: #0f0f11;     /* Metalik gri (Kartlar için) */
    --accent: #00f2ff;        /* Neon Camgöbeği (Vurgu) */
    --accent-glow: rgba(0, 242, 255, 0.4);
    
    --text: #ececec;          /* Kırık beyaz (Gözü yormaz) */
    --text-muted: #888890;    /* Metalik gri yazı */
    
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --border-shine: 1px solid rgba(255, 255, 255, 0.15); /* Üstten ışık vurma efekti */
    
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Critical CSS Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    /* GRİMSİ KROM ARKA PLAN */
    background-image: 
        radial-gradient(circle at 50% 0%, #1f2024 0%, transparent 60%), /* Tepe ışığı */
        linear-gradient(180deg, #050505 0%, #101012 100%); /* Metalik degrade */
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* --- LAYOUT & HEADER (CAM EFEKTLİ) --- */
.container { max-width: 1800px; margin: 0 auto; padding: 20px; width: 100%; }

header {
    position: sticky; top: 0; z-index: 10000; padding: 15px 40px;
    background: rgba(10, 10, 12, 0.75); /* Yarı saydam */
    backdrop-filter: blur(20px) saturate(180%); /* Buzlu cam */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-nav { display: flex; gap: 25px; align-items: center; }
.header-nav a { color: #b0b0b0; text-decoration: none; font-size: 14px; font-weight: 600; transition: 0.3s; position: relative; }
.header-nav a:hover { color: var(--accent); text-shadow: 0 0 10px var(--accent-glow); }

.logo { 
    font-size: 24px; font-weight: 900; color: #fff; text-decoration: none; 
    display: flex; align-items: center; gap: 10px; letter-spacing: 1px;
}
.logo i { color: var(--accent); filter: drop-shadow(0 0 8px var(--accent)); }

/* --- SEARCH SECTION --- */
.search-section { padding: 40px 20px; background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%); }
.search-container { max-width: 600px; margin: 0 auto; }
.search-box {
    display: flex; align-items: center; background: rgba(20, 20, 25, 0.8);
    border: var(--border-glass); border-top: var(--border-shine); /* 3D Efekt */
    border-radius: 50px; padding: 5px;
    backdrop-filter: blur(10px); transition: 0.3s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.search-box:focus-within { 
    border-color: var(--accent); 
    box-shadow: 0 0 25px rgba(0,242,255,0.15); 
}
.search-box i { color: var(--accent); margin-left: 20px; font-size: 18px; }
.search-box input { flex: 1; background: 0 0; border: none; outline: 0; color: #fff; padding: 15px 20px; font-size: 16px; }
.search-btn {
    background: linear-gradient(135deg, var(--accent), #008c94); border: none; color: #000;
    padding: 12px 25px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.3s; margin-right: 5px;
}
.search-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(0,242,255,0.4); }

/* ============================================================
   KATEGORİ MENÜSÜ - PREMIUM CHROME & WRAP LAYOUT
   ============================================================ */

.category-bar {
    padding: 30px 0;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    margin-bottom: 20px;
}

.category-container {
    display: flex;
    flex-wrap: wrap;       /* ÖNEMLİ: Sığmayanları alt satıra at */
    justify-content: center; /* Hepsini ortala */
    gap: 12px;             /* Butonlar arası boşluk */
    padding: 0 20px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Kaydırma çubuğunu gizle */
.category-container::-webkit-scrollbar { display: none; }

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    
    /* KROM BUTON TASARIMI */
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.9), rgba(15, 15, 20, 0.95));
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.15); /* Üstten ışık vurma efekti */
    border-radius: 10px;
    
    color: #999;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.category-btn i {
    font-size: 14px;
    color: #666;
    transition: color 0.3s;
}

/* Hover ve Aktif Durumu */
.category-btn:hover, 
.category-btn.active {
    background: linear-gradient(145deg, rgba(45, 45, 50, 1), rgba(25, 25, 30, 1));
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.4), 
        0 0 15px rgba(0, 242, 255, 0.1); /* Hafif neon gölge */
}

.category-btn.active {
    border-color: var(--accent); /* Aktifse neon kenarlık */
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
}

.category-btn:hover i,
.category-btn.active i {
    color: var(--accent);
}

/* --- HERO TEXT (KROM EFEKTLİ) --- */
.page-hero-title {
    font-size: clamp(42px, 8vw, 72px); font-weight: 900; margin-bottom: 20px;
    /* Gümüş/Krom Geçişi */
    background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 50%, #606060 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.6));
    letter-spacing: -2px;
}
.page-hero-subtitle { 
    font-size: clamp(16px, 2vw, 20px); color: var(--text-muted); 
    font-weight: 400; letter-spacing: 2px; text-transform: uppercase; 
}

/* --- GALLERY GRID & CARDS --- */
.gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px; width: 100%; margin-top: 20px;
}
@media (min-width: 1200px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* Modern Card Styles (Premium) */
.card, .wallpaper-card {
    background: #101012;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    cursor: pointer;
}
.card:hover, .wallpaper-card:hover { 
    transform: translateY(-8px); 
    border-color: rgba(255,255,255,0.2); 
    box-shadow: 0 25px 60px rgba(0,0,0,0.7); 
}

/* Resim Alanı - Standart Görünüm (4:3 Oran - Zorunlu) */
.card-image {
    width: 100%;
    aspect-ratio: 4 / 3; /* Standart oran */
    position: relative;
    background: #000;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card:hover .card-image img, .wallpaper-card:hover .card-image img { transform: scale(1.1); }

.card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 25px;
    opacity: 1; /* Her zaman hafif görünür, hover'da netleşir */
}

.overlay-content { transform: translateY(10px); transition: transform 0.3s ease; }
.card:hover .overlay-content, .wallpaper-card:hover .overlay-content { transform: translateY(0); }

.card-title {
    font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.9); line-height: 1.3;
}
.card-meta { font-size: 12px; color: #ccc; display: flex; align-items: center; gap: 15px; }
.meta-item { display: flex; align-items: center; gap: 6px; }
.meta-item i { color: var(--accent); font-size: 12px; }

/* --- PAGINATION & BUTTONS --- */
.pagination-container { margin: 60px 0; text-align: center; }
.pagination {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(20,20,25,0.8);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; padding: 10px; backdrop-filter: blur(10px);
}
.pagination-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 12px 20px;
    background: transparent; border: 1px solid rgba(255,255,255,0.05); border-radius: 25px;
    color: #ccc; text-decoration: none; font-size: 14px; font-weight: 600; transition: 0.3s;
    min-width: 45px; justify-content: center;
}
.pagination-btn:hover {
    background: rgba(255,255,255,0.05); border-color: var(--accent); color: #fff; transform: translateY(-2px);
}
.pagination-btn.active {
    background: linear-gradient(135deg, var(--accent), #008c94); border-color: var(--accent); color: #000; font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}
.load-more-btn {
    background: var(--accent); color: #000; border: none; padding: 15px 50px; border-radius: 50px;
    font-size: 16px; font-weight: 800; cursor: pointer; transition: 0.3s;
}
.load-more-btn:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(0,242,255,0.4); }

/* --- AD SPACES --- */
.ad-space-horizontal { max-width: 1200px; margin: 0 auto 40px; padding: 0 20px; position: relative; z-index: 1; }
.ad-space-bottom { max-width: 1200px; margin: 60px auto 0; padding: 0 20px; }
.ad-content-wrapper {
    text-align: center; background: rgba(15,15,18,0.6); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px; padding: 30px; backdrop-filter: blur(10px); min-height: 90px;
    display: flex; align-items: center; justify-content: center;
}
.ad-card {
    background: #0f0f11; border: 1px solid rgba(0,242,255,0.15); border-radius: 18px;
    padding: 20px; margin: 10px 0; position: relative; min-height: 250px;
    display: flex; align-items: center; justify-content: center;
}
.ad-badge {
    position: absolute; top: 10px; right: 10px; background: rgba(0,242,255,0.1);
    color: var(--accent); padding: 4px 10px; border-radius: 12px; font-size: 10px; font-weight: 700; text-transform: uppercase;
}

/* --- BLOG & CONTENT PAGES --- */
.page-hero { text-align: center; padding: 120px 20px 80px; background: transparent; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1400px; margin: 0 auto; padding: 40px 20px; }
.blog-card {
    background: var(--bg-chrome); border: 1px solid var(--border-glass); border-radius: 20px; overflow: hidden;
    transition: 0.4s; cursor: pointer; display: flex; flex-direction: column; height: 100%;
}
.blog-card:hover { transform: translateY(-10px); border-color: rgba(0,255,204,0.3); box-shadow: 0 20px 40px rgba(0,255,204,0.1); }
.blog-card-image { width: 100%; height: 220px; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.blog-card:hover .blog-card-image img { transform: scale(1.1); }
.blog-card-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.blog-card-title { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 12px; transition: 0.3s; }
.blog-card:hover .blog-card-title { color: #00ffcc; }
.blog-card-meta { display: flex; justify-content: space-between; color: #666; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; margin-top: auto; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    header { padding: 15px 20px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-search { display: none; }
    .page-hero { padding: 80px 20px 50px; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .search-section { padding: 30px 15px; }
    .search-box { flex-direction: column; border-radius: 20px; padding: 15px; }
    .search-box i { margin: 0 0 10px 0; }
    .search-box input { width: 100%; padding: 15px; text-align: center; }
    .search-btn { width: 100%; margin: 15px 0 0 0; }
    
    /* Mobil Kategori Düzeni */
    .category-container { gap: 8px; padding: 0 15px; }
    .category-btn { padding: 10px 16px; font-size: 12px; flex-grow: 1; justify-content: center; }
    
    .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .gallery { grid-template-columns: 1fr; }
    .category-container { padding: 15px; gap: 8px; }
}