﻿* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #fff7fb 0%, #fffdf8 100%);
    color: #4b3b47;
}

body {
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.app-shell {
    width: 100%;
}

.mobile-page,
.admin-page,
.admin-login-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
}

.hero-card,
.card,
.admin-login-card {
    background: rgba(255,255,255,0.92);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(141, 113, 136, 0.10);
    border: 1px solid rgba(237, 210, 226, 0.7);
}

.hero-card {
    margin-bottom: 16px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffe8f3;
    color: #a55483;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-title {
    margin: 0 0 8px 0;
    font-size: 30px;
    line-height: 1.2;
}

.hero-subtitle,
.section-desc {
    color: #7a6673;
    line-height: 1.6;
    margin-top: 0;
}

.alert {
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
}

    .alert.success {
        background: #eefcf3;
        color: #246b41;
        border: 1px solid #cdeed8;
    }

    .alert.error {
        background: #fff0f0;
        color: #a13f52;
        border: 1px solid #f1c6cf;
    }

.tab-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.tab-btn {
    border: none;
    border-radius: 18px;
    padding: 14px 10px;
    background: #fff;
    color: #7a6171;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(141, 113, 136, 0.08);
    cursor: pointer;
}

    .tab-btn.active {
        background: linear-gradient(135deg, #ffd9e9, #ffeec7);
        color: #7c3658;
    }

.tab-panel {
    display: none;
}

    .tab-panel.active {
        display: block;
    }

.card {
    margin-bottom: 16px;
}

    .card h2 {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 22px;
    }

.form-group {
    margin-bottom: 16px;
}

    .form-group label {
        display: block;
        font-weight: 700;
        margin-bottom: 8px;
        color: #6b5061;
    }

.text-input,
.text-area,
.input-file {
    width: 100%;
    border: 1px solid #ead3df;
    border-radius: 16px;
    padding: 14px;
    font-size: 15px;
    background: #fff;
    outline: none;
}

.text-area {
    resize: vertical;
    min-height: 130px;
}

    .text-input:focus,
    .text-area:focus,
    .input-file:focus {
        border-color: #d8a5bd;
        box-shadow: 0 0 0 4px rgba(234, 191, 210, 0.2);
    }

.primary-btn,
.secondary-btn,
.danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #ffcadf, #ffe3a8);
    color: #6d3453;
}

.secondary-btn {
    background: #fff;
    color: #7b6173;
    border: 1px solid #e7d7df;
}

.danger-btn {
    background: #fff0f2;
    color: #a24960;
    border: 1px solid #efc9d3;
}

    .primary-btn:hover,
    .secondary-btn:hover,
    .danger-btn:hover {
        transform: translateY(-1px);
    }

.small-btn {
    padding: 10px 14px;
    font-size: 13px;
}

.w-100 {
    width: 100%;
}

.validation-summary {
    color: #a13f52;
    margin-bottom: 14px;
}

.field-validation {
    display: block;
    color: #b14f65;
    margin-top: 6px;
    font-size: 13px;
}

.empty-box {
    padding: 16px;
    border-radius: 16px;
    background: #fff8fb;
    color: #886f7f;
    border: 1px dashed #e8cbd8;
}

.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
}

.admin-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-grid {
    display: grid;
    gap: 16px;
}

.admin-card {
    min-height: 220px;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-list-item,
.admin-memory-item {
    border: 1px solid #efdde5;
    border-radius: 18px;
    padding: 14px;
    background: #fffdfd;
}

.admin-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-item-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: #5f4152;
    word-break: break-word;
}

.admin-item-meta {
    font-size: 13px;
    color: #8b7683;
    margin-bottom: 4px;
    word-break: break-word;
}

