/* player.css — extracted from player.php.
   Was 12 inline <style> block(s) totalling 11688 chars, re-emitted after the page load
   and rewritten onto the design tokens in professional.css. */

body {background: var(--color-bg-base);
            /* Gradient background based on logo colors */
            color: var(--color-text-primary);
        }

        
        .player-portrait img {
            width: 300px;
            height: auto;
            border-radius: 50%;
            border: 1px solid var(--color-accent-gold);
            margin-bottom: 15px;
        }
        .player-header {
            text-align: center;
            margin-bottom: 30px;
        }
        .player-header h1 {
            font-size: 32px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        .player-header p {
            font-size: 18px;
            color: var(--color-accent-gold);
        }
        .stats-card {
            background-color: var(--color-bg-card);
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
            margin-bottom: 20px;
        }
        .stats-card h3 {
            color: var(--color-accent-gold);
        }
        
        table th, table td {
            border: 1px solid var(--color-accent-gold);
            padding: 10px;
            text-align: center;
        }
        table th {
            background-color: var(--color-accent-blue);
        }
        .graph-container {
            background-color: var(--color-bg-card);
            border-radius: 8px;
            padding: 20px;
            text-align: center;
        }
        .graph-placeholder {
            height: 300px;
            border: 2px dashed var(--color-accent-gold);
            display: flex;
            justify-content: center;
            align-items: center;
            color: var(--color-accent-gold);
            font-size: 20px;
        }

/* Styling for loaders */
        .loader {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100px;
        }
        .loader span {
            width: 20px;
            height: 20px;
            margin: 5px;
            background-color: var(--color-accent-gold);
            border-radius: 50%;
            animation: bounce 0.6s infinite alternate;
        }
        .loader span:nth-child(2) {
            animation-delay: 0.2s;
        }
        .loader span:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes bounce {
            to {
                opacity: 0.3;
                transform: translateY(-20px);
            }
        }

        /* Content areas */
        .content-area {
            min-height: 150px;
            margin-bottom: 20px;
            padding: 20px;
            border: 1px solid var(--color-accent-gold);
            border-radius: 5px;
            background-color: var(--color-bg-secondary);
            color: var(--color-text-primary);
        }

.graph-container label {
        font-size: 16px;
        color: var(--color-text-primary);
        margin-right: 10px;
    }
    #alt-line {
        width: 100%;
        margin: 10px 0;
    }
    .graph-container button {
        background-color: var(--color-accent-blue);
        color: var(--color-text-primary);
        border: none;
        padding: 5px 10px;
        margin: 5px;
        border-radius: 50px;
        cursor: pointer;
    }
    .graph-container button:hover {
        background-color: var(--color-bg-secondary);
    }

/* Custom game details popup - no Bootstrap Modal dependency */
        .game-details-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }
        .game-details-overlay.active {
            display: flex;
        }
        .game-details-popup {
            background-color: #343a40;
            color: var(--color-text-primary);
            border-radius: 10px;
            max-width: 500px;
            width: 90%;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        }
        .game-details-popup-header {
            background-color: var(--color-border-default);
            color: var(--color-text-primary);
            padding: 15px 20px;
            border-radius: 10px 10px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .game-details-popup-header h5 { margin: 0; }
        .game-details-popup-close {
            background: none;
            border: none;
            color: var(--color-text-primary);
            font-size: 1.5rem;
            cursor: pointer;
            line-height: 1;
            padding: 0 5px;
            opacity: 0.7;
        }
        .game-details-popup-close:hover { opacity: 1; }
        .game-details-popup-body { padding: 20px; }
        .game-details-popup-footer {
            background-color: var(--color-border-default);
            padding: 12px 20px;
            border-radius: 0 0 10px 10px;
            text-align: right;
        }
        .game-details-popup-footer button {
            background-color: var(--color-text-muted);
            border: 1px solid var(--color-text-muted);
            color: var(--color-text-primary);
            padding: 6px 16px;
            border-radius: 5px;
            cursor: pointer;
        }
        .game-details-popup-footer button:hover {
            background-color: #5a6268;
        }

.table-responsive {
        overflow-x: auto; /* Enable horizontal scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling for mobile devices */
    }
    
    .table-responsive table {
        width: 100%; /* Ensure the table stretches horizontally if needed */
        border-collapse: collapse; /* Standardize table layout */
    }
    
    table th, table td {
        white-space: nowrap; /* Prevent text wrapping in cells */
        text-align: left; /* Align text to the left */
        padding: 8px; /* Add some spacing */
        border: 1px solid #ddd; /* Optional: add borders for better readability */
    }
    
    .stats-card h3 {
        margin-bottom: 10px; /* Adjust spacing for the heading */
    }

.projbutt button {
            background-color: var(--color-accent-blue);
            color: var(--color-text-primary);
            border: none;
            margin: 1px;
            border-radius: 50px;
            cursor: pointer;
            padding: 10px 10px;
            font-size: 14px;
        }
        .projbutt button:hover {
            background-color: var(--color-bg-secondary);
        }

/* Container for the stats blocks */
.stats-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
}

