/* ===== ریست و فونت ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    direction: rtl;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

body.sad-mode {
    background-color: #f0f0f0;
}

body.happy-mode {
    background-color: #FFF8F2;
}

/* ===== کانتینر اصلی ===== */
.container {
    max-width: 480px;
    width: 100%;
    position: relative;
}

/* ===== گل‌های هدر ===== */
.header-flowers {
    text-align: center;
    font-size: 24px;
    letter-spacing: 12px;
    margin-bottom: 10px;
    opacity: 0.7;
    animation: floatFlowers 3s ease-in-out infinite alternate;
}

@keyframes floatFlowers {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

/* ===== کارت اصلی ===== */
.card {
    background: #ffffff;
    border-radius: 40px 40px 30px 30px;
    padding: 30px 25px 40px;
    box-shadow: 0 20px 60px rgba(255, 140, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 140, 0, 0.08);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.card.sad {
    border-color: #c0c0c0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.card.happy {
    border-color: #FF9A5C;
    box-shadow: 0 20px 60px rgba(255, 140, 0, 0.25);
}

/* ===== خرگوش ===== */
.bunny-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.bunny {
    width: 100px;
    height: 100px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.bunny.happy {
    animation: bunnyJump 0.6s ease 2;
}

@keyframes bunnyJump {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    30% { transform: translateY(-25px) scale(1.08) rotate(-5deg); }
    60% { transform: translateY(-10px) scale(0.95) rotate(5deg); }
    100% { transform: translateY(0) scale(1) rotate(0deg); }
}

.bunny.sad #earRight,
.bunny.sad #earLeft {
    transform: rotate(20deg) scaleY(0.6);
    transform-origin: top center;
    transition: transform 0.6s ease;
}

.bunny.sad #tear,
.bunny.sad #tear2 {
    opacity: 1 !important;
    animation: tearDrop 1.2s ease-in-out infinite alternate;
}

.bunny.sad #tear2 {
    animation-delay: 0.4s;
}

@keyframes tearDrop {
    0% { transform: translateY(0) scaleY(1); opacity: 0.9; }
    100% { transform: translateY(15px) scaleY(0.3); opacity: 0; }
}

.bunny.sad #mouth {
    transform: rotate(5deg) scaleX(0.7);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.bunny.blink #eyeLeft,
.bunny.blink #eyeRight {
    transform: scaleY(0.1);
    transition: transform 0.1s ease;
}

/* ===== افکت باران ===== */
.rain-drop {
    position: fixed;
    background: linear-gradient(to bottom, #8ECAE6, #B4D7E8);
    border-radius: 0 0 50% 50%;
    opacity: 0.6;
    animation: rainFall linear infinite;
    pointer-events: none;
}

@keyframes rainFall {
    0% { transform: translateY(-20px) rotate(10deg); opacity: 0.6; }
    100% { transform: translateY(100vh) rotate(10deg); opacity: 0; }
}

@keyframes cloudFloat {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-15px); }
}

/* ===== افکت گلبرگ‌های شادی ===== */
@keyframes petalFall {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.8; }
    100% { transform: translateY(100vh) rotate(720deg) scale(0.3); opacity: 0; }
}

/* ===== محتوای متنی ===== */
#content {
    text-align: center;
}

h1 {
    font-size: 26px;
    font-weight: 700;
    color: #2D1B0E;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    color: #E87A2D;
    margin-bottom: 6px;
}

p {
    font-size: 15px;
    line-height: 1.9;
    color: #3D2B1F;
    margin-bottom: 10px;
}

.greeting {
    font-weight: 500;
    color: #E87A2D;
    font-size: 17px;
}

.confession {
    font-size: 15px;
    color: #5A4A3A;
    background: #FFF8F2;
    padding: 12px 16px;
    border-radius: 20px;
    margin: 12px 0;
    border-right: 3px solid #FFB08C;
}

.apology {
    color: #6A5A4A;
    font-size: 14.5px;
}

.offer {
    font-size: 16px;
    font-weight: 500;
    color: #2D1B0E;
    margin: 18px 0 12px;
}

.thank-you {
    font-size: 17px;
    color: #E87A2D;
    font-weight: 500;
}

.question {
    font-size: 17px;
    font-weight: 500;
    color: #2D1B0E;
    margin: 14px 0 16px;
}

.detail {
    font-size: 20px;
    font-weight: 600;
    color: #E87A2D;
    background: #FFF8F2;
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-block;
    margin: 4px auto;
}

.detail span {
    margin-left: 10px;
}

.final-heart {
    font-size: 18px;
    color: #E87A2D;
    font-weight: 500;
    margin-top: 16px;
}

