/* Valorant Matchup Assistant - Custom Styles */

:root {
    --valorant-red: #FF4655;
    --valorant-dark: #0F1923;
    --valorant-light: #ECE8E1;
}

/* General */
body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    color: var(--valorant-red) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--valorant-dark) 0%, #1a2634 100%);
    border-bottom: 3px solid var(--valorant-red);
}

.hero h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Agent Selection Grid */
.agent-select {
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    opacity: 0.7;
    text-align: center;
}

.agent-select:hover {
    opacity: 1;
    background: rgba(0,0,0,0.05);
    transform: scale(1.05);
}

.agent-select.selected {
    opacity: 1;
    background: var(--valorant-red);
    color: white;
}

.agent-select.selected small {
    color: white !important;
}

.agent-select img {
    width: 100%;
    max-width: 50px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 4px;
}

.agent-select small {
    font-size: 0.7rem;
    display: block;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Recommendation Cards */
.recommendation-card {
    border-left: 4px solid #28a745;
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}

.recommendation-card:hover {
    transform: translateX(4px);
}

.recommendation-card .agent-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

/* Matchup Colors */
.matchup-good {
    color: #28a745;
    font-weight: 600;
}

.matchup-bad {
    color: #dc3545;
    font-weight: 600;
}

.matchup-neutral {
    color: #6c757d;
}

/* Matchup Grid Table */
.matchup-grid {
    font-size: 0.75rem;
}

.matchup-grid th,
.matchup-grid td {
    padding: 4px 6px;
    text-align: center;
    vertical-align: middle;
    min-width: 50px;
}

.matchup-grid th {
    background: var(--valorant-dark);
    color: white;
    font-weight: 500;
}

.matchup-grid .vertical-header {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    height: 100px;
    white-space: nowrap;
}

.matchup-grid td.positive {
    background-color: rgba(40, 167, 69, 0.3);
}

.matchup-grid td.strong-positive {
    background-color: #28a745;
    color: white;
}

.matchup-grid td.negative {
    background-color: rgba(220, 53, 69, 0.3);
}

.matchup-grid td.strong-negative {
    background-color: #dc3545;
    color: white;
}

/* Stats Boxes */
.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--valorant-red);
    margin-bottom: 0;
}

.stat-box p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Score Badge */
.score-badge {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.score-high {
    background-color: #28a745;
    color: white;
}

.score-medium {
    background-color: #6c757d;
    color: white;
}

.score-low {
    background-color: #dc3545;
    color: white;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--valorant-red);
    box-shadow: 0 0 0 0.2rem rgba(255, 70, 85, 0.25);
}

/* Button Styles */
.btn-primary {
    background-color: var(--valorant-red);
    border-color: var(--valorant-red);
}

.btn-primary:hover {
    background-color: #e63946;
    border-color: #e63946;
}

.btn-primary:focus {
    background-color: var(--valorant-red);
    border-color: var(--valorant-red);
    box-shadow: 0 0 0 0.2rem rgba(255, 70, 85, 0.5);
}

/* Tooltips */
[data-bs-toggle="tooltip"] {
    cursor: help;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .agent-select img {
        max-width: 40px;
    }

    .agent-select small {
        font-size: 0.6rem;
    }

    .matchup-grid {
        font-size: 0.65rem;
    }

    .matchup-grid th,
    .matchup-grid td {
        padding: 2px 4px;
        min-width: 40px;
    }

    .stat-box h3 {
        font-size: 1.8rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Alert Customization */
.alert {
    border: none;
    border-radius: 8px;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
