:root {
    /* Color Palette */
    --color-primary: #FDE3A7; /* Soft Yellow */
    --color-secondary: #FFF9C4; /* Light Yellow */
    --color-accent: #F39C12; /* Golden Yellow for emphasis */
    --color-background: #FFFEFA; /* Warm cream */
    --color-surface: #FFFFFF; /* White */
    --color-text-dark: #2d3436;
    --color-text-muted: #636e72;
    --color-border: #FAD7A1;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(243, 156, 18, 0.15);
    --shadow-md: 0 4px 16px rgba(243, 156, 18, 0.25);
    --shadow-lg: 0 10px 30px rgba(243, 156, 18, 0.35);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Border Radius */
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

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

body {
    background: linear-gradient(-45deg, #FFFEFA, #FFF5E1, #FDE3A7, #FFE8D6);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-weight: 600;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #D68910;
}

/* Glassmorphism Surface */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    transition: all var(--transition-normal);
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    color: white;
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Inputs */
.form-control {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid rgba(250, 215, 161, 0.5);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    background: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.1);
}

/* Floating Hearts Animation */
.heart {
    position: fixed;
    font-size: 1.5rem;
    color: var(--color-accent);
    opacity: 0;
    animation: floatHeart 6s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-20vh) scale(1.5);
        opacity: 0;
    }
}

/* Page Transitions - Handled by IntersectionObserver */
.fade-in, .slide-up {
    /* Initially hidden by JS, or fallback here */
    opacity: 0;
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '♥';
    display: block;
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-top: 10px;
}

/* Login Page specific */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(rgba(255, 254, 250, 0.3), rgba(255, 254, 250, 0.7)), url('https://images.unsplash.com/photo-1508610048659-a06b669e3321?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.login-card {
    max-width: 450px;
    width: 100%;
    padding: 50px 40px;
    text-align: center;
}

.login-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

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

.error-message {
    color: #e74c3c;
    background: #fadbd8;
    padding: 10px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(255, 254, 250, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(250, 215, 161, 0.35);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.header-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

/* Logo kalp döner */
.logo-heart {
    animation: spinHeart 3s ease-in-out infinite;
    display: inline-block;
    color: var(--color-accent);
}

@keyframes spinHeart {
    0%   { transform: scale(1) rotate(0deg); }
    25%  { transform: scale(1.3) rotate(-15deg); }
    50%  { transform: scale(1) rotate(0deg); }
    75%  { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* "Bizim Hikayemiz" shimmer animasyonu */
.logo-text {
    background: linear-gradient(90deg, #F39C12 0%, #FFD700 40%, #F39C12 60%, #D68910 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 2.5s linear infinite;
}

@keyframes logoShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* M❤️B rozeti - ortada */
.header-center-badge {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 2px;
    animation: badgePulse 1.5s ease-in-out infinite;
}

.header-heart {
    font-size: 1rem;
    color: #e74c3c;
    animation: heartBeat 1.2s ease-in-out infinite;
}

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

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14%       { transform: scale(1.3); }
    28%       { transform: scale(1); }
    42%       { transform: scale(1.2); }
    70%       { transform: scale(1); }
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.header-nav a {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-dark);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.header-nav a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: rgba(243, 156, 18, 0.07);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.video-card video {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
}
@media (max-width: 768px) {
    .video-grid { grid-template-columns: 1fr; }
}

/* Masonry Gallery */
.masonry-gallery {
    column-count: 3;
    column-gap: 20px;
    margin-top: 50px;
}
.masonry-gallery .glass-panel {
    margin-bottom: 20px;
    break-inside: avoid;
}

@media (max-width: 992px) {
    .masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .masonry-gallery {
        column-count: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .masonry-gallery .glass-panel {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
}

/* =====================
   Resim Skeleton Loader
   ===================== */
.img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    background: #f5f5f5;
    min-height: 120px;
}

/* Shimmer iskelet animasyonu */
.img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(250, 215, 161, 0.2) 0%,
        rgba(243, 156, 18, 0.15) 40%,
        rgba(250, 215, 161, 0.2) 80%
    );
    background-size: 200% 100%;
    animation: shimmerSlide 1.4s ease-in-out infinite;
    z-index: 1;
    border-radius: var(--radius-md);
    transition: opacity 0.4s ease;
}

/* Resim yüklenince skeleton kaybolsun */
.img-wrapper.loaded::before {
    opacity: 0;
    pointer-events: none;
}

@keyframes shimmerSlide {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* Resim blur-dan net'e geçiş */
.img-wrapper img {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
    filter: blur(6px);
    transform: scale(1.02);
    transition: filter 0.5s ease, transform 0.5s ease, opacity 0.4s ease;
    opacity: 0;
    position: relative;
    z-index: 2;
}

.img-wrapper.loaded img {
    filter: blur(0);
    transform: scale(1);
    opacity: 1;
}