/* Crypto Hockey Game Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero-content .lead {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #a0a0ff;
}

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #4ecdc4;
}

.feature-card p {
    color: #ccc;
}

/* Info Section */
.info-section {
    background: rgba(15, 52, 96, 0.5);
    padding: 60px 20px;
    margin: 40px 0;
}

.info-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #4ecdc4;
}

.step-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    background: rgba(78, 205, 196, 0.1);
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-card h4 {
    color: #4ecdc4;
    margin: 20px 0 10px;
}

.step-card p {
    color: #ccc;
}

/* Wallet Connection Component */
.wallet-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.wallet-header {
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.wallet-header h3 {
    color: #4ecdc4;
    margin: 0;
    font-size: 1.3rem;
}

.wallet-disconnected {
    text-align: center;
}

.wallet-disconnected p {
    color: #a0a0ff;
    margin-bottom: 20px;
}

.wallet-disconnected .btn {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.wallet-disconnected .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.3);
}

.homepage-wallet-entry {
    max-width: 720px;
    margin: 0 auto 40px;
}

.wallet-launch-btn {
    min-width: 280px;
    padding: 12px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    transition: all 0.3s ease;
}

.wallet-launch-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
}

.wallet-launch-help {
    color: #a0a0ff;
    margin-top: 15px;
    margin-bottom: 0;
}

.warning-text {
    color: #ffa500;
    font-size: 0.9rem;
    margin-top: 15px;
}

.warning-text a {
    color: #4ecdc4;
    text-decoration: underline;
}

.wallet-connected {
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.5);
    border-radius: 8px;
    padding: 20px;
}

.wallet-info {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: #a0a0ff;
    font-weight: 600;
}

.info-row .address,
.info-row .network,
.info-row .balance {
    color: #4ecdc4;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.wallet-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wallet-actions .btn {
    flex: 1;
    min-width: 120px;
    border-radius: 6px;
}

/* Game Container */
.game-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-stats,
.game-controls {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.game-stats h4,
.game-controls h4 {
    color: #4ecdc4;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    padding-bottom: 10px;
}

.stats-info p {
    color: #ccc;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.game-controls .form-group {
    margin-bottom: 15px;
}

.game-controls label {
    color: #a0a0ff;
    margin-bottom: 5px;
    font-weight: 600;
}

.game-controls .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: #fff;
}

.game-controls .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4ecdc4;
    box-shadow: 0 0 0 0.2rem rgba(78, 205, 196, 0.2);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.btn-block:first-child {
    margin-top: 0;
}

.btn-success {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    border: none;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.btn-success:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-warning {
    background: #ff9500;
    border: none;
}

.btn-warning:hover {
    background: #e68500;
}

.btn-primary {
    background: #4ecdc4;
    border: none;
}

.btn-primary:hover {
    background: #3db5ad;
}

.btn-info {
    background: #5a9fd4;
    border: none;
}

.btn-info:hover:not(:disabled) {
    background: #4a8ec4;
}

.btn-info:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger {
    background: #e94560;
    border: none;
}

.btn-danger:hover {
    background: #d93550;
}

/* Game Area */
.game-area {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.game-header {
    background: rgba(15, 52, 96, 0.8);
    padding: 15px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
}

.score-board {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.player-score,
.opponent-score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-board .label {
    color: #a0a0ff;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.score-board .score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4ecdc4;
    font-family: 'Courier New', monospace;
}

.player-score .score {
    color: #e94560;
}

.divider {
    font-size: 2rem;
    color: #a0a0ff;
}

.game-canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #1a1a2e;
    cursor: none;
}

.game-over-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
}

.game-over-content {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(78, 205, 196, 0.5);
}

.game-over-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #4ecdc4;
}

.reward-message {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 15px 0;
}

.game-over-content p {
    color: #ccc;
    margin: 10px 0;
}

.difficulty-badge {
    display: inline-block;
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    padding: 5px 15px;
    border-radius: 20px;
    margin-top: 10px;
}

/* Leaderboard */
.leaderboard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

.leaderboard-container h1 {
    text-align: center;
    color: #4ecdc4;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.leaderboard-container .lead {
    text-align: center;
    color: #a0a0ff;
    margin-bottom: 30px;
}

.leaderboard-table {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin: 30px 0;
}

.leaderboard-table table {
    margin-bottom: 0;
}

.leaderboard-table thead th {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    font-weight: 600;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    padding: 15px;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid rgba(78, 205, 196, 0.1);
    transition: background-color 0.3s ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(78, 205, 196, 0.1);
}

.leaderboard-table tbody tr.top-1 {
    background: rgba(255, 215, 0, 0.1);
}

.leaderboard-table tbody tr.top-2 {
    background: rgba(192, 192, 192, 0.1);
}

.leaderboard-table tbody tr.top-3 {
    background: rgba(205, 127, 50, 0.1);
}

.leaderboard-table td {
    padding: 15px;
    color: #ccc;
}

.rank-col {
    text-align: center;
    width: 80px;
}

.address-col {
    font-family: 'Courier New', monospace;
    color: #4ecdc4;
    word-break: break-all;
}

.stats-col {
    text-align: center;
}

.stats-col .wins-badge {
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
}

.winrate {
    color: #4ecdc4;
    font-weight: 600;
}

.rewards-col {
    text-align: right;
}

.rewards {
    color: #ffd700;
    font-weight: 600;
    margin-right: 5px;
}

.token-symbol {
    color: #a0a0ff;
    font-size: 0.85rem;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

.badge-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #000;
}

.badge-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e0a76f 100%);
    color: #fff;
}

.leaderboard-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .feature-highlights {
        grid-template-columns: 1fr;
    }

    .score-board {
        gap: 20px;
    }

    .score-board .score {
        font-size: 1.8rem;
    }

    .leaderboard-table {
        overflow-x: auto;
    }

    .game-over-content {
        padding: 20px;
    }

    .game-over-content h2 {
        font-size: 1.8rem;
    }
}

/* Utility Classes */
.text-muted {
    color: #999 !important;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-2 {
    margin-top: 1rem;
}

.alert {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #90ee90;
    border-radius: 8px;
    padding: 20px;
}

.alert-info {
    background: rgba(76, 175, 204, 0.1);
    border-color: rgba(76, 175, 204, 0.3);
    color: #90d9e8;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.spinner-border {
    color: #4ecdc4;
}

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

/* Online Arena */
.online-arena-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 20px;
}

.online-arena-container h1 {
    color: #4ecdc4;
    margin-bottom: 8px;
}

.online-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.online-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    padding: 16px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.alias-row {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto auto;
    align-items: end;
}

.alias-row label {
    grid-column: 1 / -1;
    color: #a0a0ff;
}

.arena-card {
    background: rgba(15, 52, 96, 0.45);
    border: 1px solid rgba(78, 205, 196, 0.25);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chip {
    display: inline-block;
    background: rgba(78, 205, 196, 0.18);
    border: 1px solid rgba(78, 205, 196, 0.4);
    color: #bffaf5;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.8rem;
}

.action-row {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bracket-view {
    margin-top: 12px;
}

.round-block {
    border-top: 1px solid rgba(78, 205, 196, 0.2);
    padding-top: 12px;
    margin-top: 12px;
}

.round-block h5 {
    color: #4ecdc4;
}

.bracket-match {
    padding: 10px;
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 8px;
    margin-bottom: 10px;
}
