:root {
    --team1-color: #3498db;
    --team1-glow: rgba(52, 152, 219, 0.4);
    --team2-color: #e67e22;
    --team2-glow: rgba(230, 126, 34, 0.4);
    --decider-color: #9b59b6;
    --decider-glow: rgba(155, 89, 182, 0.4);
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #eee;
    min-height: 100vh;
    padding: 20px;
}

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

h1 {
    font-family: 'Jockey One', sans-serif;
    font-size: 3rem;
    text-align: center;
    color: #ff6b35;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h2 {
    font-size: 1.8rem;
    text-align: center;
    color: #f7931e;
    margin: 15px 0;
}

h3 {
    font-size: 1.3rem;
    color: #ffd700;
}

/* Format Selection */
.format-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.format-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.format-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 53, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.2);
}

.format-card p {
    color: #ccc;
    margin: 15px 0;
    line-height: 1.5;
}

/* Forms */
form {
    max-width: 500px;
    margin: 30px auto;
}

.form-group {
    margin: 20px 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #f7931e;
    font-weight: 500;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #ff6b35;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #666 0%, #555 100%);
}

.btn-ban {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    width: 100%;
}

.btn-pick {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    width: 100%;
}

.btn-side {
    width: 48%;
    padding: 8px;
    font-size: 0.9rem;
}

.btn-copy {
    padding: 8px 16px;
    margin-left: 10px;
}

/* Session Links */
.link-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.link-url {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.link-url input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: monospace;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Veto Session */
.role-indicator {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 20px 0;
}

.role-indicator.spectator {
    background: rgba(128, 128, 128, 0.3);
    border: 2px solid #888;
}

.role-indicator.team1 {
    box-shadow: 0 0 20px var(--team1-glow);
    background: var(--team1-glow);
    border: 2px solid #3498db;
    border-color: var(--team1-color);
}

.role-indicator.team2 {
    box-shadow: 0 0 20px var(--team2-glow);
    background: var(--team2-glow);
    border: 2px solid #e74c3c;
    border-color: var(--team2-color);
}

.veto-progress {
    text-align: center;
    margin: 30px 0;
}

.current-action {
    font-size: 1.3rem;
    color: #ffd700;
}

/* Map Grid */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.map-card {
    background: rgba(255, 255, 255, 0.08);
    border: 3px solid rgba(255, 107, 53, 0.4);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.map-card.available {
    border-color: rgba(255, 215, 0, 0.6);
}

.map-card.available:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffd700;
    transform: scale(1.05);
}

.map-card.banned {
    background: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
    opacity: 0.6;
}

.map-card.picked {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
}

.map-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 10px;
}

.map-status {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0;
    padding: 5px;
    border-radius: 3px;
}

.map-status.banned {
    background: rgba(231, 76, 60, 0.5);
    color: #fff;
}

.map-status.picked {
    background: rgba(46, 204, 113, 0.5);
    color: #fff;
}

.map-team {
    font-size: 0.9rem;
    color: #ccc;
    font-style: italic;
}

.map-side {
    font-size: 0.95rem;
    color: #ffd700;
    margin-top: 5px;
}

/* Side Selection */
.side-selection {
    margin-top: 15px;
}

.side-selection p {
    margin-bottom: 10px;
    color: #f7931e;
}

.side-selection form {
    display: flex;
    gap: 4%;
    justify-content: center;
}

/* Veto Completed */
.veto-completed {
    text-align: center;
    padding: 40px 20px;
}

.map-list-final {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.final-map {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(46, 204, 113, 0.5);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.final-map:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Team-specific borders and glows */
.final-map.team1-pick {
    border-color: var(--team1-color);
    box-shadow: 0 0 20px var(--team1-glow);
}

.final-map.team2-pick {
    border-color: var(--team2-color);
    box-shadow: 0 0 20px var(--team2-glow);
}

.final-map.decider-pick {
    border-color: var(--decider-color);
    box-shadow: 0 0 20px var(--decider-glow);
}

.map-number {
    font-weight: 700;
    color: #f7931e;
    font-size: 1.2rem;
}

.final-map .map-name {
    font-size: 1.3rem;
    color: #2ecc71;
    margin: 0;
    font-weight: 600;
}

.map-pick-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: auto;
    align-items: flex-end;
}

.picker-info {
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 500;
}

/* Team-specific picker badges */
.picker-info.team1 {
    background: linear-gradient(135deg, var(--team1-color) 0%, rgba(52, 152, 219, 0.7) 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.picker-info.team2 {
    background: linear-gradient(135deg, var(--team2-color) 0%, rgba(230, 126, 34, 0.7) 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.picker-info.decider {
    background: linear-gradient(135deg, var(--decider-color) 0%, rgba(155, 89, 182, 0.7) 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.side-info {
    font-style: italic;
    font-weight: 600;
    font-size: 1rem;
    padding: 6px 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Team-specific side info colors */
.side-info.team1 {
    color: var(--team1-color);
    border-color: var(--team1-color);
    background: rgba(52, 152, 219, 0.15);
}

.side-info.team2 {
    color: var(--team2-color);
    border-color: var(--team2-color);
    background: rgba(230, 126, 34, 0.15);
}

/* Footer */
footer a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

footer a:hover {
    color: #f7931e;
    border-bottom: 1px solid #f7931e;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .map-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .format-list {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }
}
