/* Page Specific CSS for Thank You - Premium Version */

:root {
    --thanks-pink: #f472b6;
    --thanks-pink-dark: #db2777;
    --thanks-bg-light: #fff5f7;
    --thanks-glow: rgba(244, 114, 182, 0.4);
}

/* Background Decoration & Falling Sakura */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #fffaff 0%, #fff 100%);
}

.sakura-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Premium Hero Header */
.hero-header {
    text-align: center;
    padding: 6rem 1rem 4rem;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.category-badge {
    display: inline-block;
    background: rgba(244, 114, 182, 0.1);
    color: var(--thanks-pink-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(244, 114, 182, 0.2);
}

.hero-header h1 {
    font-size: clamp(2.2rem, 8vw, 3.8rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #db2777 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero-line {
    width: 80px;
    height: 6px;
    background: linear-gradient(to right, var(--thanks-pink), #ec4899);
    margin: 2rem auto;
    border-radius: 10px;
    position: relative;
}

.hero-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.3), transparent 70%);
    filter: blur(5px);
    z-index: -1;
}

.hero-subtext {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-title h1 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.section-title .line {
    width: 80px;
    height: 5px;
    background: #f472b6 !important;
    border-radius: 10px;
    margin-left: 0;
}

/* Quote Box Pink Theme */
.quote-box {
    background: #fff5f7;
    border-left: 5px solid #f472b6;
    padding: 2.5rem;
    margin: 3rem 0;
    border-radius: 0 12px 12px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #db2777;
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.1);
    position: relative;
    overflow: hidden;
}

/* Gradient Text Pink Theme */
.gradient-text-sub {
    background: linear-gradient(135deg, #f472b6, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.4;
    margin-top: 3rem;
}

/* Thank You Grid & Cards */
/* Interactive Resonance Cards */
.thank-you-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 4rem 0;
}

.thank-you-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #fce7f3;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.thank-you-card:hover {
    transform: translateY(-10px);
    border-color: var(--thanks-pink);
    box-shadow: 0 20px 40px rgba(244, 114, 182, 0.15);
}

.ripple-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.card-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(244, 114, 182, 0.1);
    transform: scale(0);
    animation: card-ripple-anim 0.8s ease-out;
}

@keyframes card-ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

.thank-you-card i {
    font-size: 2.8rem;
    color: var(--thanks-pink);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.thank-you-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--thanks-pink-dark);
}

.thank-you-card h4 {
    color: #334155;
    margin-bottom: 0.5rem;
}

/* Gratitude Counter Widget */
.gratitude-counter-section {
    background: #fff5f7;
    padding: 4rem 2rem;
    border-radius: 30px;
    margin: 4rem 0;
    text-align: center;
    border: 2px dashed #f9a8d4;
    position: relative;
    overflow: hidden;
}

.counter-display {
    font-size: 6rem;
    font-weight: 900;
    color: #ec4899;
    margin: 1rem 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    line-height: 1;
}

.counter-btn {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.25);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.counter-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.35);
}

.counter-btn:active {
    transform: scale(0.95);
}

/* Flower/Petals */
.flower-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 2rem auto;
}

.flower-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: #fde68a;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 20px rgba(253, 230, 138, 0.6);
}

.petal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35px;
    height: 70px;
    background: #fce7f3;
    border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%;
    transform-origin: bottom center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.2;
}

.petal.active {
    background: #f472b6;
    opacity: 1;
    transform: translate(-50%, -100%) scale(1.1);
}

/* Self Gratitude Section */
.self-thanks-section {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    margin: 4rem 0;
    border: 2px solid #fecdd3;
    text-align: center;
    box-shadow: 0 10px 40px rgba(244, 114, 182, 0.08);
}

/* Magical Mirror Refine */
.mirror-box {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #fef2f2 100%);
    border: 12px solid #fecdd3;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(244, 114, 182, 0.2);
    box-shadow: 
        inset 0 0 30px rgba(255, 255, 255, 1),
        0 15px 45px rgba(244, 114, 182, 0.15);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.mirror-box.is-active {
    border-color: var(--thanks-pink);
    color: var(--thanks-pink);
    transform: scale(1.1) rotate(0deg);
    box-shadow: 
        0 0 30px var(--thanks-glow),
        0 20px 60px rgba(244, 114, 182, 0.2);
}

.mirror-aura {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.mirror-box.is-active .mirror-aura {
    opacity: 1;
    animation: aura-pulse 2s infinite alternate;
}

@keyframes aura-pulse {
    from { transform: scale(0.9); opacity: 0.4; }
    to { transform: scale(1.1); opacity: 0.7; }
}

.water-ripple {
    position: absolute;
    border: 2px solid rgba(244, 114, 182, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: water-ripple-anim 1s ease-out forwards;
}

@keyframes water-ripple-anim {
    0% { width: 0; height: 0; opacity: 1; transform: translate(-50%, -50%); }
    100% { width: 250%; height: 250%; opacity: 0; transform: translate(-50%, -50%); }
}

@keyframes mirror-shine {
    0% { left: -150%; }
    100% { left: 150%; }
}

.self-thanks-message {
    font-size: 1.4rem;
    font-weight: 800;
    color: #db2777;
    margin-top: 1.5rem;
    display: none;
    animation: mirror-fadeIn 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes mirror-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Highlight Card */
.highlight-card {
    background: #fff1f2;
    padding: 2.5rem;
    border-radius: 20px;
    margin: 3rem 0;
    font-weight: 700;
    text-align: center;
    border: 1px solid #fecdd3;
    color: #9d174d;
    line-height: 1.8;
}

/* Particles & Animations */
.thanks-particle {
    position: absolute;
    pointer-events: none;
    color: #ec4899;
    font-weight: 900;
    font-size: 1.3rem;
    animation: float-up 2s ease-out forwards;
    white-space: nowrap;
    z-index: 1000;
    filter: drop-shadow(0 2px 5px rgba(236, 72, 153, 0.2));
}

@keyframes float-up {
    0% { transform: translate(0, 0) scale(0.5); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(1.5); opacity: 0; }
}

.congrats-message {
    margin-top: 2rem;
    font-size: 1.6rem;
    font-weight: 900;
    color: #db2777;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
    line-height: 1.4;
}

.congrats-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.sakura-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    animation: sakura-fall linear forwards;
}

@keyframes sakura-fall {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(var(--end-x), 100vh) rotate(720deg); opacity: 0; }
}

/* Sidebar Sticky Enhancement */
.sidebar {
    position: sticky !important;
    top: calc(var(--nav-height) + 2rem);
    height: fit-content;
    align-self: start;
}

/* Sidebar Advice Premium Style */
.sidebar-widget.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #fecdd3;
    padding: 0.6rem; /* Space for the inner frame */
    border-radius: 20px;
}

.one-point-advice {
    border: 1px solid #fbcfe8; /* Inner frame */
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    background: #fffafa;
    text-align: left;
}

.advice-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #e11d48; /* Warm pink-red */
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1.5px dashed #fecdd3;
}

.advice-header i {
    color: #fbbf24; /* Amber lightbulb */
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.4));
    animation: bulb-glow 2s infinite alternate;
}

@keyframes bulb-glow {
    from { opacity: 0.7; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.1); }
}

.advice-content {
    font-size: 0.95rem;
    line-height: 2.2;
    color: #475569;
}

.advice-content span {
    color: #db2777;
    font-weight: 800;
    background: linear-gradient(transparent 70%, #fecdd3 70%);
}

.advice-content .highlight-text {
    display: block;
    margin-top: 0.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #db2777, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
