/* VERSION 3: Original aesthetic with modern responsive structure */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #D8D8D8;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
}

/* Header Styling */
#header {
    background: url(../images/header.jpg) no-repeat center top;
    background-size: cover;
    background-color: #000;
    border-bottom: 3px solid #AD2727;
}

#header-servers {
    text-align: center;
    padding: 8px 0;
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid #370505;
}

#header-servers .server-link {
    color: #888;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    margin: 0 10px;
    padding: 4px 12px;
    border: 1px solid #370505;
    border-radius: 3px;
    transition: all 0.3s ease;
}

#header-servers .server-link.active {
    color: #FE0000;
    border-color: #AD2727;
}

#header-servers .server-link:hover {
    color: #FE0000;
    border-color: #AD2727;
}

#header-top {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.8));
}

#header-top .logo-section {
    margin-bottom: 10px;
}

#header-top .logo-image {
    max-width: 300px;
    height: auto;
}

#header-top h1 {
    color: #FFFFFF;
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
    font-family: Verdana, Arial, Helvetica, sans-serif;
}

#header-top .subtitle {
    color: #D8D8D8;
    font-size: 13px;
    margin: 5px 0;
}

#header-top .tagline {
    color: #FFD700;
    font-style: italic;
    font-size: 12px;
    margin-top: 8px;
}

/* Navigation */
#header-menu {
    background-color: rgba(26, 0, 0, 0.9);
    border-top: 1px solid #370505;
    padding: 12px 0;
    text-align: center;
}

#header-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

#header-menu ul li {
    display: inline-block;
}

#header-menu ul li a {
    color: #D8D8D8;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 20px;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: all 0.3s ease;
}

#header-menu ul li a:hover {
    color: #FE0000;
    border-color: #AD2727;
    background-color: rgba(173, 39, 39, 0.1);
}

/* Container */
#home-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    max-width: 950px;
    margin: 20px auto;
    padding: 0 15px;
}

/* Login Section */
#login-section {
    min-height: 400px;
}

#login-box {
    background-color: #1a0505;
    background-size: cover;
    padding: 25px 20px;
    border-radius: 6px;
    border: 2px solid #C10505;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

#login-box p {
    margin: 0 0 12px 0;
    padding: 0;
}

#login-box strong {
    display: block;
    color: #D8D8D8;
    font-size: 11px;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Form Inputs */
.input {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #D8D8D8;
    padding: 8px;
    border: 1px solid #C10505;
    background-color: #1a0000;
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
    border-radius: 3px;
}

.input:focus {
    outline: none;
    border-color: #FE0000;
    background-color: #2a0000;
}

.submit {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #D8D8D8;
    font-weight: bold;
    padding: 8px 30px;
    border: 1px solid #C10505;
    background-color: #370505;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.submit:hover {
    background-color: #530808;
    border-color: #FE0000;
}

#login-box p:last-of-type {
    text-align: center;
    margin-top: 15px;
}

#login-box a {
    color: #AD2727;
    text-decoration: none;
    font-size: 11px;
    transition: color 0.3s ease;
}

#login-box a:hover {
    color: #FE0000;
    text-decoration: underline;
}

/* Info Section */
#info-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-box {
    background-color: #1a0505;
    border: 2px solid #AD2727;
    border-radius: 6px;
    padding: 15px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.info-box h3 {
    color: #FE0000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 10px 0;
    padding: 0 0 6px 0;
    border-bottom: 1px solid #370505;
}

/* Server Stats & Time Combined */
.server-stats-box {
    padding: 12px 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
}

.stats-column h3,
.time-column h3 {
    font-size: 12px;
    margin-bottom: 8px;
    padding-bottom: 4px;
}

.stat-line {
    color: #D8D8D8;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    margin: 4px 0;
    padding: 2px 0;
}

.stat-red {
    color: #FE0000;
    font-weight: bold;
    font-size: 11px;
}

.server-time-display {
    color: #FE0000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    padding: 6px 8px;
    background-color: #0a0000;
    border-radius: 3px;
    margin-top: 4px;
}

/* Media Box - Screenshots & Trailer */
.media-box {
    padding: 12px 15px;
}

