/* ============================================
   AI HEALTH HAKATON — Medical Cyan / AI Purple
   ============================================ */

.ah-page {
    --ah-primary: #00BCD4;
    --ah-secondary: #7C4DFF;
    --ah-accent: #00E5FF;
    --ah-heart: #FF5252;
    --ah-dna: #69F0AE;
    --ah-dark: #0a0e1a;
    --ah-gradient: linear-gradient(135deg, #00BCD4, #00E5FF);
    --ah-ai-gradient: linear-gradient(135deg, #7C4DFF, #B388FF);
    --ah-heart-gradient: linear-gradient(135deg, #FF5252, #FF8A80);
}

/* ===== LOADING ===== */
.ah-loader { display: flex; align-items: center; justify-content: center; }

/* ===== HERO FIX ===== */
.ah-page .competition-hero .container {
    display: block !important;
    grid-template-columns: none !important;
}
.ah-page .hero-content { max-width: none !important; }
.ah-page .competition-hero {
    --hero-accent: #00BCD4;
    --hero-accent-2: #7C4DFF;
}

/* Title */
.ah-page .hero-title .title-accent {
    background: var(--ah-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ah-page .hero-title .title-main {
    background: var(--ah-ai-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Badges */
.ah-page .badge-category {
    background: linear-gradient(135deg, rgba(0,188,212,0.15), rgba(124,77,255,0.15));
    border: 1px solid rgba(0,188,212,0.3); color: var(--ah-primary);
}
.ah-page .badge-level { border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }
.ah-page .badge-level.badge-ai {
    background: linear-gradient(135deg, rgba(124,77,255,0.2), rgba(179,136,255,0.2));
    border-color: rgba(124,77,255,0.4); color: #B388FF;
}
.ah-page .badge-level.badge-med {
    background: linear-gradient(135deg, rgba(255,82,82,0.2), rgba(255,138,128,0.15));
    border-color: rgba(255,82,82,0.4); color: #FF8A80;
}
.ah-page .badge-level.badge-respublika {
    background: linear-gradient(135deg, rgba(0,188,212,0.15), rgba(0,229,255,0.1));
    border: 1px solid rgba(0,188,212,0.4); color: #80DEEA;
}

/* Orbs */
.ah-page .orb-1 { background: radial-gradient(circle, rgba(0,188,212,0.15), transparent 70%) !important; }
.ah-page .orb-2 { background: radial-gradient(circle, rgba(124,77,255,0.1), transparent 70%) !important; }
.ah-page .orb-3 { background: radial-gradient(circle, rgba(0,229,255,0.08), transparent 70%) !important; }

/* ===== HERO GRID ===== */
.ah-hero-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: center;
    position: relative; z-index: 2;
}
.ah-hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.ah-hero-visual svg { width: 100%; max-width: 480px; height: auto; filter: drop-shadow(0 20px 60px rgba(0,188,212,0.15)); }

/* Hero Stats */
.ah-hero-stats { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.ah-hero-stat {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.65rem 1.2rem;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(0,188,212,0.12);
    border-radius: 14px; backdrop-filter: blur(10px); transition: all 0.3s ease;
}
.ah-hero-stat:hover {
    border-color: rgba(0,188,212,0.35); background: rgba(0,188,212,0.06);
    transform: translateY(-2px);
}
.ah-hero-stat .stat-icon { width: 22px; height: 22px; color: var(--ah-primary); flex-shrink: 0; }
.ah-hero-stat .stat-value {
    font-family: 'Orbitron', monospace; font-weight: 700;
    font-size: 0.95rem; color: #fff;
}
.ah-hero-stat .stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ===== SECTION OVERRIDES ===== */
.ah-page .section-tag {
    background: linear-gradient(135deg, rgba(0,188,212,0.1), rgba(0,229,255,0.1));
    border: 1px solid rgba(0,188,212,0.25); color: var(--ah-primary);
    display: inline-flex; align-items: center; gap: 8px;
}
.ah-page .section-tag svg { flex-shrink: 0; }
.ah-page .section-title { font-family: 'Orbitron', sans-serif; }
.ah-page .section-subtitle { color: rgba(255,255,255,0.55); }
.ah-page .competition-section { padding: 5rem 0; }

/* ===== OVERVIEW ===== */
.ah-overview-grid {
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 3rem; align-items: start;
}
.ah-overview-text { font-size: 1.05rem; line-height: 1.8; color: rgba(255,255,255,0.75); }
.ah-info-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(0,188,212,0.15);
    border-radius: 16px; padding: 2rem; backdrop-filter: blur(10px);
}
.ah-info-card h4 {
    font-family: 'Orbitron', monospace; font-size: 1rem;
    color: var(--ah-primary); margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.ah-info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ah-info-row:last-child { border-bottom: none; }
.ah-info-row .label { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.ah-info-row .value { font-weight: 600; color: #fff; font-size: 0.9rem; }

/* ===== GOALS ===== */
.ah-goals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.ah-goal-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(0,188,212,0.1);
    border-radius: 16px; padding: 1.8rem; text-align: center; transition: all 0.4s ease;
}
.ah-goal-card:hover {
    border-color: rgba(0,188,212,0.35); transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0,188,212,0.1);
}
.ah-goal-card .goal-icon {
    width: 56px; height: 56px; margin: 0 auto 1rem;
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.ah-goal-card .goal-icon svg { width: 26px; height: 26px; }
.ah-goal-card .goal-icon.ai { background: linear-gradient(135deg, rgba(124,77,255,0.15), rgba(179,136,255,0.1)); }
.ah-goal-card .goal-icon.ai svg { color: var(--ah-secondary); }
.ah-goal-card .goal-icon.med { background: linear-gradient(135deg, rgba(0,188,212,0.15), rgba(0,229,255,0.1)); }
.ah-goal-card .goal-icon.med svg { color: var(--ah-primary); }
.ah-goal-card .goal-icon.heart { background: linear-gradient(135deg, rgba(255,82,82,0.15), rgba(255,138,128,0.1)); }
.ah-goal-card .goal-icon.heart svg { color: var(--ah-heart); }
.ah-goal-card .goal-icon.startup { background: linear-gradient(135deg, rgba(105,240,174,0.15), rgba(105,240,174,0.1)); }
.ah-goal-card .goal-icon.startup svg { color: var(--ah-dna); }
.ah-goal-card h4 { font-size: 0.95rem; color: #fff; margin-bottom: 0.5rem; }
.ah-goal-card p { font-size: 0.8rem; color: rgba(255,255,255,0.5); line-height: 1.5; }

/* ===== DIRECTIONS ===== */
.ah-directions-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.ah-direction-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; padding: 2rem 1.5rem; text-align: center;
    position: relative; overflow: hidden; transition: all 0.4s ease;
}
.ah-direction-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; border-radius: 20px 20px 0 0;
}
.ah-direction-card:nth-child(1)::before { background: var(--ah-gradient); }
.ah-direction-card:nth-child(2)::before { background: var(--ah-ai-gradient); }
.ah-direction-card:nth-child(3)::before { background: var(--ah-heart-gradient); }
.ah-direction-card:nth-child(4)::before { background: linear-gradient(135deg, #69F0AE, #00E676); }
.ah-direction-card:nth-child(5)::before { background: linear-gradient(135deg, #FFD54F, #FF9800); }
.ah-direction-card:hover {
    transform: translateY(-6px); border-color: rgba(0,188,212,0.3);
    box-shadow: 0 20px 50px rgba(0,188,212,0.1);
}
.ah-direction-card .dir-icon {
    width: 64px; height: 64px; margin: 0 auto 1.2rem;
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
}
.ah-direction-card .dir-icon svg { width: 28px; height: 28px; }
.ah-direction-card:nth-child(1) .dir-icon {
    background: linear-gradient(135deg, rgba(0,188,212,0.12), rgba(0,229,255,0.08));
}
.ah-direction-card:nth-child(1) .dir-icon svg { color: var(--ah-primary); }
.ah-direction-card:nth-child(2) .dir-icon {
    background: linear-gradient(135deg, rgba(124,77,255,0.12), rgba(179,136,255,0.08));
}
.ah-direction-card:nth-child(2) .dir-icon svg { color: var(--ah-secondary); }
.ah-direction-card:nth-child(3) .dir-icon {
    background: linear-gradient(135deg, rgba(255,82,82,0.12), rgba(255,138,128,0.08));
}
.ah-direction-card:nth-child(3) .dir-icon svg { color: var(--ah-heart); }
.ah-direction-card:nth-child(4) .dir-icon {
    background: linear-gradient(135deg, rgba(105,240,174,0.12), rgba(0,230,118,0.08));
}
.ah-direction-card:nth-child(4) .dir-icon svg { color: var(--ah-dna); }
.ah-direction-card:nth-child(5) .dir-icon {
    background: linear-gradient(135deg, rgba(255,213,79,0.12), rgba(255,152,0,0.08));
}
.ah-direction-card:nth-child(5) .dir-icon svg { color: #FFD54F; }
.ah-direction-card .dir-num {
    position: absolute; top: 0.5rem; right: 1rem;
    font-family: 'Orbitron', monospace; font-size: 1.8rem; font-weight: 900;
    color: rgba(0,188,212,0.08);
}
.ah-direction-card h3 { font-size: 0.95rem; color: #fff; margin-bottom: 0.5rem; }
.ah-direction-card p { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.5; }

/* ===== STAGES ===== */
.ah-stages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; position: relative; }
.ah-stages-grid::after {
    content: ''; position: absolute; left: 50%; top: 15%; bottom: 15%;
    width: 2px; background: linear-gradient(to bottom, transparent, rgba(0,188,212,0.3), transparent);
    transform: translateX(-50%);
}
.ah-stage-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(0,188,212,0.12);
    border-radius: 20px; padding: 2.5rem; position: relative; overflow: hidden;
    transition: all 0.4s ease;
}
.ah-stage-card:hover {
    border-color: rgba(0,188,212,0.3); transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,188,212,0.08);
}
.ah-stage-card .stage-header {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.ah-stage-card .stage-number {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', monospace; font-weight: 900; font-size: 1.2rem;
    color: #fff; flex-shrink: 0;
}
.ah-stage-card:first-child .stage-number { background: var(--ah-gradient); }
.ah-stage-card:last-child .stage-number { background: var(--ah-ai-gradient); }
.ah-stage-card .stage-title { font-family: 'Orbitron', monospace; font-size: 1.1rem; color: #fff; }
.ah-stage-card .stage-subtitle { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 0.2rem; }
.ah-stage-card .stage-desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 1.5rem; }
.ah-stage-items { list-style: none; padding: 0; margin: 0; }
.ah-stage-items li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.6rem 0; font-size: 0.85rem; color: rgba(255,255,255,0.65);
}
.ah-stage-items li svg { width: 16px; height: 16px; color: var(--ah-primary); flex-shrink: 0; margin-top: 2px; }

/* ===== EVALUATION ===== */
.ah-eval-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ah-eval-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 2rem; transition: all 0.4s ease;
    position: relative; overflow: hidden;
}
.ah-eval-card:hover {
    border-color: rgba(0,188,212,0.25); transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}
.ah-eval-card .eval-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
}
.ah-eval-card .eval-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(0,188,212,0.1), rgba(0,229,255,0.08));
}
.ah-eval-card .eval-icon svg { width: 20px; height: 20px; color: var(--ah-primary); }
.ah-eval-card .eval-score {
    font-family: 'Orbitron', monospace; font-weight: 800; font-size: 1.5rem;
    background: var(--ah-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ah-eval-card h4 { font-size: 0.95rem; color: #fff; margin-bottom: 0.5rem; }
.ah-eval-card p { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.5; margin-bottom: 1rem; }
.ah-eval-bar {
    width: 100%; height: 6px; background: rgba(255,255,255,0.06);
    border-radius: 3px; overflow: hidden;
}
.ah-eval-bar .bar-fill {
    height: 100%; border-radius: 3px; transition: width 1s ease;
}
.ah-eval-card:nth-child(1) .bar-fill { width: 20%; background: var(--ah-gradient); }
.ah-eval-card:nth-child(2) .bar-fill { width: 25%; background: var(--ah-ai-gradient); }
.ah-eval-card:nth-child(3) .bar-fill { width: 25%; background: linear-gradient(135deg, #69F0AE, #00E676); }
.ah-eval-card:nth-child(4) .bar-fill { width: 10%; background: linear-gradient(135deg, #FFD54F, #FF9800); }
.ah-eval-card:nth-child(5) .bar-fill { width: 15%; background: var(--ah-heart-gradient); }
.ah-eval-card:nth-child(6) .bar-fill { width: 10%; background: linear-gradient(135deg, #80DEEA, #00BCD4); }

/* ===== RULES ===== */
.ah-rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.ah-rule-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 2rem; display: flex; align-items: flex-start;
    gap: 1.5rem; transition: all 0.4s ease;
}
.ah-rule-card:hover { border-color: rgba(0,188,212,0.25); transform: translateY(-3px); }
.ah-rule-card .rule-icon {
    width: 48px; height: 48px; min-width: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.ah-rule-card .rule-icon svg { width: 22px; height: 22px; }
.ah-rule-card .rule-icon.info {
    background: linear-gradient(135deg, rgba(0,188,212,0.15), rgba(0,229,255,0.1));
}
.ah-rule-card .rule-icon.info svg { color: var(--ah-primary); }
.ah-rule-card .rule-icon.warning {
    background: linear-gradient(135deg, rgba(255,213,79,0.15), rgba(255,152,0,0.1));
}
.ah-rule-card .rule-icon.warning svg { color: #FFD54F; }
.ah-rule-card .rule-icon.forbidden {
    background: linear-gradient(135deg, rgba(255,82,82,0.15), rgba(229,57,53,0.1));
}
.ah-rule-card .rule-icon.forbidden svg { color: var(--ah-heart); }
.ah-rule-card .rule-icon.allowed {
    background: linear-gradient(135deg, rgba(105,240,174,0.15), rgba(0,230,118,0.1));
}
.ah-rule-card .rule-icon.allowed svg { color: var(--ah-dna); }
.ah-rule-card h4 { font-size: 0.95rem; color: #fff; margin-bottom: 0.4rem; }
.ah-rule-card p { font-size: 0.8rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ===== AWARDS ===== */
.ah-awards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.ah-award-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; padding: 2.5rem 2rem; text-align: center;
    transition: all 0.4s ease; position: relative; overflow: hidden;
}
.ah-award-card:hover {
    transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.ah-award-card .award-medal {
    width: 72px; height: 72px; margin: 0 auto 1.2rem;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.ah-award-card.gold .award-medal {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,193,7,0.15));
    border: 2px solid rgba(255,215,0,0.5);
}
.ah-award-card.silver .award-medal {
    background: linear-gradient(135deg, rgba(176,190,197,0.2), rgba(144,164,174,0.15));
    border: 2px solid rgba(176,190,197,0.4);
}
.ah-award-card.bronze .award-medal {
    background: linear-gradient(135deg, rgba(255,152,0,0.2), rgba(230,126,34,0.15));
    border: 2px solid rgba(255,152,0,0.4);
}
.ah-award-card h3 {
    font-family: 'Orbitron', monospace; font-size: 1.1rem; color: #fff; margin-bottom: 0.3rem;
}
.ah-award-card .award-desc { font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* ===== CTA ===== */
.ah-cta {
    background: linear-gradient(135deg, rgba(0,188,212,0.08), rgba(124,77,255,0.05));
    border: 1px solid rgba(0,188,212,0.15); border-radius: 24px;
    padding: 4rem; text-align: center; position: relative; overflow: hidden;
}
.ah-cta::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse, rgba(0,188,212,0.05), transparent 50%);
    animation: ah-pulse 6s ease-in-out infinite;
}
@keyframes ah-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}
.ah-cta h2 {
    font-family: 'Orbitron', monospace; font-size: 2rem;
    color: #fff; margin-bottom: 1rem; position: relative;
}
.ah-cta p { color: rgba(255,255,255,0.6); max-width: 600px; margin: 0 auto 2rem; position: relative; }
.ah-cta .cta-buttons {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative;
}
.ah-cta .btn-ah-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2rem; background: var(--ah-gradient);
    color: #fff; border: none; border-radius: 12px;
    font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.3s ease;
}
.ah-cta .btn-ah-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,188,212,0.3); color: #fff; }
.ah-cta .btn-ah-outline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2rem; background: transparent;
    color: var(--ah-primary); border: 1px solid rgba(0,188,212,0.3);
    border-radius: 12px; font-weight: 600; font-size: 0.95rem;
    text-decoration: none; transition: all 0.3s ease;
}
.ah-cta .btn-ah-outline:hover { background: rgba(0,188,212,0.1); border-color: rgba(0,188,212,0.5); transform: translateY(-2px); color: var(--ah-primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .ah-goals-grid { grid-template-columns: repeat(2, 1fr); }
    .ah-directions-grid { grid-template-columns: repeat(3, 1fr); }
    .ah-eval-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .ah-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .ah-hero-visual { order: -1; }
    .ah-hero-visual svg { max-width: 360px; }
    .ah-hero-stats { justify-content: center; }
    .ah-overview-grid { grid-template-columns: 1fr; }
    .ah-directions-grid { grid-template-columns: repeat(2, 1fr); }
    .ah-stages-grid { grid-template-columns: 1fr; }
    .ah-stages-grid::after { display: none; }
    .ah-eval-grid { grid-template-columns: 1fr; }
    .ah-rules-grid { grid-template-columns: 1fr; }
    .ah-awards-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .ah-goals-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    .ah-directions-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    .ah-cta { padding: 2.5rem 1.5rem; }
    .ah-cta h2 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .ah-hero-stats { flex-direction: column; align-items: center; }
}
