/* Custom styles for AoC Mainframers */

:root {
    --primary-red: rgba(162, 25, 26, 1);
    --dark-gray: rgba(26, 26, 26, 1);
    --link-blue: rgba(17, 0, 181, 1);
}

body {
    background-color: #ffffff;
    font-family: Montserrat, Inter, Nunito, Helvetica, Arial, sans-serif;
    color: var(--dark-gray);
}

a {
    color: var(--link-blue);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c41e1e 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Navbar styling */
.navbar {
    background-color: var(--dark-gray) !important;
    min-height: 72px;
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    transition: color 0.2s ease, opacity 0.2s ease;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    opacity: 1;
}

.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card-sm {
    font-size: 0.875rem;
}

.card-sm .card-body {
    padding: 0.75rem;
}

/* Progress grid for dashboard */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.day-progress {
    text-align: center;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.day-progress.completed {
    border-color: #28a745;
    background: #f8fff9;
}

.day-number {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.parts {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.part {
    color: #dee2e6;
    font-size: 1.2rem;
}

.part.completed {
    color: #ffc107;
}

/* Chat styles */
.message {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid #e9ecef;
}

.message.own-message {
    background: #e3f2fd;
    border-color: #bbdefb;
}

.message-text {
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Sponsor styles */
.sponsor-logo {
    max-height: 100px;
    max-width: 200px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.prize-image {
    max-height: 50px;
    max-width: 50px;
    object-fit: contain;
}

.prize-item {
    display: flex;
    align-items: center;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 5px;
}

/* Countdown styles */
#countdown small {
    font-size: 0.6em;
    color: #6c757d;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .progress-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .hero-section {
        padding: 2rem 1rem !important;
    }

    .hero-section h1 {
        font-size: 2rem !important;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }
}

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

.btn-primary {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

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

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(162, 25, 26, 0.25);
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Alert improvements */
.alert {
    border-radius: 10px;
    border: none;
}

/* Table improvements */
.table {
    background: white;
}

.table th {
    border-top: none;
    background: #f8f9fa;
    font-weight: 600;
}

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

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(162, 25, 26, 0.25);
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Badge improvements */
.badge {
    font-size: 0.8em;
    border-radius: 6px;
}
/* Year Selector Bar */
.year-selector-bar {
    background: linear-gradient(90deg, var(--primary-red) 0%, #c41e1e 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.year-selector-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.year-selector-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.year-selector-btn.active {
    background-color: white;
    color: var(--primary-red);
    border-color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.year-selector-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
}

.year-selector-btn.loading {
    opacity: 0.6;
    cursor: wait;
}

.year-selector-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
