/**
 * Review Season Timer CSS - COMPLETE REDESIGN
 * Created: 2026-01-23
 * Feature: REVIEW-SEASON (Pill + Circle + Popup Pattern)
 *
 * REFACTORED: Phase 2 Icon Standardization (2026-02-01)
 * Base container/circle/FA properties moved to floating-icons-base.css
 * This file contains ONLY review-season-specific overrides and unique modal styles.
 *
 * @author Yuuji Itadori (Implementation Specialist)
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --season-open-primary: #00d084;
  --season-open-secondary: #28a745;
  --season-open-glow: rgba(0, 208, 132, 0.6);
  --season-closed-primary: #cc0000;
  --season-closed-secondary: #000000;
  --season-closed-glow: rgba(204, 0, 0, 0.6);
}

/* ============================================
   REVIEW SEASON TIMER CONTAINER
   Base container from floating-icons-base.css
   ============================================ */
.review-season-container {
  bottom: 295px;
  z-index: 9650;
}

/* ============================================
   CIRCULAR ICON (50x50px)
   Base circle + FA from floating-icons-base.css
   Base hover scale from floating-icons-base.css
   Base focus from floating-icons-base.css
   ============================================ */
.review-season-icon {
  background: none;
  padding: 0;
}

.review-season-icon i {
  color: #ffffff;
}

/* OPEN Season: Green Gradient */
.review-season-icon.season-open {
  background: linear-gradient(135deg, var(--season-open-primary) 0%, var(--season-open-secondary) 100%);
  box-shadow: 0 0 20px var(--season-open-glow), 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--season-open-primary);
  animation: seasonOpenGlow 3s ease-in-out infinite;
}

.review-season-icon.season-open:hover {
  box-shadow: 0 0 30px rgba(0, 208, 132, 0.9), 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--season-open-secondary) 0%, var(--season-open-primary) 100%);
}

@keyframes seasonOpenGlow {
  0%, 100% {
    box-shadow: 0 0 20px var(--season-open-glow), 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 35px rgba(0, 208, 132, 0.9), 0 6px 16px rgba(0, 0, 0, 0.3);
  }
}

/* CLOSED Season: Red & Black Gradient */
.review-season-icon.season-closed {
  background: linear-gradient(135deg, var(--season-closed-primary) 0%, var(--season-closed-secondary) 100%);
  box-shadow: 0 0 20px var(--season-closed-glow), 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--season-closed-primary);
  animation: seasonClosedGlow 3s ease-in-out infinite;
}

.review-season-icon.season-closed:hover {
  box-shadow: 0 0 30px rgba(204, 0, 0, 0.9), 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--season-closed-secondary) 0%, var(--season-closed-primary) 100%);
}

@keyframes seasonClosedGlow {
  0%, 100% {
    box-shadow: 0 0 20px var(--season-closed-glow), 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 35px rgba(204, 0, 0, 0.9), 0 6px 16px rgba(0, 0, 0, 0.3);
  }
}

/* Loading State */
.review-season-icon.loading {
  background: linear-gradient(135deg, #636e72 0%, #7f8c8d 100%);
  box-shadow: 0 0 15px rgba(99, 110, 114, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: #636e72;
  animation: seasonLoadingPulse 1.5s ease-in-out infinite;
}

@keyframes seasonLoadingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============================================
   REVIEW SEASON MODAL
   (Modal styles are unique - not part of base)
   ============================================ */
.review-season-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.review-season-modal.active {
  display: flex !important;
}

.review-season-modal-content {
  background-color: #000000;
  border: 3px solid #ffee00;
  padding: 0;
  text-align: left;
  border-radius: 16px;
  margin: 5% auto;
  width: 90%;
  max-width: 780px;
  max-height: 110vh;
  overflow-y: auto;
  position: relative;
  animation: reviewSeasonSlideDown 0.3s ease;
  box-shadow: 0 10px 40px rgba(255, 238, 0, 0.4);
  color: #919499;
  letter-spacing: 0.015em;
  box-sizing: border-box;
}

@keyframes reviewSeasonSlideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Modal Header */
.review-season-modal-header {
  background: linear-gradient(135deg, var(--season-open-primary) 0%, var(--season-open-secondary) 100%);
  padding: 24px 30px;
  border-radius: 13px 13px 0 0;
}

.review-season-modal-header.season-closed {
  background: linear-gradient(135deg, var(--season-closed-primary) 0%, var(--season-closed-secondary) 100%);
}

.review-season-modal-title {
  color: #fff;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-season-modal-title i {
  font-size: 1.2em;
}

/* Modal Body */
.review-season-modal-body {
  padding: 30px;
}

.review-season-section {
  margin-bottom: 25px;
}

.review-season-section:last-child {
  margin-bottom: 0;
}

.review-season-section-title {
  color: #ffee00;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-season-section-title i {
  font-size: 0.9em;
  color: var(--season-open-primary);
}

.review-season-section p {
  color: #d0d0d0;
  line-height: 1.6;
  margin: 0 0 0.5em 0;
}

.review-season-section p:last-child {
  margin-bottom: 0;
}

/* Season Status Badge */
.season-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
}

.season-status-badge.open {
  background-color: rgba(0, 208, 132, 0.2);
  color: var(--season-open-primary);
  border: 1px solid var(--season-open-primary);
}

.season-status-badge.open i {
  color: var(--season-open-primary);
}

.season-status-badge.closed {
  background-color: rgba(231, 76, 60, 0.2);
  color: var(--season-closed-primary);
  border: 1px solid var(--season-closed-primary);
}

.season-status-badge.closed i {
  color: var(--season-closed-primary);
}

/* Countdown Display */
.review-season-countdown-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--season-open-primary);
}

