/* Cards */
.card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--neon-glow) rgba(0, 255, 136, 0.2);
}

.card-body {
    padding: 2rem;
}

@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
}

/* Weapon Progression */
.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 576px) {
    .weapon-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.5rem;
    }
}

.weapon-item {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.weapon-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.weapon-level {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.weapon-name {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    color: var(--text-primary);
    margin-top: 0.5rem;
}

/* Leaderboard */
.leaderboard {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.leaderboard-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    padding: 1rem 2rem;
    font-weight: 700;
}

.player-row {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.player-row:hover {
    background: rgba(0, 255, 136, 0.1);
}

.player-rank {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 50px;
    flex-shrink: 0;
}

.player-name {
    flex: 1;
    font-weight: 600;
    margin-left: 1rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-stats {
    display: flex;
    gap: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .player-row {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }

    .player-stats {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.8rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    .leaderboard-header {
        padding: 1rem;
    }
}

/* Tournament Cards */
.tournament-card {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 102, 255, 0.1));
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-glow) rgba(0, 255, 136, 0.3);
}

.tournament-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.status-upcoming {
    background: linear-gradient(135deg, var(--accent-color), #ff9900);
    color: var(--dark-bg);
}

.status-active {
    background: linear-gradient(135deg, var(--primary-color), #00cc66);
    color: var(--dark-bg);
}

/* Maps Grid */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 576px) {
    .maps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.map-card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.map-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.map-image {
    height: 200px;
    background: linear-gradient(135deg, var(--dark-surface), var(--dark-card));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 3rem;
}

.map-info {
    padding: 1.5rem;
}

.map-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.map-stats {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Blog Cards */
.blog-card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.blog-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Video Cards */
.video-card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--neon-glow) rgba(0, 255, 136, 0.2);
}

.video-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
}

.video-thumbnail {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: #1a1a2e;
    background-image: linear-gradient(45deg, #1a1a2e 25%, #2d2d5e 25%, #2d2d5e 50%, #1a1a2e 50%, #1a1a2e 75%, #2d2d5e 75%, #2d2d5e);
    background-size: 40px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    /* Ensure consistent height */
}

.video-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    display: block;
    background-color: #1a1a2e;
    /* Fallback while loading */
}

/* Loading state */
.video-thumbnail-img[src=""],
.video-thumbnail-img:not([src]) {
    opacity: 0.5;
}

.video-card:hover .video-thumbnail-img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
    /* Ensure overlay is above fallback icon */
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: var(--neon-glow) rgba(0, 255, 136, 0.5);
}

.video-content {
    padding: 1.5rem;
}

.video-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.video-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.video-category {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.75rem;
}

.video-views {
    font-size: 0.75rem;
}

/* Gallery Cards */
.gallery-card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--neon-glow) rgba(0, 255, 136, 0.2);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 180px;
    width: 100%;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay-content {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.gallery-overlay-content:hover {
    transform: scale(1.2);
}

.gallery-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gallery-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.gallery-category {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    white-space: nowrap;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-card));
    border-top: 2px solid var(--primary-color);
    padding: 3rem 0 1rem;
}

.footer-section h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--text-secondary);
    margin-right: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* Responsive Design Improvements */
@media (max-width: 1200px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .weapon-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .maps-grid {
        grid-template-columns: 1fr;
    }

    .gallery-image-wrapper {
        height: 160px;
    }

    .gallery-content {
        padding: 0.75rem;
    }

    .gallery-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 1;
    }

    .gallery-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-image-wrapper {
        height: 140px;
    }

    .gallery-content {
        padding: 0.5rem;
    }

    .gallery-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .gallery-description {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .gallery-meta {
        font-size: 0.7rem;
    }

    .gallery-category {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .tournament-card {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .gallery-image-wrapper {
        height: 200px;
    }
}

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

.gallery-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.gallery-category {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    white-space: nowrap;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-card));
    border-top: 2px solid var(--primary-color);
    padding: 3rem 0 1rem;
}

.footer-section h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--text-secondary);
    margin-right: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* Responsive Design Improvements */
@media (max-width: 1200px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .weapon-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .maps-grid {
        grid-template-columns: 1fr;
    }

    .gallery-image-wrapper {
        height: 160px;
    }

    .gallery-content {
        padding: 0.75rem;
    }

    .gallery-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 1;
    }

    .gallery-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-image-wrapper {
        height: 140px;
    }

    .gallery-content {
        padding: 0.5rem;
    }

    .gallery-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .gallery-description {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .gallery-meta {
        font-size: 0.7rem;
    }

    .gallery-category {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .tournament-card {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .gallery-image-wrapper {
        height: 200px;
    }
}

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

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

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

align-items: center;
font-size: 0.75rem;
color: var(--text-secondary);
margin-top: auto;
}

.gallery-category {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    white-space: nowrap;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-card));
    border-top: 2px solid var(--primary-color);
    padding: 3rem 0 1rem;
}

.footer-section h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--text-secondary);
    margin-right: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* Responsive Design Improvements */
