/* FIGHT DETAILS STYLES - Violence Breakdown */

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

/* Fight Header */
.fight-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 8px;
    position: relative;
}

/* Commissioner's Blessing Stamp */
.commissioner-stamp {
    position: absolute;
    top: -20px;
    right: -25px;
    width: 130px;
    height: 130px;
    border: 4px solid #ff2222;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 34, 34, 0.2);
    transform: rotate(15deg);
    opacity: 0.9;
    cursor: help;
    z-index: 10;
    box-shadow: 0 0 20px rgba(255, 34, 34, 0.4);
}

/* Position variants based on fight ID */
.commissioner-stamp.stamp-position-0 {
    top: -15px;
    right: -20px;
    transform: rotate(12deg);
}

.commissioner-stamp.stamp-position-1 {
    top: -25px;
    right: -30px;
    transform: rotate(18deg);
}

.commissioner-stamp.stamp-position-2 {
    top: -12px;
    right: -35px;
    transform: rotate(8deg);
}

.commissioner-stamp.stamp-position-3 {
    top: -30px;
    right: -15px;
    transform: rotate(22deg);
}

.commissioner-stamp.stamp-position-4 {
    top: -18px;
    right: -40px;
    transform: rotate(6deg);
}

.commissioner-stamp.stamp-position-5 {
    top: -22px;
    right: -18px;
    transform: rotate(20deg);
}

.commissioner-stamp .stamp-text {
    font-size: 1rem;
    font-weight: bold;
    color: #ff2222;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 4px;
}

.commissioner-stamp .stamp-subtext {
    font-size: 0.7rem;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.fight-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
}

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

.meta-badge {
    padding: 10px 15px;
    background: #000000;
    border: 1px solid #444444;
    border-radius: 6px;
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 0.8rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
}