.media-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.screenshots-inline {
    display: flex;
    gap: 10px;
}

.screenshots-inline a {
    display: block;
    transition: transform 0.3s ease;
}

.screenshots-inline img {
    border: 2px solid #AD2727;
    border-radius: 3px;
    transition: border-color 0.3s ease;
}

.screenshots-inline a:hover {
    transform: scale(1.1);
}

.screenshots-inline a:hover img {
    border-color: #FE0000;
}

.trailer-inline {
    flex-shrink: 0;
}

.trailer-link {
    color: #D8D8D8 !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
    padding: 6px 15px;
    border: 1px solid #AD2727;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: inline-block;
}

.trailer-link:hover {
    color: #FE0000 !important;
    border-color: #FE0000;
    background-color: rgba(173, 39, 39, 0.1);
}

/* Social Box */
.social-box {
    padding: 12px 15px;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 6px 0;
}

.social-icons a {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons img {
    border-radius: 4px;
}

.social-icons a:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

/* Footer */
.footer-content {
    background-color: #0a0000;
    border-top: 2px solid #AD2727;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.footer-content p {
    color: #888;
    font-size: 11px;
    margin: 5px 0;
}

.footer-content a {
    color: #AD2727;
    text-decoration: none;
}

.footer-content a:hover {
    color: #FE0000;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #home-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    
    #login-box {
        padding: 20px 15px;
    }
    
    .input {
        max-width: 100%;
    }
    
    #header-menu ul {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    #header-top h1 {
        font-size: 22px;
    }
    
    #header-top .logo-image {
        max-width: 200px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .media-content {
        flex-direction: column;
        gap: 12px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border: 3px solid #AD2727;
    box-shadow: 0 0 40px rgba(254, 0, 0, 0.6);
    border-radius: 4px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #FE0000;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    z-index: 10001;
}

.modal-close:hover {
    color: #AD2727;
    transform: scale(1.1);
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #D8D8D8;
    padding: 12px 20px;
    background: rgba(26, 5, 5, 0.9);
    border-radius: 4px;
    border: 1px solid #AD2727;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.screenshot-link {
    cursor: pointer;
    display: block;
}

/* Logo Styling */
.logo-section {
    text-align: center;
    margin-bottom: 10px;
}

.logo-image {
    max-width: 400px;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .logo-image {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-width: 250px;
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 15px;
}

.form-group strong {
    display: block;
    color: #D8D8D8;
    font-size: 11px;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Message Boxes */
.message-success {
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.4), rgba(0, 80, 0, 0.3));
    border-left: 4px solid #00FF00;
    border-right: 1px solid #00AA00;
    border-top: 1px solid #00AA00;
    border-bottom: 1px solid #00AA00;
    color: #00FF00;
    padding: 15px 18px;
    margin: 12px auto;
    max-width: 600px;
    border-radius: 5px;
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
    box-shadow: 0 3px 8px rgba(0, 255, 0, 0.15);
    position: relative;
}

.message-success:before {
    content: "✓ ";
    font-weight: bold;
    margin-right: 8px;
    font-size: 14px;
}

.message-error {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.5), rgba(100, 0, 0, 0.4));
    border-left: 4px solid #FE0000;
    border-right: 1px solid #C10505;
    border-top: 1px solid #C10505;
    border-bottom: 1px solid #C10505;
    color: #FFB8B8;
    padding: 15px 18px 15px 40px;
    margin: 12px auto;
    max-width: 600px;
    border-radius: 5px;
    text-align: center;
    font-size: 11px;
    line-height: 1.7;
    box-shadow: 0 3px 10px rgba(254, 0, 0, 0.2);
    position: relative;
}

.message-error:before {
    content: "✗";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #FE0000;
    font-size: 16px;
}

/* Password Strength Indicator */
#pwindicator {
    margin-top: 5px;
    height: 20px;
}

#pwindicator .bar {
    height: 6px;
    background: #370505;
    border: 1px solid #C10505;
    border-radius: 3px;
}

#pwindicator .label {
    font-size: 10px;
    color: #FFD700;
    margin-top: 3px;
}