@media (max-width: 1200px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .weapon-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .maps-grid {
        grid-template-columns: 1fr;
    }

    .gallery-image-wrapper {
        height: 160px;
    }

    .gallery-content {
        padding: 0.75rem;
    }

    .gallery-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 1;
    }

    .gallery-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-image-wrapper {
        height: 140px;
    }

    .gallery-content {
        padding: 0.5rem;
    }

    .gallery-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .gallery-description {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .gallery-meta {
        font-size: 0.7rem;
    }

    .gallery-category {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .tournament-card {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .gallery-image-wrapper {
        height: 200px;
    }
}

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

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

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.hero-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.hero-info-item:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.hero-info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.hero-buttons .btn {
    font-weight: 700;
    text-transform: uppercase;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-card));
    border-top: 2px solid var(--primary-color);
    padding: 3rem 0 1rem;
}

.footer-section h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--text-secondary);
    margin-right: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* Responsive Design Improvements */
@media (max-width: 1200px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .weapon-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .maps-grid {
        grid-template-columns: 1fr;
    }

    .gallery-image-wrapper {
        height: 160px;
    }

    .gallery-content {
        padding: 0.75rem;
    }

    .gallery-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 1;
    }

    .gallery-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-image-wrapper {
        height: 140px;
    }

    .gallery-content {
        padding: 0.5rem;
    }

    .gallery-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .gallery-description {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .gallery-meta {
        font-size: 0.7rem;
    }

    .gallery-category {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .tournament-card {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .gallery-image-wrapper {
        height: 200px;
    }
}

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

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

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.hero-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.hero-info-item:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.hero-info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.hero-buttons .btn {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2rem;
}

@media (max-width: 991px) {
    .hero-video-card {
        margin-bottom: 2rem;
    }
}

/* Restored Hero Styles */
.hero-info-box {
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-video-card {
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-small-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.hero-info-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--primary-color);
    ```
}
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .weapon-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .maps-grid {
        grid-template-columns: 1fr;
    }

    .gallery-image-wrapper {
        height: 160px;
    }

    .gallery-content {
        padding: 0.75rem;
    }

    .gallery-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 1;
    }

    .gallery-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-image-wrapper {
        height: 140px;
    }

    .gallery-content {
        padding: 0.5rem;
    }

    .gallery-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .gallery-description {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .gallery-meta {
        font-size: 0.7rem;
    }

    .gallery-category {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .tournament-card {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .gallery-image-wrapper {
        height: 200px;
    }
}

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

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

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.hero-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.hero-info-item:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.hero-info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.hero-buttons .btn {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2rem;
}

@media (max-width: 991px) {
    .hero-video-card {
        margin-bottom: 2rem;
    }
}

/* Restored Hero Styles */
.hero-info-box {
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-video-card {
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-small-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.hero-info-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.hero-info-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================
   MODERN CATEGORY CARDS
   ============================================ */

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Category Card */
.category-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(26, 26, 46, 0.85));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 136, 0.4);
    background: linear-gradient(145deg, rgba(31, 31, 50, 0.95), rgba(31, 31, 50, 0.9));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 136, 0.15);
}

.category-card:hover::before {
    opacity: 1;
}

/* Card Header */
.card-header-category {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.category-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon-wrapper {
    transform: rotate(10deg) scale(1.1);
}

.category-icon-wrapper i {
    color: var(--dark-bg);
    font-size: 1.5rem;
}

.category-card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

/* Card Content */
.category-card-content {
    color: var(--text-secondary);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Info List */
.category-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.category-info-list li {
    padding: 0.5rem 0 0.5rem 1.25rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
}

.category-info-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Vote Items */
.category-vote-item {
    margin-bottom: 1rem;
}

.category-vote-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.category-map-name {
    font-weight: 600;
    color: var(--text-primary);
}

.category-vote-count {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.category-vote-bar {
    height: 6px;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.category-vote-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Stats Grid */
.category-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.category-stat-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(10, 10, 18, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

.category-stat-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: scale(1.05);
}

.category-stat-value {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.category-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Community Stats */
.category-community-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.category-community-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Contact List */
.category-contact-list {
    margin-bottom: 1rem;
}

.category-contact-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-contact-item:last-child {
    border-bottom: none;
}

.category-contact-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.category-contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* CTA Button */
.category-cta-button {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.category-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.category-cta-button:hover::before {
    left: 100%;
}

.category-cta-button:active {
    transform: translateY(0);
}

/* Empty State */
.category-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .category-card {
        padding: 1.25rem;
    }

    font-size: 0.8rem;
}

.category-vote-bar {
    height: 6px;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.category-vote-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Stats Grid */
.category-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.category-stat-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(10, 10, 18, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

.category-stat-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: scale(1.05);
}

.category-stat-value {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.category-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Community Stats */
.category-community-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.category-community-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Contact List */
.category-contact-list {
    margin-bottom: 1rem;
}

.category-contact-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-contact-item:last-child {
    border-bottom: none;
}

.category-contact-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.category-contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* CTA Button */
.category-cta-button {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.category-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.category-cta-button:hover::before {
    left: 100%;
}

.category-cta-button:active {
    transform: translateY(0);
}

/* Empty State */
.category-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .category-card {
        padding: 1.25rem;
    }

    .category-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .category-icon-wrapper i {
        font-size: 1.25rem;
    }

    .category-card-title {
        font-size: 1.1rem;
    }

    .category-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Controls - Fix for dark theme visibility */
.form-control,
.form-select,
textarea.form-control {
    background-color: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary) !important;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    background-color: rgba(26, 26, 46, 0.9);
    border-color: var(--primary-color);
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 136, 0.15);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Make sure text is visible when typing */
input.form-control,
textarea.form-control,
select.form-select {
    color: #ffffff !important;
}