/* Contest Page Styles - Using HockeyFy Blue Theme */

.contest-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

/* Hero Section */
.contest-hero {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #0047AB 0%, #007AFF 50%, #0047AB 100%);
    border-radius: 24px;
    margin-bottom: 50px;
    box-shadow: 0 20px 40px rgba(0, 71, 171, 0.15);
    position: relative;
    overflow: hidden;
}

.contest-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.contest-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.contest-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Countdown Timer */
.countdown-container {
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.countdown-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.countdown-timer {
    display: inline-flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-unit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.countdown-separator {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    align-self: center;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Main Contest Grid */
.contest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.contest-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 71, 171, 0.08);
    border: 2px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 71, 171, 0.15);
    border-color: #007AFF;
}

.contest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0047AB 0%, #007AFF 100%);
}

.card-icon {
    /* Updated to use new icon styling - matches homepage.css */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 1rem !important;
    background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
    border-radius: 16px !important;
    padding: 12px !important;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3) !important;
    transition: all 0.3s ease !important;
}

.contest-card h2 {
    color: #0047AB;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.card-highlight {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #334155;
}

/* Prize Card Special Styling */
.prize-card {
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
}

.prize-card::after {
    content: '🏆';
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 100px;
    opacity: 0.05;
    transform: rotate(-15deg);
}

/* Compact Steps */
.compact-steps {
    margin: 20px 0;
}

.compact-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0047AB 0%, #007AFF 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.compact-step p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding-top: 4px;
}

.card-note {
    margin-top: 20px;
    padding: 12px 16px;
    background: #f0f9ff;
    border-left: 3px solid #007AFF;
    border-radius: 8px;
    color: #0047AB;
    font-size: 0.95rem;
}

/* Compact List */
.compact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compact-list li {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
    padding: 12px 0 12px 36px;
    position: relative;
}

.compact-list li:before {
    content: "✓";
    position: absolute;
    left: 8px;
    color: #0047AB;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Terms Section */
.contest-terms {
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
}

.terms-title {
    color: #0f172a;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.term-item h3 {
    color: #0047AB;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.term-item p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Legal Details Dropdown */
.legal-text {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.legal-text details {
    cursor: pointer;
}

.legal-text summary {
    color: #0047AB;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    transition: all 0.2s;
    user-select: none;
}

.legal-text summary:hover {
    background: #f0f9ff;
}

.legal-text details[open] summary {
    margin-bottom: 20px;
    background: #f0f9ff;
}

.legal-content {
    padding: 0 16px;
}

.legal-content p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.legal-content strong {
    color: #334155;
    font-weight: 600;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .contest-container {
    margin: 80px auto 30px;
    padding: 0 15px;
  }
  
  .contest-hero {
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: 16px;
  }
  
  .contest-title {
    font-size: 2.25rem;
    margin-bottom: 12px;
  }
  
  .contest-subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }
  
  .countdown-container {
    margin-top: 30px;
  }
  
  .countdown-timer {
    gap: 6px;
    padding: 16px 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .countdown-item {
    min-width: 55px;
  }
  
  .countdown-value {
    font-size: 2.25rem;
  }
  
  .countdown-unit {
    font-size: 0.7rem;
  }
  
  .contest-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .contest-card {
    padding: 24px;
    border-radius: 16px;
  }
  
  .contest-card h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  
  .card-highlight {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .compact-steps {
    margin: 16px 0;
  }
  
  .compact-step {
    margin-bottom: 16px;
    gap: 12px;
  }
  
  .step-badge {
    min-width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  
  .compact-step p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .compact-list li {
    font-size: 1rem;
    padding: 10px 0 10px 32px;
  }
  
  .contest-terms {
    padding: 30px 20px;
    margin-top: 30px;
    border-radius: 16px;
  }
  
  .terms-title {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }
  
  .terms-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .term-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  
  .term-item p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .legal-text {
    margin-top: 20px;
    padding-top: 20px;
  }
  
  .legal-text summary {
    font-size: 0.95rem;
    padding: 10px 12px;
  }
  
  .legal-content p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .contest-container {
    margin: 70px auto 20px;
    padding: 0 10px;
  }
  
  .contest-hero {
    padding: 30px 15px;
    margin-bottom: 25px;
  }
  
  .contest-title {
    font-size: 1.875rem;
    margin-bottom: 10px;
  }
  
  .contest-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .countdown-timer {
    gap: 4px;
    padding: 12px 15px;
  }
  
  .countdown-item {
    min-width: 45px;
  }
  
  .countdown-value {
    font-size: 1.875rem;
  }
  
  .countdown-unit {
    font-size: 0.65rem;
  }
  
  .countdown-separator {
    font-size: 1.5rem;
  }
  
  .contest-card {
    padding: 20px 16px;
  }
  
  .contest-card h2 {
    font-size: 1.375rem;
    margin-bottom: 14px;
  }
  
  .card-highlight {
    font-size: 0.95rem;
  }
  
  .compact-step {
    gap: 10px;
  }
  
  .step-badge {
    min-width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
  
  .compact-step p {
    font-size: 0.9rem;
  }
  
  .contest-terms {
    padding: 20px 15px;
  }
  
  .terms-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  
  .terms-grid {
    gap: 16px;
  }
  
  .term-item h3 {
    font-size: 1rem;
  }
  
  .term-item p {
    font-size: 0.85rem;
  }
}
