/* ==========================================
   THE GTM MACHINE - UPDATED STYLING
   Scaling Edge Branding - Minimal & Clean
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Forum&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #1a1f3a;
    --accent-blue: #2758a7;
    --accent-light: #84a6de;
    --background: #fafaf6;
    --secondary: #e8e8f4;
    --white: #ffffff;
    --text: #1a1f3a;
    --text-light: #6b7280;
    --border: #000000;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300; /* Inter Light */
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

/* ========== TYPOGRAPHY ========== */

h1, h2, h3 {
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

/* ========== HEADER ========== */

header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-top: var(--spacing-md);
}

.main-title {
    font-family: 'Forum', serif;
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== TIMER AT TOP ========== */

.top-timer {
    text-align: center;
    padding: var(--spacing-sm) 0;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--secondary);
}

.timer-display-top {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--accent-blue);
}

/* ========== MAIN SECTIONS ========== */

main {
    margin-bottom: var(--spacing-xl);
}

.mission-section {
    text-align: center;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.mission-section h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.mission-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    color: var(--text);
}

/* ========== BUTTONS ========== */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 300;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.button-group {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
    margin: var(--spacing-lg) 0;
}

.button-group .btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

/* ========== CARDS ========== */

.card {
    background: var(--white);
    border: 1px solid var(--secondary);
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.card h2 {
    margin-bottom: var(--spacing-md);
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card ul li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    position: relative;
}

.card ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 400;
}

/* ========== ROLES GRID ========== */

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.role-card {
    background: var(--white);
    border: 1px solid var(--secondary);
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}

.role-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
}

.role-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.role-card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
    font-weight: 400;
}

.role-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 300;
}

/* ========== ROLE HEADERS ========== */

.role-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    border: 1px solid transparent;
}

.role-header.blue { 
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border-color: #3b82f6;
}
.role-header.green { 
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border-color: #10b981;
}
.role-header.yellow { 
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-color: #f59e0b;
}
.role-header.orange { 
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    border-color: #f97316;
}
.role-header.red { 
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    border-color: #ef4444;
}
.role-header.purple { 
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    border-color: #8b5cf6;
}

.role-badge {
    font-size: 3rem;
}

.role-header h1 {
    color: var(--white);
    margin: 0;
    font-weight: 300;
}

/* ========== DELIVERABLES ========== */

.deliverable {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--secondary);
}

.deliverable:last-child {
    border-bottom: none;
}

.deliverable h3 {
    font-weight: 400;
}

.example {
    background: var(--secondary);
    padding: var(--spacing-sm);
    border-radius: var(--radius);
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

/* ========== CARD VARIANTS ========== */

.highlight-box {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-light) 100%);
    color: var(--white);
    border: none;
}

.highlight-box h2,
.highlight-box h3,
.highlight-box p,
.highlight-box .large-text {
    color: var(--white);
}

.warning-box {
    border-left: 3px solid #f59e0b;
    background: #fffbeb;
}

.danger-box {
    border-left: 3px solid #ef4444;
    background: #fef2f2;
}

/* ========== INFO GRID ========== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.info-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--white);
    border: 1px solid var(--secondary);
    border-radius: var(--radius);
}

.info-item h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
    font-weight: 400;
}

.large-text {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
}

/* ========== PRODUCT ITEMS ========== */

.product-item {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--secondary);
}

.product-item:last-child {
    border-bottom: none;
}

.product-item h3 {
    margin-bottom: var(--spacing-xs);
    font-weight: 400;
}

/* ========== STATUS SECTIONS ========== */

.status-section {
    margin-bottom: var(--spacing-lg);
}

.status-section h3 {
    font-weight: 400;
}

.status-section h3.success {
    color: #10b981;
}

.status-section h3.warning {
    color: #f59e0b;
}

.status-section h3.highlight {
    color: var(--accent-blue);
}

/* ========== LISTS ========== */

.constraints-list li,
.talk-to-list li {
    padding: var(--spacing-sm) 0;
}

.feature-list li {
    padding: var(--spacing-xs) 0;
    font-size: 1.125rem;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
}

/* ========== TIMER PAGE ========== */

.timer-display {
    text-align: center;
    padding: var(--spacing-xl);
}

.timer-number {
    font-family: 'Inter', sans-serif;
    font-size: 6rem;
    font-weight: 300;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin: var(--spacing-lg) 0;
}

.timer-phase {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.timer-ends {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 300;
}

/* ========== VOTING ========== */

.vote-options {
    margin: var(--spacing-lg) 0;
}

.vote-option {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background: var(--white);
    border: 1px solid var(--secondary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.vote-option:hover {
    border-color: var(--accent-blue);
    background: var(--secondary);
}

.vote-option input[type="radio"] {
    margin-right: var(--spacing-md);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.vote-option label {
    font-size: 1.125rem;
    font-weight: 300;
    cursor: pointer;
    flex: 1;
}

.vote-submit {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1.125rem;
    margin-top: var(--spacing-lg);
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-light) 100%);
    color: var(--white);
    border: none;
}

.vote-status {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--secondary);
    border-radius: var(--radius);
    margin-top: var(--spacing-lg);
    border: 1px solid var(--border);
}

/* ========== RESULTS ========== */

.results-list {
    margin: var(--spacing-lg) 0;
}

.result-item {
    margin-bottom: var(--spacing-md);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.result-name {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary);
}

.result-votes {
    font-size: 1.125rem;
    color: var(--accent-blue);
    font-weight: 400;
}

.result-bar {
    height: 40px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.result-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-light) 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-sm);
    color: var(--white);
    font-weight: 300;
}

.result-item.winner .result-name {
    color: var(--accent-blue);
}

.result-item.winner .result-bar-fill {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.winner-badge {
    display: inline-block;
    background: #10b981;
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 400;
    margin-left: var(--spacing-sm);
}

/* ========== FOOTER ========== */

footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 300;
    border-top: 1px solid var(--secondary);
    margin-top: var(--spacing-xl);
}

footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 400;
}

footer a:hover {
    text-decoration: underline;
}

.back-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 300;
}

.back-link:hover {
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .timer-number {
        font-size: 4rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn {
        width: 100%;
    }
    
    .roles-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-section h2 {
        font-size: 2rem;
    }
}
