/* ============================================
   Robo Coders Page Styles
   Sport dasturlash musobaqasi
   Terminal / Code / Green-Cyan hacker theme
   ============================================ */

/* ============ Variables ============ */
.robo-coders-page {
    --rc-primary: #00e676;
    --rc-secondary: #00bcd4;
    --rc-accent: #76ff03;
    --rc-dark: #0d1117;
    --rc-darker: #010409;
    --rc-light: #39d353;
    --rc-neon: #00e676;
    --rc-cyan: #00bcd4;
    --rc-orange: #ff9800;

    --rc-bg: #0d1117;
    --rc-card: rgba(13, 17, 23, 0.85);
    --rc-border: rgba(0, 230, 118, 0.2);

    --rc-gradient: linear-gradient(135deg, var(--rc-primary), var(--rc-secondary));
    --rc-gradient-dark: linear-gradient(135deg, var(--rc-dark), var(--rc-darker));
    --rc-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ============ Loading Screen ============ */
.robo-coders-page .loading-screen {
    background: var(--rc-bg);
}
.robo-coders-page .loading-progress-bar {
    background: var(--rc-gradient);
}
.rc-loader {
    position: relative;
    width: 120px;
    height: 120px;
}
.rc-loader svg {
    width: 100%;
    height: 100%;
}

/* ============ Hero Section ============ */
/* Base: inherits .competition-hero from competition-page.css
   (min-height:100vh, display:flex, align-items:center, padding:120px 0 80px)
   .competition-hero .container → grid 1fr 1fr, gap 60px, align-items center */

.rc-effects {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.rc-hero .container {
    z-index: 2;
}

.rc-hero .hero-badges {
    margin-bottom: var(--space-4);
}

.rc-badge {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--rc-primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: var(--rc-font-mono);
}

.rc-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: var(--space-4);
}
.rc-title .title-accent {
    display: block;
    background: var(--rc-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--rc-font-mono);
}
.rc-title .title-main {
    display: block;
    color: #e6edf3;
    font-family: var(--rc-font-mono);
}

.rc-hero .hero-subtitle {
    color: rgba(230, 237, 243, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-5);
    max-width: 520px;
}

/* Hero Stats */
.rc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: var(--space-5);
}
.rc-stats .stat-item {
    background: rgba(0, 230, 118, 0.04);
    border: 1px solid var(--rc-border);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.3s ease;
}
.rc-stats .stat-item:hover {
    border-color: rgba(0, 230, 118, 0.4);
    background: rgba(0, 230, 118, 0.08);
}
.rc-stats .stat-icon {
    display: block;
    margin: 0 auto 8px;
    color: var(--rc-primary);
    width: 22px;
    height: 22px;
}
.rc-stats .stat-number {
    display: block;
    color: #e6edf3;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--rc-font-mono);
}
.rc-stats .stat-label {
    display: block;
    color: rgba(230, 237, 243, 0.5);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

/* Hero Actions — inherits from .hero-actions in competition-page.css */

.btn-rc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--rc-font-mono);
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-rc.btn-primary-rc {
    background: var(--rc-gradient);
    color: var(--rc-dark);
}
.btn-rc.btn-primary-rc:hover {
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.4);
    transform: translateY(-2px);
}
.btn-rc.btn-outline-rc {
    background: transparent;
    border: 1.5px solid var(--rc-border);
    color: var(--rc-primary);
}
.btn-rc.btn-outline-rc:hover {
    background: rgba(0, 230, 118, 0.08);
    border-color: var(--rc-primary);
}

/* Hero Visual */
.rc-hero .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.rc-visual svg {
    width: 100%;
    max-width: 520px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 230, 118, 0.25));
}

