/* --- CSS Variables & Design System --- */
:root {
    --bg-base: #0f172a;
    --bg-surface: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Animated Background Elements --- */
.background-animation {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
}
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}
.glow-1 {
    width: 400px; height: 400px;
    background: var(--accent-primary);
    top: -100px; left: -100px;
}
.glow-2 {
    width: 500px; height: 500px;
    background: var(--accent-secondary);
    bottom: -150px; right: 10vw;
    animation-delay: -5s;
}
.glow-3 {
    width: 300px; height: 300px;
    background: #ec4899;
    top: 20%; left: 50%;
    animation-delay: -10s;
}

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

/* --- Header & Glassmorphism Navigation --- */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
    line-height: 1;
}
.brand-kanal { color: var(--text-primary); }
.brand-vizyon { 
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-slogan {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-top: 4px;
    text-transform: uppercase;
}

.nav-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.nav-control {
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 0 var(--spacing-xs);
    opacity: 0.7;
    transition: var(--transition);
    z-index: 10;
    background: var(--bg-surface);
    height: 100%;
}
.nav-control:hover { opacity: 1; color: var(--accent-primary); }
.left-control { box-shadow: 10px 0 10px -5px var(--bg-surface); }
.right-control { box-shadow: -10px 0 10px -5px var(--bg-surface); }

.top-nav {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
}
.top-nav::-webkit-scrollbar { display: none; } /* Safari/Chrome */

.nav-list {
    display: flex;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-sm);
    white-space: nowrap;
}

.nav-item {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}
.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.icon-btn {
    color: var(--text-primary);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn svg { width: 20px; height: 20px; }

/* --- Main Content --- */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 2rem 0 4rem 0;
    animation: fadeIn 1s ease-out;
}
.hero-video {
    width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: cover;
    display: block;
    opacity: 0.8;
}

.mute-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}
.mute-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}
.mute-btn svg {
    width: 22px;
    height: 22px;
}
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-image {
    height: 45px;
    width: auto;
    border-radius: 6px;
    display: block;
}

/* Category Content Section */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-md);
    animation: slideUp 0.5s ease-out;
}
.category-title {
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: var(--spacing-xs);
}
.category-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Content Cards Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: var(--spacing-sm);
}

@media (max-width: 1400px) {
    .content-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 1100px) {
    .content-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 800px) {
    .content-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 500px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease-out backwards;
}
.card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-media {
    width: 100%;
    height: 100px;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.card:hover .card-media img {
    transform: scale(1.05);
}

.type-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-body {
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
}
.card-action svg { width: 18px; height: 18px; transition: transform 0.3s; }
.card:hover .card-action svg { transform: translateX(5px); }
.card:hover .card-action.download svg { transform: translateY(3px); }

/* --- Admin & Upload Elements --- */
.progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    margin-top: 12px;
    overflow: hidden;
    display: none;
}
.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sorting & Filters */
.sort-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

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

/* Responsiveness */
@media (max-width: 768px) {
    .header-container { padding: 0 var(--spacing-sm); gap: var(--spacing-sm); }
    .hero-title { font-size: 2.5rem; }
    .category-title { font-size: 2rem; }
}
