/* Custom styles - Dark Theme */
body {
    background-color: #1a1a1a;
    font-family: 'Arial Black', sans-serif;
    color: #e0e0e0;
}

/* Navbar styling */
.navbar {
    background-color: #2d2d2d !important;
}

.navbar-brand,
.navbar-nav .nav-link {
    color: #e0e0e0 !important;
}

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

.navbar-toggler {
    border-color: #555;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28224, 224, 224, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Alerts */
.alert-info {
    background-color: #2c5282;
    border-color: #3182ce;
    color: #bee3f8;
}

/* Form elements */
.form-control {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e0e0e0;
}

.form-control:focus {
    background-color: #2d3748;
    border-color: #63b3ed;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.2rem rgba(99, 179, 237, 0.25);
}

.form-label {
    color: #e0e0e0;
}

.form-select {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e0e0e0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e0e0e0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.form-select:focus {
    background-color: #2d3748;
    border-color: #63b3ed;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.2rem rgba(99, 179, 237, 0.25);
}

.form-check-label {
    color: #e0e0e0;
}

/* Buttons */
.btn-primary {
    background-color: #3182ce;
    border-color: #3182ce;
}

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

.btn-success {
    background-color: #38a169;
    border-color: #38a169;
}

.btn-success:hover {
    background-color: #2f855a;
    border-color: #2f855a;
}

.btn-danger {
    background-color: #e53e3e;
    border-color: #e53e3e;
}

.btn-danger:hover {
    background-color: #c53030;
    border-color: #c53030;
}

.btn-outline-success {
    color: #38a169;
    border-color: #38a169;
}

.btn-outline-success:hover {
    background-color: #38a169;
    border-color: #38a169;
    color: #fff;
}

.btn-outline-danger {
    color: #e53e3e;
    border-color: #e53e3e;
}

.btn-outline-danger:hover {
    background-color: #e53e3e;
    border-color: #e53e3e;
    color: #fff;
}

/* Badges */
.badge.small {
    margin-left: 3px;
    padding: 0.1em 0.3em;
    font-size: 0.5em;
}

.badge.bg-danger {
    background-color: #e53e3e !important;
    text-shadow: 0 0 5px #e53e3e;
    box-shadow: 0 0 10px #e53e3e;
}

.badge.bg-success {
    background-color: #38a169 !important;
    text-shadow: 0 0 5px #38a169;
    box-shadow: 0 0 10px #38a169;
}

.badge.bg-warning {
    background-color: #d69e2e !important;
    color: #ffffff !important;
    text-shadow: 0 0 5px #d69e2e;
    box-shadow: 0 0 10px #d69e2e;
}

.badge.bg-toxic {
    background-color: #39ff14 !important;
    color: #ffffff !important;
    text-shadow: 0 0 5px #39ff14;
    box-shadow: 0 0 10px #39ff14;
}

.badge.bg-private {
    background-color: #6b7280 !important;
    color: #ffffff !important;
    text-shadow: 0 0 5px #6b7280;
    box-shadow: 0 0 10px #6b7280;
}

.badge.bg-trusted {
    background-color: #6db5d6 !important;
    color: #ffffff !important;
    text-shadow: 0 0 5px #6db5d6;
    box-shadow: 0 0 10px #6db5d6;
}

.badge.bg-veteran {
    background-color: #8b5cf6 !important;
    color: #ffffff !important;
    text-shadow: 0 0 5px #8b5cf6;
    box-shadow: 0 0 10px #8b5cf6;
}

.badge.bg-sponsor {
    background-color: #06b6d4 !important;
    color: #ffffff !important;
    text-shadow: 0 0 5px #06b6d4;
    box-shadow: 0 0 10px #06b6d4;
}

/* Cards */
.card {
    border-radius: 10px;
    background-color: #2d3748;
    border-color: #4a5568;
}

.card-body {
    color: #e0e0e0;
}

.card .shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5) !important;
}

/* List groups */
.list-group-item {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e0e0e0;
}

.list-group-item:first-child {
    border-top-color: #4a5568;
}

.list-group-item:last-child {
    border-bottom-color: #4a5568;
}

.list-group-item i {
    margin-right: 10px;
}

.list-group-item a {
    color: #63b3ed;
    text-decoration: none;
}

.list-group-item a:hover {
    color: #90cdf4;
    text-decoration: underline;
}

/* Tables */
.table {
    color: #e0e0e0;
}