.admin-memory-text {
    margin: 10px 0 0 0;
    color: #6a5561;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* COUNTDOWN */
.countdown-hero {
    text-align: center;
}

.countdown-inline-wrap {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.countdown-item {
    min-width: 72px;
    padding: 14px 10px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f9d7df 0%, #f8e7c7 100%);
    border: 1px solid #efd7df;
    box-shadow: 0 8px 18px rgba(145, 90, 115, 0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.countdown-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #4d3550;
}

.countdown-label {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #7b6378;
}

.countdown-separator {
    font-size: 22px;
    font-weight: 800;
    color: #b28799;
    margin: 0 2px;
    transform: translateY(-6px);
}

.countdown-finished {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f9d7df 0%, #f8e7c7 100%);
    border: 1px solid #efd7df;
    color: #4d3550;
    font-size: 20px;
    font-weight: 700;
    display: inline-block;
}

/* FAQ FLOW */
.faq-flow-card {
    overflow: hidden;
}

.faq-step-info {
    text-align: center;
    font-size: 14px;
    color: #8b6f7d;
    margin-bottom: 18px;
    font-weight: 600;
}

.faq-screen {
    display: none;
    min-height: 240px;
    animation: fadeIn .35s ease;
}

    .faq-screen.active {
        display: block;
    }

.faq-flow-question {
    text-align: center;
    font-size: 28px;
    line-height: 1.4;
    color: #4b3552;
    margin-bottom: 24px;
}

.faq-flow-answers {
    display: grid;
    gap: 12px;
}

.faq-answer-btn {
    border: 0;
    border-radius: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f9d7df, #f8e7c7);
    color: #4b3552;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(145, 90, 115, 0.08);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    cursor: pointer;
}

    .faq-answer-btn:hover {
        transform: translateY(-2px);
    }

    .faq-answer-btn.correct {
        background: linear-gradient(135deg, #dff6e6, #c7efd4);
        color: #1f6b3a;
        outline: 2px solid #7ec79a;
        box-shadow: 0 0 0 4px rgba(126, 199, 154, 0.18);
    }

    .faq-answer-btn.wrong {
        background: linear-gradient(135deg, #fde7e7, #f8d2d2);
        color: #9b2f45;
        outline: 2px solid #e29aa7;
        box-shadow: 0 0 0 4px rgba(226, 154, 167, 0.18);
    }

    .faq-answer-btn.correct::after {
        content: " ✓ Doğru!";
        font-weight: 700;
    }

    .faq-answer-btn.wrong::after {
        content: " ✕ Yanlış!";
        font-weight: 700;
    }

    .faq-answer-btn.shake {
        animation: shakeX .35s ease;
    }

@keyframes shakeX {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }

    100% {
        transform: translateX(0);
    }
}

.faq-answer-btn.pop {
    animation: popIn .28s ease;
}

@keyframes popIn {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

    .faq-answer-btn:disabled {
        cursor: default;
        opacity: 1;
    }

.faq-image-screen {
    min-height: 260px;
    display: none;
    align-items: center;
    justify-content: center;
}

    .faq-image-screen.active {
        display: flex;
    }

.faq-image-frame {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-answer-image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: auto;
    max-height: 280px;
    object-fit: contain;
    border-radius: 22px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .10);
}

.faq-love-line {
    margin-top: 30px;
}

.love-track-wrap {
    width: 100%;
    padding-top: 8px;
}

.love-track {
    position: relative;
    width: 100%;
    height: 72px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f7dce4, #f8e7c7);
    overflow: hidden;
}

.love-progress-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 10px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #efb6c8, #f2d59b);
    transition: width .5s ease;
    z-index: 1;
}

.love-progress-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 10px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #f2d59b, #efb6c8);
    transition: width .5s ease;
    z-index: 1;
}

.love-character {
    position: absolute;
    top: 50%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transition: left .55s ease, right .55s ease, transform .55s ease, scale .55s ease;
    z-index: 3;
    overflow: hidden;
    border: 4px solid #fff;
}

    .love-character img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .love-character.bride {
        left: 0%;
        transform: translate(-6%, -50%);
        box-shadow: 0 0 0 6px #ffe3ef, 0 10px 24px rgba(0,0,0,0.16);
    }

    .love-character.groom {
        right: 0%;
        transform: translate(6%, -50%);
        box-shadow: 0 0 0 6px #fff2cc, 0 10px 24px rgba(0,0,0,0.16);
    }

    .love-character.bride.together {
        transform: translate(-92%, -50%) scale(1.08);
    }

    .love-character.groom.together {
        transform: translate(92%, -50%) scale(1.08);
    }

.love-center-heart {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.7);
    opacity: 0;
    font-size: 22px;
    transition: all .45s ease;
    z-index: 4;
    pointer-events: none;
}

    .love-center-heart.show {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

.faq-final-message {
    margin-top: 16px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #a25b78;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .mobile-page,
    .admin-page {
        padding: 24px;
    }

    .hero-title {
        font-size: 36px;
    }

    .admin-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .countdown-inline-wrap {
        gap: 6px;
    }

    .countdown-item {
        min-width: 62px;
        padding: 12px 8px;
        border-radius: 16px;
    }

    .countdown-value {
        font-size: 22px;
    }

    .countdown-label {
        font-size: 11px;
    }

    .countdown-separator {
        font-size: 18px;
        margin: 0;
    }

    .faq-flow-question {
        font-size: 22px;
    }

    .faq-image-screen {
        min-height: 220px;
    }

    .faq-answer-image {
        max-height: 220px;
    }

    .faq-love-line {
        margin-top: 36px;
    }

    .love-track {
        height: 78px;
    }

    .love-progress-left,
    .love-progress-right {
        height: 12px;
    }

    .love-character {
        width: 60px;
        height: 60px;
        border-width: 4px;
    }

        .love-character.bride {
            transform: translate(-4%, -50%);
            box-shadow: 0 0 0 6px #ffe3ef, 0 10px 22px rgba(0,0,0,0.16);
        }

        .love-character.groom {
            transform: translate(4%, -50%);
            box-shadow: 0 0 0 6px #fff2cc, 0 10px 22px rgba(0,0,0,0.16);
        }

        .love-character.bride.together {
            transform: translate(-82%, -50%) scale(1.05);
        }

        .love-character.groom.together {
            transform: translate(82%, -50%) scale(1.05);
        }

    .love-center-heart {
        font-size: 24px;
    }
}

.custom-error {
    display: block;
    color: #b14f65;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
}