/* Global Variables */
:root {
    --accent-red: #dc3545;
    --accent-red-hover: #bb2d3b;
    --dark-bg: #1a1a1a;
    --darker-bg: #0d0d0d;
}

/* Body Styles */
body {
    background-color: var(--dark-bg);
    color: #e9ecef;
    font-family: Arial, sans-serif;
}

/* Navbar */
.navbar {
    background-color: var(--darker-bg) !important;
    border-bottom: 2px solid var(--accent-red);
}

.navbar-brand {
    color: var(--accent-red) !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    color: #e9ecef !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-red) !important;
}

/* Hero Section (Homepage) */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('dein-bild.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    text-align: center;
    border-bottom: 1px solid rgba(220, 53, 69, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-red);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #adb5bd;
    margin-bottom: 2rem;
}

/* Page Header (Subpages) */
.page-header {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    padding: 60px 0 40px 0;
    text-align: center;
    border-bottom: 1px solid rgba(220, 53, 69, 0.3);
    margin-bottom: 40px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #adb5bd;
}

/* Buttons */
.btn-custom {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-custom:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-secondary-custom {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-secondary-custom:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* Cards (Project Cards) */
.card {
    background-color: var(--darker-bg);
    border: 1px solid rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    border-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.2);
}

.card-title {
    color: var(--accent-red);
    font-weight: 600;
}

/* Section Titles */
.section-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-red);
}

/* Project Icons */
.project-icon {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    border-top: 2px solid var(--accent-red);
    padding: 30px 0;
    margin-top: 80px;
    text-align: center;
}

.social-links a {
    color: #e9ecef;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-red);
}

/* DBD Killer Roulette Specific Styles */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.killer-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 180px;
    border: 2px solid rgba(220, 53, 69, 0.3);
    background-color: var(--darker-bg);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.killer-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.2);
}

.killer-card.disabled {
    opacity: 0.4;
    border-color: #6c757d;
}

.killer-card.disabled:hover {
    opacity: 0.6;
}

.killer-card.enabled {
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.killer-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 8px;
    background-color: var(--dark-bg);
    flex-shrink: 0;
}

.killer-name {
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    line-height: 1.2;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.killer-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-red);
    flex-shrink: 0;
}

.control-section {
    background-color: var(--darker-bg);
    border: 2px solid rgba(220, 53, 69, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

#result-container {
    min-height: 400px;
    padding: 30px;
    background-color: var(--darker-bg);
    border: 2px solid rgba(220, 53, 69, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 80px;
}

.result-killer-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 3px solid var(--accent-red);
}

.result-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-red);
    text-align: center;
    margin-top: 10px;
}

.no-result {
    color: #6c757d;
    font-style: italic;
    font-size: 1.2rem;
}

/* Mobile Optimizations */
.mobile-randomize {
    display: none;
}

.desktop-controls {
    display: block;
}

.desktop-killer-grid {
    display: block;
}

.mobile-killer-dropdown {
    display: none;
}

.desktop-only {
    display: block;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets und kleinere Desktops */
@media (max-width: 1200px) {
    .checkbox-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

/* Mobile Layout (Tablets im Hochformat und Handys) */
@media (max-width: 991px) {
    /* Verstecke Desktop-Elemente */
    .desktop-controls {
        display: none;
    }
    
    .desktop-killer-grid {
        display: none;
    }
    
    .desktop-only {
        display: none;
    }
    
    /* Zeige Mobile-Elemente */
    .mobile-randomize {
        display: block;
        margin-top: 20px;
    }
    
    .mobile-killer-dropdown {
        display: block;
        margin-bottom: 30px;
    }
    
    /* Result Container nicht sticky auf Mobile */
    #result-container {
        position: relative !important;
        top: 0 !important;
        margin-top: 0;
        margin-bottom: 30px;
        min-height: 300px;
    }
    
    /* Dropdown Styles */
    .dropdown-menu {
        background-color: var(--darker-bg) !important;
        border: 2px solid rgba(220, 53, 69, 0.3) !important;
    }
    
    .form-check-input:checked {
        background-color: var(--accent-red);
        border-color: var(--accent-red);
    }
    
    .form-check-label {
        color: #e9ecef;
        cursor: pointer;
    }
}

/* Handys im Hochformat */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
}

/* Extra kleine Bildschirme */
@media (max-width: 576px) {
    .page-title {
        font-size: 1.5rem;
    }
}