.table th {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e0e0e0;
}

.table td {
    background-color: #1a1a1a;
    border-color: #4a5568;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #2d3748;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #e0e0e0;
}

/* Links */
a {
    color: #63b3ed;
}

a:hover {
    color: #90cdf4;
}

/* TF2 Font styling */
.tf2-font {
    font-family: 'TF2 Build', sans-serif;
    color: #fff;
    text-shadow: 2px 2px 4px #000;
}

/* Class cards */
.class-card {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #4a5568;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.class-card:hover {
    transform: scale(1.02);
}

.text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    transform: translateY(calc(100% - 50px));
    height: auto;
    min-height: 50px;
}

.class-card:hover .text-overlay {
    transform: translateY(0);
}

.text-overlay h5 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #fff;
    font-weight: bold;
}

.text-overlay p {
    margin: 2px 0;
    font-size: 0.85em;
    color: #e0e0e0;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.class-card:hover .text-overlay p {
    opacity: 1;
}

.text-overlay p:first-of-type {
    opacity: 1;
}

/* Profile image styling */
.img-fluid.rounded-circle {
    border: 3px solid #4a5568;
}

/* Vote buttons styling */
.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #38a169, #2f855a);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    border: none;
}

/* Admin panel improvements */
.alert-info {
    background: linear-gradient(135deg, #2c5282, #1a365d);
    border: 1px solid #3182ce;
    color: #bee3f8;
    border-radius: 8px;
    padding: 15px 20px;
}

.form-check-inline {
    margin-right: 15px;
    margin-bottom: 10px;
}

.form-check-input:checked {
    background-color: #63b3ed;
    border-color: #63b3ed;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
    border-radius: 6px;
    margin: 2px;
}

/* Votes management styling */
.votes-form {
    background: rgba(45, 55, 72, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.votes-form .form-control {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
}

.votes-form .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.reset-stats-btn {
    background: linear-gradient(135deg, #d69e2e, #b7791f);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-stats-btn:hover {
    background: linear-gradient(135deg, #b7791f, #975a16);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.votes-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.votes-input-group .form-control {
    flex: 1;
    min-width: 0;
}

/* Hero section styling */
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 50%, #1a1a1a 100%);
    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="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.text-gradient {
    background: linear-gradient(135deg, #63b3ed, #90cdf4, #63b3ed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(99, 179, 237, 0.5);
}

.hero-buttons .btn {
    margin: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

/* Search section */
.search-section {
    background: transparent;
}

.search-form .form-control {
    border: 2px solid #4a5568;
    transition: all 0.3s ease;
}

.search-form .form-control:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 0.2rem rgba(99, 179, 237, 0.25);
}

/* Feature cards */
.feature-card {
    background: linear-gradient(135deg, #2d3748, #1a1a1a);
    border: 1px solid #4a5568;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: #63b3ed;
}

.feature-icon {
    font-size: 3rem;
    opacity: 0.8;
}

/* Badge grid */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.badge-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2d3748, #1a1a1a);
    border: 1px solid #4a5568;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.badge-item:hover {
    transform: scale(1.05);
    border-color: #63b3ed;
}

.badge-item .badge {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.badge-item p {
    margin: 0;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Stats section */
.stats-section {
    background: transparent;
}

.stat-card {
    padding: 2rem;
    background: linear-gradient(135deg, #2d3748, #1a1a1a);
    border: 1px solid #4a5568;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #63b3ed;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #a0aec0;
    font-size: 1.1rem;
    margin: 0;
}

/* About and Privacy pages */
.badge-explanation {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(45, 55, 72, 0.5);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.badge-explanation .badge {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.step-card {
    padding: 2rem;
    background: linear-gradient(135deg, #2d3748, #1a1a1a);
    border: 1px solid #4a5568;
    border-radius: 15px;
    height: 100%;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    border-color: #63b3ed;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #63b3ed, #3182ce);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .badge-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card, .step-card {
        margin-bottom: 1rem;
    }
}

/* Changelog content styling */
.changelog-content {
    line-height: 1.6;
}

.changelog-content h1, .changelog-content h2, .changelog-content h3,
.changelog-content h4, .changelog-content h5, .changelog-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.changelog-content p {
    margin-bottom: 1rem;
}

.changelog-content ul, .changelog-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.changelog-content li {
    margin-bottom: 0.5rem;
}

.changelog-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
}

.changelog-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.changelog-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
    color: #6c757d;
}