/* Page Specific CSS for Cause and Effect */

:root {
    --effect-gold: #f59e0b;
    --effect-gold-dark: #b45309;
    --effect-gold-light: #fef3c7;
    --effect-red: #e11d48;
}

/* Golden Ripple Background */
.ripple-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #ffffff;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(252, 211, 77, 0.1);
    animation: ripple 15s infinite;
    box-shadow: 0 0 1px 0 rgba(251, 191, 36, 0.05);
}

.xxlarge { width: 1500px; height: 1500px; left: -750px; bottom: -750px; }
.xlarge { width: 1100px; height: 1100px; left: -550px; bottom: -550px; }
.large { width: 800px; height: 800px; left: -400px; bottom: -400px; }
.medium { width: 600px; height: 600px; left: -300px; bottom: -300px; }
.small { width: 400px; height: 400px; left: -200px; bottom: -200px; }

.shade1 { animation-delay: 0s; }
.shade2 { animation-delay: 3s; }
.shade3 { animation-delay: 6s; }
.shade4 { animation-delay: 9s; }
.shade5 { animation-delay: 12s; }

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Happy Mode Enhanced Ripples */
body.happy-mode .circle {
    background: rgba(252, 211, 77, 0.25);
    animation-duration: 8s; /* Faster ripples when happy */
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

/* Golden Dust Particles */
.golden-dust-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.dust-particle {
    position: absolute;
    background: radial-gradient(circle, #fbbf24 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
    animation: dust-rise linear forwards;
}

@keyframes dust-rise {
    0% { transform: translateY(105vh) scale(0); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* Hero Header */
.hero-header {
    text-align: center;
    padding: 6rem 1rem 4rem;
}

.category-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    color: var(--effect-gold-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(245, 158, 11, 0.2);
}

.hero-header h1 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, var(--effect-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-line {
    width: 80px;
    height: 6px;
    background: linear-gradient(to right, var(--effect-gold), #fbbf24);
    margin: 2rem auto;
    border-radius: 10px;
}

.hero-subtext {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Typography & Visuals */
.intro-text {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
    color: #334155;
}

.gradient-text {
    background: linear-gradient(135deg, var(--effect-gold-dark), var(--effect-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-sub {
    background: linear-gradient(135deg, var(--effect-gold), #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.highlight-text {
    background: linear-gradient(120deg, rgba(254, 240, 138, 0) 0%, rgba(254, 240, 138, 1) 100%);
    padding: 0 0.2rem;
}

/* Glass Panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.5s ease;
    position: relative;
    margin: 3rem 0;
}

.method-section.glass-panel {
    margin: 3.5rem 0;
}

.method-section h4 {
    color: var(--effect-gold-dark);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
}

.method-section h4 i {
    color: var(--effect-gold);
}

/* Edison Spark Effect Indicator */
#edison-section.spark-active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: spark-flash 1s ease-out forwards;
    z-index: -1;
    pointer-events: none;
}

@keyframes spark-flash {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

.glass-gold {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(254, 243, 199, 0.8));
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.glass-gold i {
    font-size: 2.5rem; 
    color: var(--effect-gold); 
    margin-bottom: 1.5rem; 
    display:block;
}

.glass-gold p:first-of-type {
    font-size: 1.4rem; 
    color: var(--effect-gold-dark); 
    font-weight: 900; 
    margin-bottom: 1rem;
}

.glass-gold p:last-of-type {
    font-size: 1rem; 
    color: #92400e;
}

/* Sidebar Advice Refine */
.sidebar {
  position: sticky !important;
  top: calc(var(--nav-height) + 2rem);
  height: fit-content;
  align-self: start;
}

.sidebar-widget.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #fde68a;
    padding: 0.6rem;
    border-radius: 20px;
}

.one-point-advice {
    border: 1px solid #fcd34d;
    border-radius: 14px;
    padding: 1.2rem 1rem;
    background: #fffbeb;
    text-align: center;
}

.advice-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--effect-gold-dark);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed #fcd34d;
}

.advice-header i {
    color: var(--effect-gold);
}

.advice-content {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #92400e;
}

.advice-content span {
    color: var(--effect-gold-dark);
    font-weight: 800;
    background: linear-gradient(transparent 70%, #fde68a 70%);
}

/* Smile Switch Section */
.smile-switch-section {
    text-align: center; 
    margin: 3rem 0; 
    padding: 3rem;
}

.smile-switch-section h4 {
    margin-bottom: 1.5rem; 
    color: var(--effect-gold-dark); 
    font-weight: 800; 
    font-size: 1.2rem;
}

.smile-switch-section p {
    margin-bottom: 2rem; 
    font-size: 1rem; 
    color: #64748b;
}

#smileMessage {
    margin-top: 2rem; 
    min-height: 1.5em; 
    font-weight: 800; 
    color: var(--effect-red); 
    transition: all 0.5s; 
    opacity: 0; 
    transform: translateY(10px);
}

.smile-loop {
    background: rgba(254, 252, 232, 0.6); 
    border-color: #fef08a; 
    margin: 3rem 0; 
    text-align: center;
}

.smile-loop p:first-of-type {
    font-weight: 800; 
    color: var(--effect-gold-dark); 
    font-size: 1.2rem; 
    line-height: 1.6;
}

.smile-loop i {
    padding: 1rem 0; 
    color: #fbbf24; 
    font-size: 1.5rem;
}

.smile-loop p:last-of-type {
    margin-top: 1.5rem; 
    color: #92400e;
}

/* Smile Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--effect-gold);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Happy Mode */
body {
    transition: background 0.8s ease;
}

body.happy-mode {
    background: linear-gradient(120deg, #fffbeb 0%, #fef3c7 100%);
}

body.happy-mode .glass-panel {
    background: rgba(255, 255, 255, 0.85);
}

/* Confetti */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    animation: fall linear forwards;
}

@keyframes fall {
    to { transform: translateY(100vh) rotate(720deg); }
}

.float-icon {
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.btn-simple-container {
    margin-top: 3rem; 
    text-align: center
}

.btn-simple {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-simple:hover {
    border-color: var(--effect-gold);
    color: var(--effect-gold-dark);
    background: var(--effect-gold-light);
    transform: translateY(-2px);
}
