/* style.css - Modern Gaming Portal (Red Theme) */
:root {
    --primary: #1a1a1a;
    --secondary: #0d0d0d;
    --accent: #e74c3c;
    --accent-dark: #c0392b;
    --accent-light: #ff5c4d;
    --text: #f0f0f0;
    --text-light: #ffffff;
    --text-dark: #cccccc;
    --highlight: #ff3d2e;
    --danger: #ff3860;
    --warning: #ffdd57;
    --success: #23d160;
    --info: #209cee;
    --glow: rgba(231, 76, 60, 0.3);
}

/* Base Styles */
body {
    font-family: 'Rajdhani', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--secondary);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', 'Orbitron', sans-serif;
    color: var(--accent);
    margin-top: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

a {
    color: var(--accent-light);
    transition: all 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: var(--highlight);
    text-shadow: 0 0 5px var(--glow);
}

/* Layout */
#background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(13, 13, 13, 0.9), rgba(13, 13, 13, 0.9)),
        url('img/bg-circuit.png') repeat;
    background-size: 400px 400px;
    opacity: 0.08;
    z-index: -1;
    will-change: transform;
}

/* Header - Clickable Banner */
#header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    padding: 0;
    text-align: center;
    position: relative;
    cursor: pointer;
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

#header a {
    display: block;
    text-decoration: none;
    padding: 10px 0;
}

#header img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 10px var(--glow));
}

#header:hover img {
    transform: scale(1.02);
    filter: drop-shadow(0 0 15px var(--glow));
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(231, 76, 60, 0.1) 0%, 
        rgba(231, 76, 60, 0.05) 50%, 
        rgba(231, 76, 60, 0.1) 100%);
    pointer-events: none;
}

/* Container & Sidebar */
#container {
    display: flex;
    flex: 1;
    position: relative;
}

#sidebar {
    width: 220px;
    background: linear-gradient(to bottom, var(--primary), #111111);
    padding: 20px 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid rgba(231, 76, 60, 0.2);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar li {
    margin-bottom: 8px;
    position: relative;
}

#sidebar li:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--accent), transparent);
    opacity: 0.3;
}

#sidebar a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9em;
    letter-spacing: 1px;
}

#sidebar a:before {
    content: '»';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    opacity: 0;
    transition: all 0.3s ease;
}

#sidebar a:hover,
#sidebar a:focus {
    background: linear-gradient(to right, rgba(231, 76, 60, 0.2), transparent);
    color: var(--text-light);
    padding-left: 30px;
    text-shadow: 0 0 5px var(--glow);
}

#sidebar a:hover:before,
#sidebar a:focus:before {
    opacity: 1;
    left: 10px;
}

#sidebar a.active {
    background: linear-gradient(to right, rgba(231, 76, 60, 0.3), transparent);
    color: var(--text-light);
    border-left: 3px solid var(--accent);
    text-shadow: 0 0 5px var(--glow);
}

#sidebar a.active:before {
    opacity: 1;
    left: 10px;
}

/* Content Area */
#content {
    flex-grow: 1;
    padding: 30px;
    background: var(--primary);
    position: relative;
    min-height: 500px;
    border-left: 1px solid rgba(231, 76, 60, 0.1);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(231, 76, 60, 0.3);
}

.welcome-header {
    font-size: 2.5em;
    margin: 0;
    text-shadow: 0 0 10px var(--glow);
    position: relative;
    display: inline-block;
}

.welcome-header:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent), transparent);
}

/* Game Cards & Tables */
.game-card {
    background: linear-gradient(to bottom right, #1e1e1e, #141414);
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(231, 76, 60, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.game-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent), transparent);
}

.game-card h3 {
    color: var(--accent-light);
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(231, 76, 60, 0.3);
    font-size: 1.5em;
    text-shadow: 0 0 8px var(--glow);
}

.character-table {
    width: 100%;
    background: #141414;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.character-table th {
    background: linear-gradient(to right, var(--accent-dark), var(--accent));
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.character-table td {
    padding: 12px 15px;
    border: 1px solid #2a2a2a;
    color: var(--text-dark);
}

.character-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.character-table tr:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--text-light);
}

/* Server Status */
.server-status {
    background: linear-gradient(to bottom right, #1e1e1e, #141414);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.server-status:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/diagonal-stripes.png');
    opacity: 0.03;
    pointer-events: none;
}

.server-status h3 {
    margin-top: 0;
    color: var(--accent-light);
    display: flex;
    align-items: center;
}

.server-status h3:before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    margin-right: 10px;
    box-shadow: 0 0 5px var(--success);
}

.server-status.offline h3:before {
    background: var(--danger);
    box-shadow: 0 0 5px var(--danger);
}

.server-features {
    columns: 2;
    column-gap: 40px;
    margin: 20px 0;
}

.server-features li {
    margin-bottom: 10px;
    list-style-type: none;
    position: relative;
    padding-left: 25px;
    break-inside: avoid;
    color: var(--text-dark);
}

