/* Page Specific CSS for Failure is Success - Premium Version */

:root {
    --failure-accent: #f59e0b;
    --failure-secondary: #0ea5e9;
    --failure-dark: #1e293b;
    --failure-bg-soft: #f8fafc;
}

body.white-bg {
    background: #ffffff;
    overflow-x: hidden;
}

/* Background Atmosphere */
.page-wrapper::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
    animation: float-bg 20s infinite alternate ease-in-out;
}

.page-wrapper::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
    animation: float-bg 25s infinite alternate-reverse ease-in-out;
}

@keyframes float-bg {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(10deg); }
}

.clean-heading {
    font-size: 1.7rem;
    color: var(--failure-dark);
    position: relative;
    padding-left: 1.5rem;
    border-bottom: none;
    margin-top: 4rem;
}

.clean-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 6px;
    background: linear-gradient(to bottom, var(--failure-accent), var(--failure-secondary));
    border-radius: 10px;
}

/* Story Box for Stallone (Timeline) - Enhanced Glassmorphism */
.story-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.story-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #f59e0b, #fbbf24);
}

.timeline-container {
    position: relative;
    padding-left: 1.5rem;
    margin-top: 2rem;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #f59e0b, #e2e8f0 100%);
    border-radius: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    border: 3px solid #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
    z-index: 2;
}

.timeline-item.highlight .timeline-dot {
    background: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    width: 20px;
    height: 20px;
    left: -27px;
    top: 5px;
}

.timeline-item.highlight .timeline-dot.star {
    background: #f59e0b;
}

.timeline-content {
    font-size: 0.95rem;
    color: #475569;
}

/* Success List */
.success-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.success-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Clean Quote & Heart Button - Premium Refinement */
.clean-quote {
    position: relative;
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.7) 0%, rgba(224, 242, 254, 0.7) 100%);
    backdrop-filter: blur(5px);
    padding: 3rem 3rem 2rem 4rem;
    border-left: none;
    border-radius: 24px;
    margin: 3.5rem 0;
    font-style: italic;
    font-weight: 600;
    color: #334155;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.05);
}

.clean-quote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2rem;
    bottom: 2rem;
    width: 5px;
    background: linear-gradient(to bottom, #0ea5e9, #38bdf8);
    border-radius: 0 10px 10px 0;
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: #0ea5e9;
    opacity: 0.25;
    font-size: 2rem;
}

.heart-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(244, 63, 94, 0.1);
    cursor: pointer;
    font-size: 1.2rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.heart-btn:hover {
    transform: scale(1.1) rotate(5deg);
    color: #f43f5e;
    background: #fff;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.2);
}

.heart-btn.active {
    color: #f43f5e;
    background: #fff;
    border-color: #f43f5e;
    animation: pulseHeart 0.5s forwards;
}

.heart-btn.active i {
    font-weight: 900;
    /* Solid Style */
}

@keyframes pulseHeart {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1);
    }
}

.quote-author {
    margin-top: 1rem;
    text-align: right;
    font-size: 0.9rem;
    font-weight: normal;
    font-style: normal;
    color: #64748b;
}

.clean-quote.final {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #64748b;
}

/* Treasure Highlight - Premium Upgrade */
.treasure-box {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #b45309;
    margin: 4rem 0;
    padding: 3rem 2rem;
    border: 2px dashed rgba(245, 158, 11, 0.4);
    border-radius: 30px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    cursor: pointer;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.1);
}

.treasure-box:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.2);
    border-style: solid;
}

.treasure-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.treasure-box.opened .treasure-icon {
    transform: scale(1.2) rotate(-10deg);
    color: #f59e0b;
}

.treasure-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Floating Animation for Icons */
.fa-star, .fa-music, .fa-trophy, .fa-film {
    animation: icon-float 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.particle-word {
    position: absolute;
    font-size: 1rem;
    font-weight: 900;
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    opacity: 0;
    pointer-events: none;
    animation: premium-float-up 2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes premium-float-up {
    0% {
        transform: translate(-50%, 20px) scale(0.5) rotate(-10deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -100px) scale(1.5) rotate(10deg);
        opacity: 0;
    }
}

/* Button Upgrades */
.nav-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    color: #475569;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--failure-accent);
    color: var(--failure-accent);
}

.nav-btn.next {
    background: linear-gradient(135deg, var(--failure-accent), #fbbf24);
    color: #fff;
    border: none;
}

.nav-btn.next:hover {
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    color: #fff;
}

/* Golden Aura for Success List */
.success-item {
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.success-item.aura-active {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    transform: scale(1.02);
}

.success-item.aura-active .icon-circle {
    background: #f59e0b;
    color: #fff;
    animation: pulseIcon 1s infinite;
}

@keyframes pulseIcon {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* Confetti Container */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    opacity: 0;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.section-title h1 {
    color: var(--failure-dark);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title .line {
    width: 60px;
    height: 6px;
    background: linear-gradient(to right, #0ea5e9, #f59e0b);
    margin: 1.5rem 0 3rem 0;
    border-radius: 10px;
}

/* Main Content Adjustments */
.main-content {
    background: transparent;
    box-shadow: none;
}

.story-box h4 {
    color: #b45309;
    margin-bottom: 1.5rem;
}

.stallone-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: #1e293b;
}

.stallone-desc {
    font-size: 0.95rem;
    color: #64748b;
}

.story-footer {
    margin-top: 1.5rem;
}

/* Sidebar Specifics */
.sidebar .sidebar-widget.glass-panel {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid #e2e8f0;
}

.one-point-advice {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 1.5rem;
}

.one-point-advice .advice-header {
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    font-weight: 800;
}

.one-point-advice .advice-content {
    color: #334155;
    line-height: 1.6;
}

/* Site Footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
}

.sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
    height: fit-content;
}