.review-season-countdown-section.season-closed {
  border-left-color: var(--season-closed-primary);
}

.season-countdown {
  text-align: center;
}

.countdown-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Courier New', monospace;
  line-height: 1.2;
  margin-bottom: 10px;
}

.countdown-unit {
  font-size: 1rem;
  color: #b0b0b0;
  font-weight: 400;
  font-family: 'Arial', sans-serif;
}

.countdown-label {
  font-size: 0.95rem;
  color: #b0b0b0;
  margin-top: 5px;
}

/* Schedule Timeline */
.schedule-timeline {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.schedule-icon.open {
  background-color: rgba(0, 208, 132, 0.2);
  color: var(--season-open-primary);
  border: 1px solid var(--season-open-primary);
}

.schedule-icon.closed {
  background-color: rgba(231, 76, 60, 0.2);
  color: var(--season-closed-primary);
  border: 1px solid var(--season-closed-primary);
}

.schedule-details {
  flex: 1;
}

.schedule-details h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
  color: #ffffff;
  font-weight: 600;
}

.schedule-details p {
  margin: 0;
  font-size: 0.9rem;
  color: #b0b0b0;
}

.schedule-description {
  margin-top: 5px !important;
  font-size: 0.85rem !important;
  color: #888888 !important;
}

/* ================================================
   REVIEW CTA SECTION
   ================================================ */

.review-season-cta-section {
  background: rgba(255, 238, 0, 0.08);
  border: 2px solid #ffee00;
  border-radius: 8px;
  padding: 1.2em;
  margin: 1.5em 1.5em 0 1.5em;
  text-align: center;
}

.review-cta-description {
  color: #ffffff;
  font-size: 0.95em;
  margin-bottom: 1em;
  margin-top: 0.5em;
}

.review-cta-buttons {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-review-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.5em;
  font-size: 0.95em;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.btn-agency-review {
  background: #ffee00;
  color: #000000;
  border: 2px solid #ffee00;
}

.btn-agency-review:hover,
.btn-agency-review:focus {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 238, 0, 0.4);
}

.btn-share-experience {
  background: transparent;
  color: #ffee00;
  border: 2px solid #ffee00;
}

.btn-share-experience:hover,
.btn-share-experience:focus {
  background: rgba(255, 238, 0, 0.15);
  transform: translateY(-2px);
}

.btn-review-cta:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.review-season-modal-content.season-closed .review-season-cta-section,
.season-closed .review-season-cta-section {
  display: none;
}

/* Modal Footer */
.review-season-modal-footer {
  padding: 20px 30px;
  border-top: 1px solid rgba(255, 238, 0, 0.2);
  display: flex;
  justify-content: center;
}

.review-season-modal-close-btn {
  background: #28a745;
  color: #ffffff !important;
  border: none;
  border-radius: 999px;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
}

.review-season-modal-close-btn:hover {
  background: #218838;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.review-season-modal-close-btn:focus {
  outline: 2px solid #ffee00;
  outline-offset: 2px;
}

/* ============================================
   BLOCKED REVIEW MODAL
   ============================================ */
