/* win_over_difficulties.css - Victory and Growth Theme */

.win-page {
  --win-primary: #ea580c;
  --win-secondary: #f59e0b;
  --win-accent: #e11d48;
  --win-light: #fff7ed;
  --win-border: #fed7aa;
  --gold-glow: rgba(245, 158, 11, 0.4);
}

/* Hero Section */
.win-hero-card {
  background: linear-gradient(135deg, var(--win-light) 0%, #fffbf0 100%);
  border: 2px solid var(--win-border);
  color: #78350f;
  padding: 3.5rem 2rem;
  border-radius: 24px;
  text-align: center;
  margin: 3rem 0;
  box-shadow: 0 15px 45px -10px rgba(254, 215, 170, 0.4);
  position: relative;
  overflow: hidden;
}

.win-hero-quote {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 2.3;
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px dashed #fdba74;
  color: #57534e;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

.win-hero-author {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
  text-align: right;
  color: #78350f;
  font-weight: 600;
}

/* Floating Trophy Icon in Hero */
.trophy-bg-icon {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 12rem;
  color: rgba(245, 158, 11, 0.07);
  transform: rotate(15deg);
  pointer-events: none;
}

/* Section Header */
.win-section-title {
  color: var(--win-primary);
  border-bottom: 2px dashed var(--win-border);
  padding-bottom: 0.8rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.win-section-title i {
  color: var(--win-secondary);
}

/* Highlight Boxes */
.highlight-message {
  padding: 2.5rem;
  margin: 3rem 0;
  font-weight: bold;
  font-size: 1.15rem;
  border-radius: 20px;
  line-height: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.highlight-message.red-theme {
  background-color: #fff1f2;
  border-left: 8px solid #fda4af;
  color: #9f1239;
}

.highlight-message.gold-theme {
  background: #fffbf0;
  border: 2px solid #fde68a;
  color: #92400e;
  text-align: center;
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.1);
}

.marker-gold {
  background: linear-gradient(transparent 60%, #fef08a 60%);
  font-weight: 800;
  padding: 0 4px;
}

.bold-red {
  color: #e11d48;
  font-weight: 800;
  border-bottom: 2px solid #fecdd3;
}

/* Stepping Stones Visualization */
.visual-break-stones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  margin: 4.5rem 0;
  flex-wrap: wrap;
  padding: 1rem;
}

.stone-step {
  width: 95px;
  height: 95px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #64748b;
  font-weight: 800;
  font-size: 1rem;
  position: relative;
  box-shadow: 0 6px 0 #cbd5e1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stone-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 11px 0 #cbd5e1;
}

.step-1 { transform: translateY(0); }
.step-2 { transform: translateY(-15px); }
.step-3 { transform: translateY(-30px); }

.stone-step.gold {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
  box-shadow: 0 6px 0 #d97706;
  font-size: 1.1rem;
  z-index: 5;
  transform: translateY(-45px) scale(1.1);
}

.stone-step.gold:hover {
  transform: translateY(-50px) scale(1.15);
  box-shadow: 0 11px 0 #d97706;
}

/* Interactive Trophy Section */
.trophy-container {
    perspective: 1000px;
    margin: 3rem 0;
    text-align: center;
}

.trophy-icon {
    font-size: 5rem;
    color: #f59e0b;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
    transition: transform 0.1s ease-out;
    cursor: pointer;
    display: inline-block;
}

.trophy-icon.shining {
    animation: trophy-shine 1s ease-in-out;
}

@keyframes trophy-shine {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(245, 158, 11, 0)); }
    50% { transform: scale(1.2) rotate(10deg); filter: drop-shadow(0 0 30px #f59e0b); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(245, 158, 11, 0)); }
}

/* Finale Section */
.win-finale-section {
  margin: 5rem 0;
  text-align: center;
}

.finale-quote-card {
  background: white;
  padding: 3.5rem 2.5rem;
  border-radius: 24px;
  margin-bottom: 2.5rem;
  border: 2px solid var(--win-border);
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.finale-quote-card.gold-border {
  border-color: #fcd34d;
  background: #fffcf0;
}

.finale-quote-card .quote-text {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  line-height: 2.2;
  color: #57534e;
  font-size: 1.1rem;
}

.finale-quote-card .quote-author {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #a8a29e;
  font-weight: 700;
  text-align: right;
}

/* Celebrate Button */
.celebrate-btn {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  color: white;
  border: none;
  padding: 1.3rem 4rem;
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 60px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.35);
  transition: all 0.3s ease;
  margin-top: 2rem;
  animation: breathing-btn 4s ease-in-out infinite;
}

@keyframes breathing-btn {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(225, 29, 72, 0.35); }
  50% { transform: scale(1.05); box-shadow: 0 15px 35px rgba(225, 29, 72, 0.45); }
}

.celebrate-btn:hover {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  transform: translateY(-3px) scale(1.05);
}

.celebrate-btn:active {
  transform: scale(0.98);
}

/* Confetti Canvas */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
}

/* Sidebar Specifics */
.win-page .sidebar-nav-list li.active-link a {
    color: var(--win-primary);
    background-color: var(--win-light);
    border-left: 3px solid var(--win-primary);
}

.win-page .sidebar-advice {
    border: 2px solid var(--win-border);
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
}

.win-page .sidebar-advice .header {
    color: var(--win-primary);
    border-bottom: 2px solid var(--win-border);
}