/* Individual stat block */
.stat-block {
    text-align: center;
}

/* Label styling */
.stat-block .label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Value styling */
.stat-block .value {
    font-size: 18px;
    color: var(--color-bg-secondary);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stat-block .value span {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: normal;
}

/* Divider between blocks */
.divider {
    width: 1px;
    height: 50px;
    background-color: #dee2e6;
}

/* ---------- STATUS ICON STYLES ---------- */

/* Base style */
.status-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: relative;
}

/* Success ✅ (green checkmark) */
.status-icon.success {
    background-color: var(--color-win);
}
.status-icon.success::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 6px;
    width: 6px;
    height: 12px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(45deg);
}

/* Failure ❌ (red cross) */
.status-icon.error {
    background-color: var(--color-loss);
}
.status-icon.error::before,
.status-icon.error::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 9px;
    width: 2px;
    height: 12px;
    background-color: #fff;
}
.status-icon.error::before {
    transform: rotate(45deg);
}
.status-icon.error::after {
    transform: rotate(-45deg);
}

/* Unknown ? (gray question mark) */
.status-icon.unknown {
    background-color: var(--color-text-muted);
}
.status-icon.unknown::before {
    content: '?';
    position: absolute;
    top: 0;
    left: 6px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

/* Small text beside icon */
.status-text {
    font-size: 14px;
    color: var(--color-bg-secondary);
    font-weight: 500;
}

.filters-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        gap: 20px;
    }
    
    .filters-container label {
        font-size: 14px;
        font-weight: bold;
        margin-right: 5px;
    }
    
    .dropdown {
        padding: 5px;
        font-size: 14px;
        border-radius: 5px;
        border: 1px solid #ccc;
    }
    
    .apply-button {
        background-color: #333;
        color: var(--color-text-primary);
        padding: 8px 15px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-weight: bold;
    }
    
    .apply-button:hover {
        background-color: #555;
    }

.scroll-container {
          display: flex;
          gap: 1rem;
          overflow-x: auto;
          padding: 1rem 0;
          scroll-snap-type: x mandatory;
          -webkit-overflow-scrolling: touch; /* Smooth on iOS */
        }
        
        .card-item {
          flex: 0 0 auto;
          width: 150px; /* Adjust based on your design */
          scroll-snap-align: start;
          display: flex;
          flex-direction: column;
          align-items: center;
        }
        
        .card-photo {
          width: 100%;
          border-radius: 0.5rem;
          object-fit: cover;
        }
        
        .card-button {
          display: inline-block; /* a tags are inline by default, this helps */
          text-align: center;
          margin-top: 0.5rem;
          padding: 0.5rem 1rem;
          border: none;
          background-color: #3490dc;
          color: var(--color-text-primary);
          border-radius: 0.25rem;
          cursor: pointer;
          font-size: 1rem;
          text-decoration: none; /* remove underline */
        }
        
        .card-button:hover {
          background-color: #2779bd;
        }

.share-button {
  border: none;
  background: transparent; /* removes default button background */
  padding: 0;             /* optional: remove default padding if needed */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.share-button:hover {
}

.favourite-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  background: #1e1e1e;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 15px;
  opacity: 0;
  animation: fadeInOut 2s forwards;
}
@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, 20px); }
  20% { opacity: 1; transform: translate(-50%, 0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 20px); }
}

.star-icon {
font-size: 24px;
color: #ccc;
cursor: pointer;
transition: color 0.3s ease;
}

.star-icon.full {
color: gold;
}

.star-icon:hover {
color: #f1c40f;
}
