/* ==========================================================================
   Mursel.net Kurban Bayramı Özel Tasarım Sistemi (style.css)
   Minimalist, Premium ve Mobil Uyumlu Tasarım
   ========================================================================== */

/* --- 1. Temel Değişkenler (CSS Variables) --- */
:root {
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, Cambria, "Times New Roman", serif;
    
    --bg-dark: #070e0b; /* Çok derin orman yeşili/siyah */
    --card-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(16, 185, 129, 0.1);
    
    /* Yazı Renkleri (Daire içi beyaz alan için) */
    --color-green-dark: #042f1a; /* Derin zümrüt yeşili */
    --color-green-light: #065f46; /* Canlı yeşil */
    --color-gold: #b45309; /* Premium altın/amber tonu */
    
    /* Arka Plan Efektleri */
    --glow-emerald: rgba(16, 185, 129, 0.08);
    --glow-gold: rgba(245, 158, 11, 0.06);
}

/* --- 2. Genel Ayarlar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Taşmaları ve kaydırma çubuklarını tamamen engeller */
    position: fixed; /* Mobilde elastik kaydırmayı bloke ederek tam ekran kilitler */
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Arka Plan Nokta Deseni (.bg-dots) */
.bg-dots {
    background-image: radial-gradient(rgba(16, 185, 129, 0.08) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* Arka Plan Parlama Efektleri (Glow Effects) */
.glow-effect {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
    opacity: 0.8;
    animation: glow-pulse 12s ease-in-out infinite alternate;
}

.glow-1 {
    top: -10%;
    left: 10%;
    background: radial-gradient(circle, var(--glow-emerald) 0%, transparent 70%);
}

.glow-2 {
    bottom: -10%;
    right: 10%;
    background: radial-gradient(circle, var(--glow-gold) 0%, transparent 70%);
}

@keyframes glow-pulse {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.2) translate(5%, 5%);
        opacity: 0.95;
    }
}

/* --- 3. Ana İçerik ve Kart Yapısı --- */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    z-index: 1;
}

.bayram-card-container {
    width: 100%;
    max-width: 520px; /* Kare kartın maksimum boyutu */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container Query Tanımlaması (Yazı boyutlarının duyarlı olması için kritik) */
.card-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Tam kare yapı */
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background-color: #0c1a14;
    border: 1px solid rgba(16, 185, 129, 0.15);
    container-type: inline-size; /* Genişliğe göre container query */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-wrapper:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 60px rgba(16, 185, 129, 0.15);
}

.bayram-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* --- 4. Yazı Bindirme Alanı (Text Overlay) --- */
.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44%; /* Beyaz daire alanının sınırlarına güvenli uyum */
    height: 44%; /* Beyaz daire alanının sınırlarına güvenli uyum */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    padding: 10px;
}

/* Container Query Birimleri (cqi) İle Dinamik Yazı Boyutları */
.text-top {
    font-family: var(--font-sans);
    font-size: 4cqi;
    font-weight: 600;
    color: var(--color-green-light);
    letter-spacing: 0.28em;
    margin-bottom: 0.5cqi;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    opacity: 0.95;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.text-middle {
    font-family: var(--font-serif);
    font-size: 7.2cqi;
    font-weight: 800;
    color: var(--color-green-dark);
    line-height: 1.1;
    margin-bottom: 0.8cqi;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* Şık Altın Ayırıcı Motif */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    margin: 1cqi 0;
    gap: 1.5cqi;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.divider-line {
    height: 1.2px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.divider-star {
    color: var(--color-gold);
    font-size: 2.5cqi;
    line-height: 1;
}

.text-bottom {
    font-family: var(--font-serif);
    font-size: 6cqi;
    font-weight: 700;
    font-style: italic;
    color: var(--color-gold);
    line-height: 1.2;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* --- 5. Alt İmza (Footer) --- */
.signature-footer {
    padding: 24px;
    text-align: center;
    z-index: 2;
    width: 100%;
}

.signature-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.signature-link:hover {
    color: rgba(16, 185, 129, 0.8);
    border-color: rgba(16, 185, 129, 0.3);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* --- 6. Animasyon Tanımları --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

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

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

/* Mobil Cihazlar İçin Küçük İyileştirmeler */
@media (max-width: 480px) {
    .bayram-card-container {
        max-width: 90vw;
    }
    
    .card-wrapper {
        border-radius: 20px;
    }
    
    .text-overlay {
        width: 58%;
        height: 58%;
    }
}

/* --- 7. Dokunmatik Pırıltı Efekti --- */
.sparkle {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    user-select: none;
    color: var(--color-gold);
    font-size: 20px;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.8), 0 0 20px rgba(251, 191, 36, 0.5);
    animation: sparkle-fade 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    will-change: transform, opacity;
}

@keyframes sparkle-fade {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--speed-x)), calc(-50% + var(--speed-y))) scale(1.4) rotate(var(--rotation));
        opacity: 0;
    }
}
