/* TikiStats Annotation-Specific Styles */

/* ========================================
   STEP INDICATOR (Wizard Flow)
   Used in: team selection, player selection, parameters
   ======================================== */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 10px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
    color: var(--color-green);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active .step-number,
.step.completed .step-number {
    background: var(--color-green);
    color: var(--color-dark);
}

/* ========================================
   SELECTION CARDS (Team/Player Selection)
   Base styles for selectable cards
   ======================================== */
.selection-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 2px solid rgba(128, 218, 71, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.selection-card:hover {
    border-color: var(--color-green);
    box-shadow: 0 8px 25px rgba(128, 218, 71, 0.2);
    transform: translateY(-3px);
}

.selection-card.selected {
    border-color: var(--color-green);
    background: linear-gradient(135deg, rgba(128, 218, 71, 0.1) 0%, rgba(28, 194, 148, 0.1) 100%);
    box-shadow: 0 8px 25px rgba(128, 218, 71, 0.3);
}

/* Team-specific selection card */
.team-card {
    height: 200px;
    padding: 30px;
}

/* Player-specific selection card */
.player-card {
    height: 180px;
    padding: 20px;
}

/* Unavailable/disabled state */
.selection-card.unavailable,
.unavailable-player {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #3a3a3a 0%, #2f2f2f 100%);
}

.selection-card.unavailable:hover,
.unavailable-player:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(128, 218, 71, 0.2);
}

/* ========================================
   LOGOS & AVATARS
   Team logos, player avatars, placeholders
   ======================================== */
.team-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 50%;
    border: 3px solid rgba(128, 218, 71, 0.3);
    background: #fff;
    padding: 5px;
}

.team-placeholder,
.player-jersey {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-green), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-dark);
}

/* Smaller player jersey variant */
.player-jersey {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* Player avatar (smaller) */
.player-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-green), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-dark);
    font-size: 1.2rem;
}

/* ========================================
   INFO BANNERS & CARDS
   Colored info cards and banners
   ======================================== */
.annotation-info-card,
.team-banner {
    background: linear-gradient(135deg, var(--color-dark-green), var(--color-accent));
    color: var(--color-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.match-info-card {
    background: linear-gradient(135deg, var(--color-dark-green) 0%, var(--color-accent) 100%);
    border: none;
    color: var(--color-light);
}

.annotation-card {
    background: linear-gradient(135deg, var(--color-dark) 0%, #1f1f1f 100%);
    border: 1px solid rgba(128, 218, 71, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.annotation-card:hover {
    border-color: var(--color-green);
    box-shadow: 0 4px 20px rgba(128, 218, 71, 0.1);
}

/* ========================================
   STATUS INDICATORS
   Status colors for annotations
   ======================================== */
.status-completed {
    color: var(--color-green);
}

.status-in-progress {
    color: #ffc107;
}

.status-not-started {
    color: #6c757d;
}

/* ========================================
   BUTTONS
   Annotation-specific buttons
   ======================================== */
.btn-add-annotation {
    background: linear-gradient(135deg, var(--color-green), var(--color-accent));
    border: none;
    color: var(--color-dark);
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-add-annotation:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-dark-green));
    color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 194, 148, 0.3);
}

/* ========================================
   BADGES
   Annotation-specific badges
   ======================================== */
.frame-interval-badge {
    background-color: rgba(128, 218, 71, 0.2);
    color: var(--color-green);
    border: 1px solid rgba(128, 218, 71, 0.3);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* ========================================
   PARAMETER CONTROLS
   Used in: annotation parameter settings
   ======================================== */
.parameter-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid rgba(128, 218, 71, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.parameter-input {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    background: rgba(128, 218, 71, 0.1);
    border: 2px solid rgba(128, 218, 71, 0.3);
    color: var(--color-green);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 200px;
    margin: 20px auto;
}

.parameter-input:focus {
    background: rgba(128, 218, 71, 0.15);
    border-color: var(--color-green);
    box-shadow: 0 0 0 0.2rem rgba(128, 218, 71, 0.25);
    color: var(--color-green);
    outline: none;
}

.calculation-result {
    background: rgba(128, 218, 71, 0.1);
    border: 1px solid rgba(128, 218, 71, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.match-info-banner {
    background: linear-gradient(135deg, var(--color-dark-green), var(--color-accent));
    color: var(--color-light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

/* ========================================
   SETUP COMPLETION SUMMARY
   Used in: setup_completed page
   ======================================== */
.success-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-green), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon i {
    font-size: 60px;
    color: var(--color-dark);
}

.summary-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(128, 218, 71, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.summary-card:hover {
    border-color: var(--color-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 218, 71, 0.2);
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--color-dark-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-green);
    font-size: 24px;
    margin-right: 15px;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(128, 218, 71, 0.1);
    border: 1px solid rgba(128, 218, 71, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    margin: 5px;
    color: var(--color-light);
}

.stat-badge i {
    margin-right: 8px;
    color: var(--color-green);
}

.action-card {
    background: linear-gradient(135deg, rgba(128, 218, 71, 0.1), rgba(28, 194, 148, 0.1));
    border: 2px solid var(--color-green);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(128, 218, 71, 0.3);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 45px;
    width: 2px;
    height: calc(100% + 20px);
    background: linear-gradient(180deg, var(--color-green), transparent);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-green);
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.timeline-content {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(128, 218, 71, 0.2);
}

.btn-start-annotation {
    background: linear-gradient(135deg, var(--color-green), var(--color-accent));
    border: none;
    color: var(--color-dark);
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-start-annotation:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(128, 218, 71, 0.4);
    color: var(--color-dark);
}