/* ============ Section Base ============ */
.rc-section {
    padding: var(--space-20) 0;
    position: relative;
}
.rc-section .section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}
.rc-section .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid var(--rc-border);
    color: var(--rc-primary);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    font-family: var(--rc-font-mono);
}
.rc-section .section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: var(--space-4);
    font-family: var(--rc-font-mono);
}
.rc-section .section-subtitle {
    color: rgba(230, 237, 243, 0.6);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============ Overview Section ============ */
.rc-overview .overview-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-8);
    align-items: start;
}
.rc-overview .content-block {
    background: var(--rc-card);
    border: 1px solid var(--rc-border);
    border-radius: 16px;
    padding: var(--space-8);
    margin-bottom: var(--space-6);
}
.rc-overview .content-block h3 {
    color: var(--rc-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    font-family: var(--rc-font-mono);
}
.rc-overview .content-block p {
    color: rgba(230, 237, 243, 0.75);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}
.rc-overview .content-block p:last-child {
    margin-bottom: 0;
}

/* Goals Grid */
.rc-goals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.rc-goal-card {
    background: var(--rc-card);
    border: 1px solid var(--rc-border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}
.rc-goal-card:hover {
    border-color: rgba(0, 230, 118, 0.4);
    transform: translateY(-2px);
}
.rc-goal-card .goal-number {
    color: var(--rc-primary);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--rc-font-mono);
    margin-bottom: 8px;
    opacity: 0.6;
}
.rc-goal-card h4 {
    color: #e6edf3;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.rc-goal-card p {
    color: rgba(230, 237, 243, 0.6);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Sidebar */
.rc-overview .info-card {
    background: var(--rc-card);
    border: 1px solid var(--rc-border);
    border-radius: 16px;
    padding: var(--space-6);
    position: sticky;
    top: 100px;
}
.rc-overview .info-card h4 {
    color: var(--rc-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    font-family: var(--rc-font-mono);
    display: flex;
    align-items: center;
    gap: 8px;
}
.rc-overview .participant-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rc-overview .participant-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 230, 118, 0.08);
}
.rc-overview .participant-list li:last-child {
    border-bottom: none;
}
.rc-overview .participant-list li i {
    color: var(--rc-primary);
    margin-top: 4px;
    font-size: 0.875rem;
    opacity: 0.7;
}
.rc-overview .participant-list li strong {
    display: block;
    color: rgba(230, 237, 243, 0.5);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rc-overview .participant-list li span {
    color: #e6edf3;
    font-size: 0.9rem;
}

/* ============ Stages Section ============ */
.rc-stages .stages-timeline {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.rc-stage-card {
    background: var(--rc-card);
    border: 1px solid var(--rc-border);
    border-radius: 16px;
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.rc-stage-card:hover {
    border-color: rgba(0, 230, 118, 0.4);
}
.rc-stage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--rc-gradient);
    border-radius: 4px 0 0 4px;
}
.rc-stage-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: var(--space-4);
}
.rc-stage-number {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rc-primary);
    font-family: var(--rc-font-mono);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.rc-stage-card h4 {
    color: #e6edf3;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--rc-font-mono);
}
.rc-stage-badge {
    display: inline-block;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--rc-primary);
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--rc-font-mono);
    margin-left: auto;
}
.rc-stage-card .stage-desc {
    color: rgba(230, 237, 243, 0.7);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}
.rc-stage-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.rc-stage-items li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(230, 237, 243, 0.65);
    font-size: 0.875rem;
}
.rc-stage-items li i {
    color: var(--rc-primary);
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ============ Tools Section ============ */
.rc-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}
.rc-tool-card {
    background: var(--rc-card);
    border: 1px solid var(--rc-border);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
}
.rc-tool-card:hover {
    border-color: rgba(0, 230, 118, 0.4);
    transform: translateY(-2px);
}
.rc-tool-card .tool-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    border-radius: 10px;
    background: rgba(0, 230, 118, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rc-primary);
    font-size: 1rem;
}
.rc-tool-card span {
    display: block;
    color: #e6edf3;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--rc-font-mono);
}

/* ============ Scoring Section ============ */
.rc-scoring .scoring-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto var(--space-8);
}
.rc-scoring-card {
    background: var(--rc-card);
    border: 1px solid var(--rc-border);
    border-radius: 16px;
    padding: var(--space-6);
    text-align: center;
    transition: all 0.3s ease;
}
.rc-scoring-card:hover {
    border-color: rgba(0, 230, 118, 0.4);
}
.rc-scoring-card .scoring-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 230, 118, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: var(--rc-primary);
    font-size: 1.25rem;
}
.rc-scoring-card h4 {
    color: #e6edf3;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--rc-font-mono);
}
.rc-scoring-card p {
    color: rgba(230, 237, 243, 0.6);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Winner Box */
.rc-winner-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--rc-card);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 16px;
    padding: var(--space-6) var(--space-8);
    display: flex;
    align-items: center;
    gap: var(--space-6);
}
.rc-winner-box .winner-icon {
    flex-shrink: 0;
    color: var(--rc-orange);
}
.rc-winner-box h3 {
    color: var(--rc-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: var(--rc-font-mono);
}
.rc-winner-box p {
    color: rgba(230, 237, 243, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============ Rules Section ============ */
.rc-rules .rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.rc-rule-card {
    background: var(--rc-card);
    border: 1px solid var(--rc-border);
    border-radius: 14px;
    padding: var(--space-6);
    transition: all 0.3s ease;
}
.rc-rule-card:hover {
    border-color: rgba(0, 230, 118, 0.4);
}
.rc-rule-card .rule-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 230, 118, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rc-primary);
    margin-bottom: 14px;
    font-size: 1rem;
}
.rc-rule-card h4 {
    color: #e6edf3;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.rc-rule-card p {
    color: rgba(230, 237, 243, 0.6);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ============ Prizes Section ============ */
.rc-prizes .prizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto var(--space-6);
}
.rc-prize-card {
    background: var(--rc-card);
    border: 1px solid var(--rc-border);
    border-radius: 16px;
    padding: var(--space-6);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.rc-prize-card:hover {
    border-color: rgba(0, 230, 118, 0.4);
    transform: translateY(-4px);
}
.rc-prize-card.gold {
    border-color: rgba(255, 215, 0, 0.3);
}
.rc-prize-card.gold .prize-icon { color: #ffd700; }
.rc-prize-card.silver .prize-icon { color: #c0c0c0; }
.rc-prize-card.bronze .prize-icon { color: #cd7f32; }
.rc-prize-card .prize-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
}
.rc-prize-card h4 {
    color: #e6edf3;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: var(--rc-font-mono);
}
.rc-prize-card p {
    color: rgba(230, 237, 243, 0.6);
    font-size: 0.85rem;
}
.rc-prizes .prizes-note {
    text-align: center;
    color: rgba(230, 237, 243, 0.5);
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ============ CTA Section ============ */
.rc-cta {
    text-align: center;
    padding: var(--space-20) 0;
    position: relative;
}
.rc-cta .cta-content {
    max-width: 600px;
    margin: 0 auto;
}
.rc-cta .cta-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: var(--space-4);
    font-family: var(--rc-font-mono);
}
.rc-cta .cta-content > p {
    color: rgba(230, 237, 243, 0.6);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}
.rc-cta .cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}
.rc-cta .cta-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-6);
}
.rc-cta .cta-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(230, 237, 243, 0.5);
    font-size: 0.85rem;
}
.rc-cta .cta-contact a {
    color: var(--rc-primary);
    text-decoration: none;
}

