/* Custom styles for BeatBox */

/* YouTube container improvements */
.youtube-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Game card animations */
.game-card {
    transition: all 0.3s ease;
    border: none;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Hero section gradient - now handled by theme system */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none; /* Allow clicks to pass through the overlay */
    z-index: -1; /* Ensure it stays behind the content */
}

/* Progress bar improvements */
.progress {
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Badge improvements */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Custom purple badge for Accuracy column */
.badge-purple {
    background-color: #6f42c1;
    color: white;
}

.badge-purple:hover {
    background-color: #5a32a3;
    color: white;
}

/* Button improvements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Table improvements */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    border-bottom: none;
    font-weight: 600;
}

/* Alert improvements */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form improvements */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Navigation improvements */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
}

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

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success animation */
.success-checkmark {
    color: #28a745;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* GOAT Emoji Styling */
.goat-emoji {
    font-size: 1.5rem;
    margin-right: 0.25rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.goat-emoji:hover {
    transform: scale(1.1);
}

.goat-brown {
    filter: sepia(1) saturate(1.5) hue-rotate(30deg) brightness(0.8);
}

.goat-silver {
    filter: sepia(0.3) saturate(0.5) hue-rotate(200deg) brightness(1.2) contrast(1.2);
}

.goat-gold {
    filter: sepia(1) saturate(1.5) hue-rotate(45deg) brightness(1.2);
}

.goat-diamond {
    filter: sepia(0.2) saturate(2) hue-rotate(240deg) brightness(1.5) contrast(1.3);
}

.goat-rainbow {
    animation: rainbow 2s linear infinite;
}

.goat-black {
    filter: sepia(0.5) saturate(2) hue-rotate(120deg) brightness(0.3) contrast(2);
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Trophy/Award Icon Styling */
.trophy-emoji, .award-emoji, .medal-emoji {
    font-size: 1.5rem;
    margin-right: 0.25rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.trophy-emoji:hover, .award-emoji:hover, .medal-emoji:hover {
    transform: scale(1.1);
}

.trophy-bronze, .award-bronze, .medal-bronze {
    color: #cd7f32;
}

.trophy-silver, .award-silver, .medal-silver {
    color: #c0c0c0;
}

.trophy-gold, .award-gold, .medal-gold {
    color: #d4af37;
}

.trophy-platinum, .award-platinum, .medal-platinum {
    color: #e5e4e2;
}

.trophy-diamond, .award-diamond, .medal-diamond {
    color: #b9f2ff;
    text-shadow: 0 0 5px rgba(185, 242, 255, 0.5);
}

.trophy-rainbow, .award-rainbow, .medal-rainbow {
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-text 3s linear infinite;
}

@keyframes rainbow-text {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Stat Cards - Used in Statistics and Awards sections */
.stat-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.stat-card h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Award Cards - Detailed Style matching wireframe */
.award-card {
    background: #1a1a1a !important;
    border: 3px solid #ff0000 !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 280px;
    display: flex;
    flex-direction: column;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 1rem;
}

.award-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.award-card.selected {
    border-color: #ffc107;
    border-top: 4px solid #ffc107;
}

.award-header {
    background: transparent;
    color: #fff;
    padding: 1rem 1rem 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.award-title {
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    flex: 1;
}

.award-progress {
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 500;
    background: transparent;
    padding: 0;
}

.award-body {
    padding: 0 1rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.award-description {
    color: #fff !important;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    text-align: center;
}

.award-icon {
    text-align: center;
    margin: 1rem 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-icon i {
    font-size: 3rem;
    color: #9d4edd !important;
}

.award-icon .fas {
    color: #9d4edd !important;
}

.award-quote {
    color: #fff !important;
    font-style: italic;
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.3;
    margin-top: auto;
    padding: 0.5rem 0;
}

/* Legacy Achievement Cards (keeping for other uses) */
.achievement-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #666;
}

.achievement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.achievement-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.achievement-progress {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.achievement-description {
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.achievement-icon {
    text-align: center;
    margin: 1rem 0;
}

.achievement-quote {
    color: #999;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    border-left: 3px solid #444;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
}

.achievement-tooltip {
    position: relative;
    cursor: help;
}

.achievement-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: pre-line;
    z-index: 1000;
    margin-bottom: 0.5rem;
    text-align: center;
    min-width: 120px;
}

.achievement-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #000;
    margin-bottom: -5px;
} 