/* Light Mode (default) */
body {
    background-color: #f8f9fa;
    color: #212529;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .navbar,
body.dark-mode .card,
body.dark-mode .modal-content,
body.dark-mode .alert,
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode textarea,
body.dark-mode .table {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

body.dark-mode .navbar-light .navbar-brand,
body.dark-mode .navbar-light .nav-link,
body.dark-mode .card-title,
body.dark-mode .text-muted,
body.dark-mode .form-label,
body.dark-mode .table td,
body.dark-mode .table th {
    color: #e0e0e0 !important;
}

body.dark-mode .text-primary { color: #4da6ff !important; }
body.dark-mode .bg-light { background-color: #1e1e1e !important; }
body.dark-mode .bg-white { background-color: #1e1e1e !important; }
body.dark-mode .border { border-color: #444 !important; }

body.dark-mode .btn-outline-primary {
    color: #4da6ff;
    border-color: #4da6ff;
}
body.dark-mode .btn-outline-primary:hover {
    background-color: #4da6ff;
    color: #000;
}

body.dark-mode .btn-primary { background-color: #0d6efd; border-color: #0d6efd; }
body.dark-mode .btn-success { background-color: #198754; border-color: #198754; }
body.dark-mode .btn-danger { background-color: #dc3545; border-color: #dc3545; }

/* Profile header */
body.dark-mode .profile-header {
    background: linear-gradient(135deg, #0a58ca, #0d6efd) !important;
}

/* Footer */
body.dark-mode footer {
    background-color: #1e1e1e !important;
}

/* 3D Tilt on Hover for Post Cards */
.post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Game-Specific Borders */
.post-card.border-valorant { border-left-color: #ff4655 !important; }
.post-card.border-counter-strike-2 { border-left-color: #f8a200 !important; }
.post-card.border-league-of-legends { border-left-color: #f0c419 !important; }
.post-card.border-dota-2 { border-left-color: #a81c07 !important; }
.post-card.border-overwatch-2 { border-left-color: #f99e1a !important; }
.post-card.border-rainbow-six-siege { border-left-color: #000000 !important; }
.post-card.border-apex-legends { border-left-color: #e11c1c !important; }
.post-card.border-fortnite { border-left-color: #7b2cbe !important; }
.post-card.border-call-of-duty-warzone { border-left-color: #4caf50 !important; }
.post-card.border-rocket-league { border-left-color: #1e90ff !important; }
.post-card.border-street-fighter-6 { border-left-color: #ff0000 !important; }
.post-card.border-super-smash-bros-ultimate { border-left-color: #ffd700 !important; }
.post-card.border-teamfight-tactics { border-left-color: #007bff !important; }
.post-card.border-fifa { border-left-color: #28a745 !important; }
.post-card.border-nba-2k { border-left-color: #dc3d2a !important; }
.post-card.border-mortal-kombat-1 { border-left-color: #c8102e !important; }
.post-card.border-tekken-8 { border-left-color: #0d6efd !important; }
.post-card.border-starcraft-ii { border-left-color: #0057a8 !important; }
.post-card.border-hearthstone { border-left-color: #8b4513 !important; }
.post-card.border-pubg { border-left-color: #f2d675 !important; }

/* "Live" Badge with Pulse */
.live-badge {
    background-color: #ff0000;
    color: white;
    animation: pulse 1.5s infinite;
    margin-left: 10px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Game Logo */
.game-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}