.status-scheduled { color: #ffaa00; }
.status-active { color: #00ff00; }
.status-completed { color: #888888; }
.status-voided { color: #ff4444; }

/* Fighter Matchup */
.fighter-matchup {
    background: #000000;
    border: 2px solid #444444;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.matchup-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch; /* Make fighter cards same height */
    gap: 30px;
}

.fighter-card {
    background: #000000;
    border: 1px solid #333333;
    border-radius: 6px;
    padding: 25px;
    text-align: center;
    transition: border-color 0.3s ease;
    min-height: 200px; /* Ensure minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

.fighter-card:hover {
    border-color: #ffaa00;
}

.fighter-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.fighter-name a {
    color: #ffffff;
    text-decoration: none;
}

.fighter-name a:hover {
    color: #ffaa00;
}

/* Effect Indicators */
.effect-indicators {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.effect-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    transition: all 0.3s ease;
}

.effect-badge:hover {
    transform: scale(1.1);
}

.effect-emoji {
    font-size: 1.8em;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
}

.effect-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4500;
    color: #ffffff;
    font-size: 0.7em;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #000000;
    min-width: 16px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    animation: pulse 2s infinite;
}

.curse-badge .effect-count {
    background: #8B0000;
    border-color: #000000;
}

.blessing-badge .effect-count {
    background: #FFD700;
    color: #000000;
    border-color: #000000;
}

.curse-badge:hover .effect-emoji {
    filter: drop-shadow(0 0 8px rgba(139, 0, 0, 0.8));
}

.blessing-badge:hover .effect-emoji {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

.fighter-score {
    font-size: 2rem;
    font-weight: bold;
    color: #00ff00;
    margin-top: 10px;
}

.vs-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.vs-text {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fight-status-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid;
}

.fight-status-badge.status-active {
    background: #004400;
    color: #00ff00;
    border-color: #00ff00;
}

.fight-status-badge.status-completed {
    background: #333333;
    color: #888888;
    border-color: #888888;
}

.fight-status-badge.status-scheduled {
    background: #442200;
    color: #ffaa00;
    border-color: #ffaa00;
}

.fight-status-badge.status-voided {
    background: #440000;
    color: #ff4444;
    border-color: #ff4444;
}

/* Result Section */
.result-section {
    background: #000000;
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.result-section h4 {
    color: #00ff00;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.winner-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.completion-time {
    color: #888888;
    font-style: italic;
}

/* Draw Result */
.draw-result {
    border-color: #ffaa00;
}

.draw-result h4 {
    color: #ffaa00;
}

/* Voided Section */
.voided-section {
    background: #000000;
    border: 2px solid #ff4444;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.voided-section h4 {
    color: #ff4444;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.void-reason {
    font-style: italic;
    color: #cccccc;
    line-height: 1.5;
}

/* Effects Section */
.effects-section {
    background: #000;
    border: 3px solid #8B008B;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.effects-section::before {
    content: "⚡ REALITY MANIPULATION ⚡";
    position: absolute;
    top: 10px;
    right: 15px;
    background: #8B008B;
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.7em;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.effects-section h4 {
    text-align: center;
    color: #8B008B;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.effects-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.effect-item {
    background: #000;
    border: 2px solid #8B008B;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.effect-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #8B008B;
    animation: pulse 3s infinite;
}

.effect-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 0, 139, 0.4);
    border-color: #AA44AA;
}

.effect-item:hover::before {
    background: #AA44AA;
}

.effect-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.effect-emoji {
    font-size: 2.5em;
    animation: bounce 3s infinite;
}

.effect-name {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

.effect-quantity {
    color: #8B008B;
    font-size: 1em;
    font-weight: bold;
    background: rgba(139, 0, 139, 0.2);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid #8B008B;
}

.effect-description {
    color: #cccccc;
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.effect-targets {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.effect-button {
    background: linear-gradient(45deg, #8B008B, #AA44AA);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    min-width: 200px;
}

.effect-button:hover {
    background: linear-gradient(45deg, #AA44AA, #8B008B);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(139, 0, 139, 0.4);
}

.effect-button:active {
    transform: scale(0.98);
}

/* Responsive effects */
@media (max-width: 768px) {
    .effect-targets {
        flex-direction: column;
    }
    
    .effect-button {
        min-width: auto;
    }
    
    .effect-header {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Betting Section */
.betting-section {
    background: #000;
    border: 2px solid #0088ff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.betting-section h4 {
    color: #0088ff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.betting-status {
    font-size: 1.1rem;
    color: #cccccc;
}

/* Auth Prompt */
.auth-prompt {
    background: #000000;
    border: 2px solid #aa66aa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.auth-prompt h4 {
    color: #aa66aa;
    margin-bottom: 15px;
}

.auth-prompt a {
    color: #aa66aa;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
}

.auth-prompt a:hover {
    color: #ffffff;
}

/* Back Button */
.back-button {
    display: inline-block;
    padding: 15px 25px;
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #ffffff;
    color: #000000;
}

/* Error State */
.error-section {
    background: #000000;
    border: 2px solid #ff4444;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.error-section h2 {
    color: #ff4444;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Fight Navigation Arrows */
.fight-nav-left,
.fight-nav-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.fight-nav-left {
    left: 15px;
}

.fight-nav-right {
    right: 15px;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-arrow:hover {
    background: #333;
    transform: scale(1.1);
}

/* Fighter Betting Styles */
.fighter-betting {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.bet-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bet-input {
    flex: 1;
    padding: 8px 12px;
    background: #000;
    border: 1px solid #555;
    color: #fff;
    font-family: 'Times New Roman', serif;
    font-size: 0.9em;
    border-radius: 3px;
}

.bet-input:focus {
    outline: none;
    border-color: #4A90E2;
}

.bet-input::placeholder {
    color: #888;
}

.bet-button {
    padding: 8px 16px;
    background: #4A90E2;
    color: #000;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Times New Roman', serif;
    font-size: 0.85em;
    border-radius: 3px;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bet-button:hover {
    background: #357ABD;
}

.fighter-bet-placed {
    margin-top: 15px;
    padding: 10px;
    background: #1a4a1a;
    border: 1px solid #4a8f4a;
    border-radius: 4px;
    text-align: center;
}

.bet-amount {
    font-weight: bold;
    color: #8fdf8f;
    font-size: 1.1em;
}

.bet-label {
    font-size: 0.7em;
    color: #8fdf8f;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.betting-info-bar {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    color: #888;
    font-size: 0.85em;
    font-style: italic;
}

/* Update existing betting section styles */
.betting-section {
    margin: 30px 0;
    padding: 25px;
    border: 2px solid #ffffff;
    background: #000;
    border-radius: 8px;
}

.betting-section h4 {
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.3rem;
}

.all-bets-section h5 {
    margin: 0 0 15px 0;
    color: #ffaa00;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.betting-status {
    text-align: center;
    padding: 30px 20px;
    color: #888;
    font-style: italic;
    line-height: 1.5;
    font-size: 1.1rem;
}

.all-bets-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.bets-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #333;
    background: #111;
    border-radius: 4px;
}

.bet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin: 0;
    background: #111;
    border-bottom: 1px solid #222;
    transition: background 0.2s;
}

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

.bet-item:hover {
    background: #1a1a1a;
}

.bet-item.user-bet {
    background: #1a1a0a;
    border-left: 3px solid #ffaa00;
}

.bet-item.user-bet:hover {
    background: #222208;
}

.better-name {
    font-weight: bold;
    font-size: 0.95em;
}

.bet-details {
    color: #ccc;
    font-size: 0.9em;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fight-container {
        padding: 15px;
    }
    
    .matchup-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vs-section {
        order: -1;
    }
    
    .fight-meta {
        grid-template-columns: 1fr;
    }
    
    .fight-title {
        font-size: 1.8rem;
    }
    
    .vs-text {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .fight-nav-left,
    .fight-nav-right {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .fight-nav-left {
        left: 10px;
    }

    .fight-nav-right {
        right: 10px;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
} 