/* Potty and League - Hextech Design System */

:root {
    /* Hextech Palette */
    --hex-navy: #010a13;
    --hex-navy-light: #091428;
    --hex-blue: #0ac8b9;
    --hex-blue-light: #0ef3e1;
    --hex-blue-dark: #005a5a;
    --hex-gold: #c89b3c;
    --hex-gold-light: #f0e6d2;
    --hex-gold-dark: #785a28;
    --hex-red: #ff4e50;
    --hex-red-dark: #8b0000;

    /* Design Tokens */
    --bg-primary: var(--hex-navy);
    --bg-glass: rgba(1, 10, 19, 0.75);
    --border-gold: 1px solid rgba(200, 155, 60, 0.4);
    --border-blue: 1px solid rgba(10, 200, 185, 0.4);
    --shadow-glow: 0 0 20px rgba(10, 200, 185, 0.2);

    --text-primary: #f0e6d2;
    --text-secondary: #a09b8c;
    --text-gold: var(--hex-gold);
    --text-blue: var(--hex-blue);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(10, 200, 185, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(200, 155, 60, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-blue);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 243, 225, 0.3), transparent);
}

/* Pairing Screen */
.pairing-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pairing-card {
    width: 100%;
    max-width: 420px;
    padding: 48px 32px;
    border-radius: 4px;
    /* Shorter corners for League feel */
    border: var(--border-gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo {
    font-size: 80px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px var(--hex-blue));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.pairing-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--hex-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(200, 155, 60, 0.3);
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.code-input-container {
    margin-bottom: 32px;
}

.code-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--hex-gold-dark);
    padding: 20px;
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    color: var(--hex-gold-light);
    letter-spacing: 12px;
    outline: none;
    transition: all 0.3s;
    font-family: monospace;
}

.code-input:focus {
    border-color: var(--hex-blue);
    box-shadow: 0 0 20px rgba(10, 200, 185, 0.3);
    background: rgba(10, 200, 185, 0.05);
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hex-gold-dark), transparent);
    margin: 32px 0;
    opacity: 0.5;
}

.download-section {
    margin-top: 24px;
}

.download-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* App Screen */
.app-screen {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    margin-bottom: 20px;
    border-radius: 2px;
    border: var(--border-gold);
    background: linear-gradient(135deg, rgba(9, 20, 40, 0.9), rgba(1, 10, 19, 0.9));
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--hex-red);
    box-shadow: 0 0 10px var(--hex-red);
}

.status-indicator.connected {
    background: var(--hex-blue);
    box-shadow: 0 0 10px var(--hex-blue);
}

.summoner-name {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hex-gold-light);
}

.game-phase {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--hex-blue);
    padding: 6px 12px;
    background: rgba(10, 200, 185, 0.1);
    border: 1px solid rgba(10, 200, 185, 0.2);
    letter-spacing: 1px;
}

/* Panels */
.panel {
    border-radius: 2px;
    padding: 20px;
    margin-bottom: 20px;
    border: var(--border-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.panel-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--hex-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(200, 155, 60, 0.3), transparent);
}

/* Controls */
.control-group {
    margin-bottom: 20px;
}

.control-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--hex-navy-light);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.input:focus {
    border-color: var(--hex-gold);
    background: rgba(200, 155, 60, 0.05);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--hex-gold);
    background: var(--hex-gold-dark);
    color: var(--hex-gold-light);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--hex-gold);
    color: var(--hex-navy);
    box-shadow: 0 0 20px rgba(200, 155, 60, 0.4);
}

.btn-primary {
    border-color: var(--hex-blue);
    background: linear-gradient(90deg, var(--hex-blue-dark), var(--hex-blue));
    color: white;
}

.btn-primary:hover {
    background: var(--hex-blue-light);
    border-color: var(--hex-blue-light);
    color: var(--hex-navy);
    box-shadow: 0 0 20px rgba(10, 200, 185, 0.5);
}

.btn-danger {
    border-color: var(--hex-red);
    background: var(--hex-red-dark);
}

.btn-danger:hover {
    background: var(--hex-red);
}

.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 14px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 10px;
}

/* Champion Select Interface */
.champ-select-phase {
    background: rgba(10, 200, 185, 0.05);
    border: 1px solid var(--hex-blue-dark);
    padding: 16px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--hex-blue);
    margin-bottom: 24px;
}

.my-turn {
    background: linear-gradient(90deg, rgba(200, 155, 60, 0.2), rgba(200, 155, 60, 0.4), rgba(200, 155, 60, 0.2));
    border-color: var(--hex-gold);
    color: var(--hex-gold-light);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: inset 0 0 20px rgba(200, 155, 60, 0.2);
    }

    50% {
        box-shadow: inset 0 0 40px rgba(200, 155, 60, 0.4);
    }
}

.teams-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-player {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid transparent;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.team-ally .team-player {
    border-color: var(--hex-blue-dark);
}

.team-enemy .team-player {
    border-color: var(--hex-red-dark);
}

.team-player.is-self {
    background: rgba(200, 155, 60, 0.1);
    border-left-color: var(--hex-gold);
    color: var(--hex-gold-light);
}

.bans-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 78, 80, 0.2);
}

.bans-title {
    font-size: 11px;
    color: var(--hex-red);
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Queues */
.queue-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.queue-item {
    background: rgba(9, 20, 40, 0.6);
    border: 1px solid rgba(160, 155, 140, 0.2);
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

/* Log */
.panel-log {
    max-height: 250px;
}

.log-container {
    height: 150px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
}

.log-entry {
    padding: 4px 8px;
    margin-bottom: 2px;
    border-left: 2px solid var(--hex-blue-dark);
}

.log-warning {
    border-color: var(--hex-gold);
    color: var(--hex-gold-light);
}

.log-error {
    border-color: var(--hex-red);
    color: var(--hex-red);
}

/* Animations */
@keyframes slideUpFade {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .pairing-card {
        padding: 32px 20px;
    }

    .teams-container,
    .queue-panels {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 60px;
    }
}

/* Toggle Switch Styling */
.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hex-navy-light);
    border: 1px solid var(--hex-gold-dark);
    transition: .4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background: var(--hex-gold-dark);
    transition: .4s;
}

.toggle input:checked+.toggle-slider {
    background: var(--hex-blue-dark);
    border-color: var(--hex-blue);
}

.toggle input:checked+.toggle-slider:before {
    transform: translateX(26px);
    background: var(--hex-blue);
}