.blocked-review-modal {
  display: none;
  position: fixed;
  z-index: 10002;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.blocked-review-modal.active {
  display: flex !important;
}

.blocked-review-content {
  background-color: #000000;
  border: 3px solid var(--season-closed-primary);
  padding: 0;
  border-radius: 16px;
  margin: 5% auto;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: reviewSeasonSlideDown 0.3s ease;
  box-shadow: 0 10px 40px rgba(231, 76, 60, 0.4);
}

.blocked-review-header {
  background: linear-gradient(135deg, var(--season-closed-primary) 0%, var(--season-closed-secondary) 100%);
  padding: 24px 30px;
  border-radius: 13px 13px 0 0;
}

.blocked-review-title {
  color: #fff;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blocked-review-body {
  padding: 30px;
}

.blocked-review-message {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 0 0 20px 0;
  border-radius: 0 8px 8px 0;
}

.blocked-review-message p {
  margin: 0;
  color: #ffc107;
  font-size: 0.95rem;
  line-height: 1.5;
}

.reopen-info {
  background: rgba(0, 208, 132, 0.1);
  border: 1px solid var(--season-open-primary);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.reopen-info h4 {
  margin: 0 0 10px 0;
  color: var(--season-open-primary);
  font-size: 1rem;
}

.reopen-date {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--season-open-primary);
}

.blocked-review-footer {
  padding: 20px 30px;
  border-top: 1px solid rgba(231, 76, 60, 0.2);
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-bookmark {
  background: var(--season-open-primary);
  color: #000000 !important;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-bookmark:hover {
  background: var(--season-open-secondary);
  transform: scale(1.02);
}

.btn-close-blocked {
  background: #636e72;
  color: #ffffff !important;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-blocked:hover {
  background: #535c5f;
  transform: scale(1.02);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  /* Mobile container: base gap=0 from floating-icons-base.css */
  .review-season-container {
    bottom: 295px;
    right: 20px;
  }

  /* MOBILE: Hide pill, show only circle */
  .pill-btn {
    display: none;
  }

  /* Mobile circle size (45px) handled by floating-icons-base.css */
  /* Mobile FA size (20px) handled by floating-icons-base.css */

  /* Modal adjustments */
  .review-season-modal-content,
  .blocked-review-content {
    width: 95%;
    margin: 3% auto;
    max-height: 105vh;
    -webkit-overflow-scrolling: touch;
  }

  .review-season-modal-header,
  .blocked-review-header {
    padding: 20px;
  }

  .review-season-modal-title,
  .blocked-review-title {
    font-size: 1.3rem;
  }

  .review-season-modal-body,
  .blocked-review-body {
    padding: 20px;
  }

  .countdown-value {
    font-size: 2rem;
  }

  .schedule-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .schedule-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .review-season-modal-footer,
  .blocked-review-footer {
    flex-direction: column;
    padding: 20px;
    align-items: center;
  }

  .review-season-modal-close-btn,
  .btn-bookmark,
  .btn-close-blocked {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .review-season-cta-section {
    margin: 1em;
    padding: 1em;
  }

  .review-cta-buttons {
    flex-direction: column;
  }

  .btn-review-cta {
    width: 100%;
    justify-content: center;
    padding: 0.85em 1.5em;
  }

  .review-season-modal-content,
  .blocked-review-content {
    width: 98%;
    padding: 0;
  }

  .review-season-modal-title,
  .blocked-review-title {
    font-size: 1.2rem;
  }

  .countdown-value {
    font-size: 1.8rem;
  }

  .review-season-section-title {
    font-size: 1rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Reduced motion for icon handled by floating-icons-base.css */
@media (prefers-reduced-motion: reduce) {
  .pill-btn,
  .review-season-modal-content,
  .blocked-review-content {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .review-season-icon {
    border-width: 50px;
  }

  .review-season-modal-content,
  .blocked-review-content {
    border-width: 4px;
  }

  .review-season-icon.season-open {
    background: #006644;
    box-shadow: 0 0 0 2px #fff;
  }

  .review-season-icon.season-closed {
    background: #cc0000;
    box-shadow: 0 0 0 2px #fff;
  }
}

/* Focus-visible for icon handled by floating-icons-base.css */
.pill-btn:focus-visible,
.review-season-modal-close-btn:focus-visible,
.btn-bookmark:focus-visible,
.btn-close-blocked:focus-visible {
  outline: 3px solid #ffee00;
  outline-offset: 3px;
}

/* Print styles for container handled by floating-icons-base.css */
@media print {
  .review-season-modal,
  .blocked-review-modal {
    display: none !important;
  }
}

/* ============================================
   DYNAMIC AD-AWARE POSITIONING
   ============================================ */

body.adsense-anchor-active .review-season-container {
  /* Handled by parent .floating-icons-wrapper */
}