.server-features li:before {
    content: "✓";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Game Elements */
.game-icon {
    float: right;
    margin: 0 0 20px 20px;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px var(--glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px var(--glow);
}

/* Buttons & Form Elements */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    background: linear-gradient(to bottom, var(--accent-light), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: linear-gradient(to bottom, #333, #222);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(to bottom, #444, #333);
}

.input_box {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    display: inline-block;
    border: 1px solid #333;
    border-radius: 4px;
    box-sizing: border-box;
    background: #141414;
    color: var(--text);
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1em;
}

.input_box:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--glow);
    background: #1a1a1a;
}

.input_submit {
    width: 100%;
    padding: 16px;
    margin: 15px 0;
    background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.input_submit:hover,
.input_submit:focus {
    background: linear-gradient(to bottom, var(--accent-light), var(--accent));
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

.input_submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3);
}

/* Messages & Notifications */
.alert {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-weight: bold;
    position: relative;
    border-left: 4px solid;
}

.alert-error {
    color: var(--danger);
    background: rgba(255, 56, 96, 0.1);
    border-color: var(--danger);
}

.alert-success {
    color: var(--success);
    background: rgba(35, 209, 96, 0.1);
    border-color: var(--success);
}

.alert-warning {
    color: var(--warning);
    background: rgba(255, 221, 87, 0.1);
    border-color: var(--warning);
}

.alert-info {
    color: var(--info);
    background: rgba(32, 156, 238, 0.1);
    border-color: var(--info);
}

/* Text Styles */
.highlight-text {
    color: var(--highlight);
    font-weight: bold;
    text-shadow: 0 0 5px var(--glow);
}

.note-text {
    font-style: italic;
    color: rgba(240, 240, 240, 0.6);
    border-left: 3px solid var(--accent);
    padding-left: 15px;
    margin: 15px 0;
}

.motto-text {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-light);
    text-shadow: 0 0 8px var(--glow);
}

/* Links & Downloads */
.download-link {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    text-align: center;
    transition: all 0.3s ease;
    padding: 10px 20px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.download-link:hover,
.download-link:focus {
    transform: scale(1.05);
    background: rgba(231, 76, 60, 0.2);
    box-shadow: 0 0 15px var(--glow);
    outline: none;
}

.download-link i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Stats & Progress Bars */
.stat-container {
    margin: 20px 0;
}

.stat-bar {
    height: 20px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.stat-progress {
    height: 100%;
    background: linear-gradient(to right, var(--accent-dark), var(--accent));
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.stat-progress:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stat-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: var(--text-dark);
}

/* Footer */
#footer {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--text-dark);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(231, 76, 60, 0.2);
    margin-top: 50px;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-links a {
    margin: 0 15px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-light);
    text-shadow: 0 0 5px var(--glow);
}

.copyright {
    font-size: 0.8em;
    opacity: 0.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 0 15px var(--glow);
    border: none;
    cursor: pointer;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 25px var(--glow);
}

/* Responsive Design */
@media (max-width: 992px) {
    #sidebar {
        width: 180px;
    }
    
    #content {
        padding: 20px;
    }
    
    .server-features {
        columns: 1;
    }
}

@media (max-width: 768px) {
    #container {
        flex-direction: column;
    }
    
    #sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px 0;
        border-right: none;
        border-bottom: 1px solid rgba(231, 76, 60, 0.2);
    }
    
    #sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #sidebar li {
        margin: 5px;
    }
    
    #sidebar a {
        padding: 8px 15px;
        border-radius: 4px;
    }
    
    #sidebar a:hover {
        padding-left: 15px;
    }
    
    #sidebar a:before {
        display: none;
    }
    
    #content {
        border-left: none;
        border-top: 1px solid rgba(231, 76, 60, 0.2);
        padding: 20px 15px;
    }
    
    .game-icon {
        float: none;
        display: block;
        margin: 0 auto 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--primary);
    color: var(--text);
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    font-size: 0.9em;
    line-height: 1.4;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--accent) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.countdown-item {
    margin: 0 10px;
    text-align: center;
}

.countdown-number {
    font-size: 2em;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 0 5px var(--glow);
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 5px;
    min-width: 60px;
    display: inline-block;
}

.countdown-label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-top: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(to bottom right, #1a1a1a, #0d0d0d);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid var(--accent);
    border-radius: 5px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 0 30px rgba(231, 76, 60, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    color: var(--text-dark);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid rgba(231, 76, 60, 0.3);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    position: relative;
    transition: all 0.3s;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.tab-btn.active {
    color: var(--accent-light);
}

.tab-btn.active:after {
    transform: scaleX(1);
}

.tab-btn:hover {
    color: var(--text-light);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Leaderboard */
.leaderboard {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.leaderboard th {
    background: linear-gradient(to right, var(--accent-dark), var(--accent));
    color: white;
    padding: 15px;
    text-align: left;
}

.leaderboard td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(231, 76, 60, 0.1);
}

.leaderboard tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.leaderboard tr:hover {
    background: rgba(231, 76, 60, 0.1);
}

.leaderboard .rank {
    font-weight: bold;
    color: var(--accent-light);
}

.leaderboard .top3 {
    background: rgba(231, 76, 60, 0.05);
}

.leaderboard .top3 .rank {
    font-size: 1.2em;
}

/* Media Queries for Print */
@media print {
    #sidebar, #background-image, #header, .back-to-top {
        display: none;
    }
    
    #content {
        width: 100%;
        padding: 0;
        margin: 0;
        border: none;
        background: white;
        color: black;
    }
    
    a {
        color: #0066cc;
    }
    
    .game-card, .character-table, .server-status {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
/* Add to your existing banner styles */
#header {
    position: relative;
    overflow: hidden;
}

#header img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
}

#header::before, #header::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

#header::before {
    left: 0;
    background: linear-gradient(90deg, rgba(26, 29, 36, 0.9) 0%, rgba(26, 29, 36, 0) 100%);
}

#header::after {
    right: 0;
    background: linear-gradient(270deg, rgba(26, 29, 36, 0.9) 0%, rgba(26, 29, 36, 0) 100%);
}