/* ========================================
   DİJİTAL TEFEÜL - Mistik Görsel Tasarım
   CSS Animasyonları ile Modern Deneyim
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Amiri:ital,wght@0,400;0,700;1,400&family=Tangerine:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #D4AF37;
    --gold-light: #F4E4BA;
    --gold-dark: #996515;
    --bg-dark: #0a0a14;
    --bg-darker: #050508;
    --text-light: #E8E6E3;
    --text-muted: rgba(232, 230, 227, 0.6);
}

/* ========================================
   ANA YAPI
   ======================================== */

.tefeul-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #0d1526 0%, #050508 100%);
    overflow: hidden;
    font-family: 'Amiri', serif;
    color: var(--text-light);
    z-index: 100;
}

/* Geri Dön Butonu */
.back-button {
    position: absolute;
    top: 25px;
    left: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 50;
}

.back-button:hover {
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(-3px);
}

.back-button i {
    font-size: 1rem;
}

/* Site Logo */
.site-logo {
    position: absolute;
    bottom: 25px;
    right: 25px;
    z-index: 50;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.7;
}

.site-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ========================================
   YILDIZLI ARKA PLAN
   ======================================== */

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(odd) {
    animation-duration: 4s;
}

.star:nth-child(3n) {
    width: 3px;
    height: 3px;
    background: var(--gold);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Mistik Işık Efekti */
.mystic-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* ========================================
   ANA İÇERİK
   ======================================== */

.tefeul-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

/* ========================================
   BAŞLIK
   ======================================== */

.tefeul-title {
    margin-bottom: 20px;
    animation: fadeInDown 1s ease forwards;
}

.tefeul-title h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 10px;
    text-shadow:
        0 0 30px rgba(212, 175, 55, 0.5),
        0 0 60px rgba(212, 175, 55, 0.3);
    margin-bottom: 10px;
}

.tefeul-title p {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 2px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   NİYET BUTONU
   ======================================== */

.niyet-area {
    margin: 40px 0;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.niyet-btn {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
            rgba(212, 175, 55, 0.1) 0%,
            rgba(10, 10, 20, 0.95) 70%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.4s ease;
    box-shadow:
        0 0 50px rgba(212, 175, 55, 0.2),
        inset 0 0 50px rgba(212, 175, 55, 0.05);
}

.niyet-btn::before {
    content: '';
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.15);
    animation: pulse-ring 3s ease-in-out infinite;
}

.niyet-btn::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.08);
    animation: pulse-ring 3s ease-in-out infinite 0.5s;
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.niyet-btn:hover {
    transform: scale(1.05);
    border-color: var(--gold);
    box-shadow:
        0 0 80px rgba(212, 175, 55, 0.4),
        inset 0 0 60px rgba(212, 175, 55, 0.1);
}

.niyet-btn .moon-icon {
    font-size: 3.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
}

.niyet-btn .btn-text {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ========================================
   BEKLEME / ANİMASYON DURUMU
   ======================================== */

.waiting-state {
    display: none;
    text-align: center;
    animation: fadeIn 0.8s ease forwards;
}

.waiting-state.active {
    display: block;
}

.waiting-icon {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 30px;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.waiting-messages {
    min-height: 80px;
}

.waiting-text {
    font-size: 1.5rem;
    color: var(--gold-light);
    font-style: italic;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInOut 2s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    20% {
        opacity: 1;
        transform: translateY(0);
    }

    80% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Progress Bar */
.waiting-progress {
    width: 200px;
    height: 3px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 3px;
    margin: 30px auto 0;
    overflow: hidden;
}

.waiting-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 3px;
    transition: width 0.1s linear;
    box-shadow: 0 0 15px var(--gold);
}

/* ========================================
   SONUÇ MODALI
   ======================================== */

.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.result-modal.active {
    display: flex;
}

.result-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.92);
    backdrop-filter: blur(15px);
    animation: fadeIn 0.5s ease;
}

.result-card {
    position: relative;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(160deg,
            rgba(18, 18, 30, 0.98) 0%,
            rgba(10, 10, 18, 0.99) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow:
        0 0 100px rgba(212, 175, 55, 0.15),
        0 30px 80px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Beyit Bölümü */
.beyit-section {
    text-align: center;
    padding: 20px 0 30px;
}

.beyit-quote {
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.25);
    line-height: 1;
    margin-bottom: 20px;
}

.beyit-text {
    font-family: 'Amiri', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    line-height: 2.4;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 400;
}

.beyit-author {
    font-family: 'Tangerine', cursive;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Açıklama Bölümü */
.aciklama-section {
    background: rgba(212, 175, 55, 0.03);
    border-left: 3px solid var(--gold);
    padding: 25px 30px;
    border-radius: 0 16px 16px 0;
    margin-top: 30px;
}

.aciklama-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.aciklama-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-muted);
}

/* Butonlar */
.result-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-yeni {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold);
    padding: 14px 35px;
    border-radius: 50px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-yeni:hover {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--gold);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .tefeul-content {
        padding: 30px 15px;
    }

    .tefeul-title h1 {
        letter-spacing: 5px;
    }

    .niyet-btn {
        width: 160px;
        height: 160px;
    }

    .niyet-btn::before {
        width: 190px;
        height: 190px;
    }

    .niyet-btn::after {
        width: 220px;
        height: 220px;
    }

    .niyet-btn .moon-icon {
        font-size: 2.8rem;
    }

    .result-card {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .waiting-text {
        font-size: 1.2rem;
    }
}

/* Scrollbar */
.result-card::-webkit-scrollbar {
    width: 5px;
}

.result-card::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.05);
}

.result-card::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}

/* ========================================
    REKLAM ALANI LAYOUT
    ======================================== */

.result-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

/* Reklam varken kart genişler */
.result-card.has-promo {
    max-width: 1100px;
}

/* Görsel Stili */
.promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.result-main {
    flex: 1;
    min-width: 0;
    /* Flex overflow fix */
    width: 100%;
}

.result-layout .result-card {
    max-width: 100%;
}

.result-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    /* Reklam kutusu stili */
    background: rgba(18, 18, 30, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    animation: fadeIn 1s ease 0.5s forwards;
    opacity: 0;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
    .result-layout {
        flex-direction: column;
        align-items: center;
    }

    .result-sidebar {
        width: 100%;
        max-width: 300px;
        position: static;
        margin-top: 25px;
    }
}