.flower-gift {
    margin-top: 24px;
    font-size: 15px;
    color: #6A5A4A;
    background: #FFF8F2;
    padding: 14px 12px;
    border-radius: 30px;
    border: 1px dashed #FFB08C;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.flower-gift span:first-child,
.flower-gift span:last-child {
    font-size: 22px;
}

/* ===== دکمه‌ها ===== */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.btn {
    font-family: 'Vazirmatn', sans-serif;
    padding: 14px 20px;
    border: none;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    letter-spacing: 0.3px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-yes {
    background: linear-gradient(145deg, #FF9A5C, #E87A2D);
    color: #fff;
    font-size: 18px;
    padding: 18px 20px;
    box-shadow: 0 8px 28px rgba(232, 122, 45, 0.35);
}

.btn-yes:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 36px rgba(232, 122, 45, 0.45);
}

.btn-yes:active {
    transform: scale(0.97);
}

.btn-no {
    background: #F5F0EC;
    color: #6A5A4A;
    font-size: 15px;
    padding: 14px 20px;
    border: 1px solid #E8E0DA;
}

.btn-no:hover {
    background: #EDE5DE;
    transform: translateY(-2px);
}

.btn-no:active {
    transform: scale(0.98);
}

/* دکمه‌های روز و ساعت */
.day-options,
.time-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.btn-day,
.btn-time {
    font-family: 'Vazirmatn', sans-serif;
    padding: 14px 8px;
    border: 2px solid #FFD1B5;
    border-radius: 30px;
    background: #FFFCFA;
    color: #3D2B1F;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.btn-day:hover,
.btn-time:hover {
    border-color: #E87A2D;
    background: #FFF8F2;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(232, 122, 45, 0.15);
}

.btn-day:active,
.btn-time:active {
    transform: scale(0.96);
}

/* ===== قلب‌های شناور ===== */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.heart-float {
    position: absolute;
    font-size: 18px;
    opacity: 0.5;
    animation: heartRise 6s linear infinite;
}

@keyframes heartRise {
    0% { transform: translateY(100vh) rotate(0deg) scale(0.5); opacity: 0.6; }
    100% { transform: translateY(-10vh) rotate(720deg) scale(1.2); opacity: 0; }
}

/* ===== ریسپانسیو ===== */
@media (max-width: 420px) {
    .card {
        padding: 20px 16px 30px;
        border-radius: 30px;
    }
    h1 { font-size: 22px; }
    h2 { font-size: 20px; }
    p { font-size: 14px; }
    .btn-yes { font-size: 16px; padding: 16px; }
    .btn-day, .btn-time { font-size: 13px; padding: 12px 6px; }
    .bunny { width: 80px; height: 80px; }
    .day-options,
    .time-options {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .detail { font-size: 17px; padding: 6px 14px; }
}

@media (max-width: 360px) {
    .day-options,
    .time-options {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .btn-day, .btn-time { font-size: 12px; padding: 10px 4px; }
    .card { padding: 16px 12px 24px; }
}

/* ===== انیمیشن‌های کمکی ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 1000;
    animation: confettiFall 1.8s ease-out forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(120vh) rotate(540deg) scale(0.2); opacity: 0; }
}

/* ===== افکت‌های اضافی برای احساسات ===== */
#sadOverlay {
    transition: opacity 0.5s ease;
}

#happyOverlay {
    transition: opacity 0.5s ease;
}

.rain-drop {
    position: fixed;
    background: linear-gradient(to bottom, #8ECAE6, #B4D7E8);
    border-radius: 0 0 50% 50%;
    opacity: 0.6;
    animation: rainFall linear infinite;
    pointer-events: none;
}

@keyframes rainFall {
    0% { transform: translateY(-20px) rotate(10deg); opacity: 0.6; }
    100% { transform: translateY(100vh) rotate(10deg); opacity: 0; }
}

@keyframes cloudFloat {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-15px); }
}

@keyframes petalFall {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.8; }
    100% { transform: translateY(100vh) rotate(720deg) scale(0.3); opacity: 0; }
}

/* ===== افکت تغییر صفحه ===== */
.page-transition {
    animation: pageFade 0.6s ease;
}

@keyframes pageFade {
    0% { opacity: 0.3; transform: scale(0.98); }
    50% { opacity: 0.5; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

/* ===== دکمه‌ها با سایز متغیر ===== */
.btn-yes {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-no {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* سایزهای مختلف برای دکمه‌ها */
.btn-yes.size-1 { transform: scale(1); }
.btn-yes.size-2 { transform: scale(1.05); }
.btn-yes.size-3 { transform: scale(1.12); }
.btn-yes.size-4 { transform: scale(1.2); }
.btn-yes.size-5 { transform: scale(1.3); }

.btn-no.size-1 { transform: scale(1); }
.btn-no.size-2 { transform: scale(0.92); }
.btn-no.size-3 { transform: scale(0.85); }
.btn-no.size-4 { transform: scale(0.78); }
.btn-no.size-5 { transform: scale(0.7); }