/* ============================================
   RICHLAND - SIMPLE BOOTSTRAP DARK THEME
   ============================================ */

:root {
    --bs-dark: #212529;
    --bs-dark-rgb: 33, 37, 41;
    --bs-body-bg: #1a1d21;
    --bs-body-color: #f8f9fa;
    --bs-success: #198754;
    --bs-danger: #dc3545;
    --bs-warning: #ffc107;
    --bs-primary: #0d6efd;
    --bs-info: #0dcaf0;
}

body {
    background: linear-gradient(135deg, #1a1d21 0%, #212529 100%);
    color: var(--bs-body-color);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Fullscreen Game Mode */
body.game-fullscreen {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.game-fullscreen .game-page-wrapper {
    padding: 0.5rem;
    min-height: 100vh;
}

/* Floating Home Button for Game */
.floating-home-btn {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    background: rgba(33, 37, 41, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.floating-home-btn:hover {
    background: rgba(33, 37, 41, 1);
    color: #ffc107;
    border-color: #ffc107;
    text-decoration: none;
}

/* Navbar */
.navbar {
    background: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffc107 !important;
}

.navbar-brand i {
    color: #ffc107;
    margin-right: 0.5rem;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    font-size: 4rem;
    color: #ffc107;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-title .gradient-text {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Smooth Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #157347 0%, #136a3f 100%);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #bb2d3b 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #bb2d3b 0%, #a52834 100%);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #c69500 100%);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Cards */
.card {
    background: rgba(33, 37, 41, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.card-header {
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.action-card {
    background: rgba(33, 37, 41, 0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.action-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.action-card-icon.emerald {
    background: rgba(25, 135, 84, 0.2);
    color: #198754;
}

.action-card-icon.red {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.action-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.action-card p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Forms - default dark theme (can be overridden with inline styles) */
.form-control {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.form-control:focus {
    background: rgba(0,0,0,0.4);
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    color: #fff;
}

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

/* White background form controls need dark text */
.form-control[style*="background: white"],
.form-control[style*="background:white"],
.form-select[style*="background: white"],
.form-select[style*="background:white"] {
    color: #1a472a !important;
}

.form-control[style*="background: white"]::placeholder,
.form-control[style*="background:white"]::placeholder {
    color: #1a472a !important;
    opacity: 0.6 !important;
}

.form-label {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-text {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* Modal */
.modal-content {
    background: #212529;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    color: #fff;
}

.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
}

.btn-close {
    filter: invert(1);
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

/* Icon Selector */
.icon-selector-premium {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 0.5rem;
}

.icon-option-premium {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.icon-option-premium:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.icon-option-premium.selected {
    background: #0d6efd;
    color: #fff;
}

.icon-option-premium.taken {
    opacity: 0.3;
    pointer-events: none;
}

/* Player List */
.player-item-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-icon-wrapper {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,193,7,0.2);
    border-radius: 50%;
    color: #ffc107;
}

.player-name {
    font-weight: 500;
    color: #fff;
}

.btn-remove-player {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.2s;
    z-index: 10;
    position: relative;
}

.btn-remove-player:hover {
    background: #dc3545;
    color: white;
}

/* Features Grid */
.features-section {
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: rgba(33, 37, 41, 0.7);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.feature-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Guide Section */
.guide-section {
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.guide-card {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
}

.guide-card h5 {
    color: #ffc107;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-steps {
    padding-left: 1.25rem;
    margin: 0;
}

.guide-steps li {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 0.25rem;
}

.footer-logo i {
    margin-right: 0.5rem;
}

.footer-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    max-width: 700px;
    margin: 1rem auto;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 0.5rem;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 1rem;
}

/* Toast */
.toast {
    background: #212529;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}

.toast-header {
    background: rgba(0,0,0,0.2);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 300px;
    }
}
