/* Custom styles for VibeGameList */

/* Variables */
:root {
    --primary-color: #7C3AED;
    --primary-dark: #5B21B6;
    --secondary-color: #10B981;
    --dark-bg: #1F2937;
    --darker-bg: #111827;
    --light-text: #F9FAFB;
    --card-bg: #2D3748;
    --hover-bg: #374151;
}

/* Base styles */
body {
    background-color: #F3F4F6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Container padding */
.content-container {
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .content-container {
        padding: 0 1rem;
    }
}

/* Navbar styles */
.navbar {
    background: var(--dark-bg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--light-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background: var(--hover-bg);
    transform: translateY(-1px);
}

.navbar .form-control {
    background: var(--card-bg);
    border: none;
    color: var(--light-text);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.navbar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.navbar .form-control:focus {
    background: var(--hover-bg);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.navbar .btn-outline-light {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar .btn-outline-light:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Filter area styles */
.filters-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 0 1rem 2rem 1rem;
}

.filters-card .card-body {
    padding: 1.25rem;
    padding-top: 1.5rem;
}

.filter-label {
    position: absolute;
    top: -0.75rem;
    left: 1.25rem;
    background: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 0 12px 12px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filters-card .form-select {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    min-width: 160px;
    cursor: pointer;
}

.filters-card .form-select:hover {
    border-color: var(--primary-color);
    background-color: #F9FAFB;
}

.filters-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.filters-card .btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    height: 100%;
    white-space: nowrap;
}

.filters-card .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .filters-card .form-select {
        margin-bottom: 0.5rem;
    }

    .filters-card .btn-primary {
        width: 100%;
    }
}

/* Footer styles */
.footer {
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-links a {
    color: #9CA3AF;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.footer-links a:hover {
    color: var(--light-text);
    background: var(--hover-bg);
}

.footer-links .text-muted {
    color: #6B7280 !important;
}

/* Game card styles */
.game-card {
    transition: transform 0.2s;
    height: 100%;
}

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

.game-card .card-img-top {
    height: 200px;
    object-fit: cover;
    position: relative;
}

.game-card .developer-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 20px;
    color: white;
}

/* Sponsors badge */
.game-card .sponsors-badge {
    position: absolute;
    bottom: calc(100% - 200px + 10px);
    /* Position from bottom of card-img-top */
    right: 10px;
    background: rgba(198, 64, 64, 0.7);
    padding: 5px 10px;
    border-radius: 20px;
    color: white;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    z-index: 1;
}

.game-card .sponsors-badge:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-1px);
}

/* Tag styles */
.game-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem;
    background-color: #f8f9fa;
    border-radius: 15px;
    font-size: 0.875rem;
}

/* Status badges */
.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.status-released {
    background-color: #28a745;
    color: white;
}

.status-upcoming {
    background-color: #ffc107;
    color: black;
}

/* Form styles */
.required-field::after {
    content: "*";
    color: red;
    margin-left: 4px;
}

/* Admin panel styles */
.admin-sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}

.admin-sidebar .nav-link {
    color: #333;
    padding: 8px 16px;
    border-radius: 4px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: #e9ecef;
}

/* Pagination styles */
.pagination .page-link {
    color: #333;
}

.pagination .page-item.active .page-link {
    background-color: #dbdbdb;
    border-color: #dbdbdb;
}

/* Custom alert styles */
.alert {
    border-radius: 0;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .game-card .card-img-top {
        height: 150px;
    }

    .game-card .sponsors-badge {
        bottom: calc(100% - 150px - 40px);
        /* Adjust for mobile image height */
    }

    .admin-sidebar {
        margin-bottom: 20px;
    }
}

/* Stats badges */
.stats-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.875rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    margin-right: 8px;
    margin-bottom: 8px;
}

.stats-badge i {
    margin-right: 4px;
}