/* ============ Responsive ============ */

/* --- Tablet Landscape / Small Desktop --- */
@media (max-width: 1200px) {
    .rc-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .rc-overview .overview-grid {
        grid-template-columns: 1fr 300px;
    }
    .rc-scoring .scoring-grid {
        gap: 16px;
    }
}

/* --- Tablet Portrait --- */
/* Base competition-page.css @992px handles:
   .competition-hero .container → 1fr, text-center
   .hero-content → max-width 100%, .hero-badges → center
   .hero-actions → center, .hero-visual → max-width 500px auto */
@media (max-width: 992px) {
    .rc-hero .hero-visual {
        order: -1;
    }
    .rc-visual svg {
        max-width: 320px;
    }
    .rc-hero .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .rc-stats {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .rc-section {
        padding: var(--space-12) 0;
    }
    .rc-section .section-header {
        margin-bottom: var(--space-8);
    }

    .rc-overview .overview-grid {
        grid-template-columns: 1fr;
    }
    .rc-overview .info-card {
        position: static;
    }

    .rc-cta {
        padding: var(--space-12) 0;
    }
}

/* --- Mobile Landscape / Large Phone --- */
/* Base competition-page.css @768px handles:
   .competition-hero → padding: 100px 0 60px
   .hero-stats → 2fr, gap 12px
   .hero-actions → column, .btn → width 100% */
@media (max-width: 768px) {
    .rc-visual svg {
        max-width: 260px;
    }
    .rc-stats {
        max-width: 360px;
    }
    .rc-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .rc-goals-grid {
        grid-template-columns: 1fr;
    }
    .rc-scoring .scoring-grid {
        grid-template-columns: 1fr;
    }
    .rc-rules .rules-grid {
        grid-template-columns: 1fr;
    }
    .rc-prizes .prizes-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .rc-stage-items {
        grid-template-columns: 1fr;
    }
    .rc-stage-card {
        padding: var(--space-5);
    }
    .rc-stage-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    .rc-stage-badge {
        margin-left: 0;
    }
    .rc-winner-box {
        flex-direction: column;
        text-align: center;
        padding: var(--space-5);
        gap: var(--space-4);
    }
    .rc-overview .content-block {
        padding: var(--space-5);
    }
    .rc-overview .info-card {
        padding: var(--space-5);
    }

    .btn-rc {
        padding: 10px 22px;
        font-size: 0.875rem;
    }

    .rc-cta .cta-contact {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* --- Small Phone --- */
@media (max-width: 480px) {
    .rc-visual svg {
        max-width: 200px;
    }
    .rc-stats {
        gap: 8px;
        max-width: 100%;
    }
    .rc-stats .stat-item {
        padding: 12px 8px;
    }
    .rc-stats .stat-number {
        font-size: 1.05rem;
    }
    .rc-stats .stat-label {
        font-size: 0.65rem;
    }

    .rc-section {
        padding: var(--space-8) 0;
    }
    .rc-section .section-header {
        margin-bottom: var(--space-6);
    }
    .rc-section .section-title {
        font-size: 1.25rem;
    }
    .rc-section .section-subtitle {
        font-size: 0.875rem;
    }

    .rc-goal-card {
        padding: 16px;
    }
    .rc-tool-card {
        padding: 14px 10px;
    }
    .rc-tools .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .rc-scoring-card {
        padding: var(--space-4);
    }
    .rc-scoring-card .scoring-icon {
        width: 44px;
        height: 44px;
    }
    .rc-rule-card {
        padding: var(--space-4);
    }
    .rc-prize-card {
        padding: var(--space-4);
    }

    .btn-rc {
        padding: 10px 18px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    .rc-cta .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
