﻿html {
    font-size: 62.5%;
}

body {
    font-family: IRANYekan, sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
}

:root {
    --brand-color: #4125dd;
    --brand-hover: #2f1ba8;
    --brand-accent: #c0ca33;
}

.btn-primary {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
}

    .btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active {
        background-color: var(--brand-hover);
        border-color: var(--brand-hover);
    }

.page-section {
    padding: 70px 0;
}

h1 {
    margin-bottom: 0.5em;
    font-size: 3.6rem;
}

p {
    margin-bottom: 0.5em;
    font-size: 1.6rem;
    line-height: 1.6;
}

.overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background-color: rgba(0, 0, 0, .4);
}

.header-area {
    position: relative;
    height: 100vh;
    background: url('img/background.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
}

.header-static {
    position: relative;
    background-color: #1c2331;
    z-index: 99999;
}

    .header-static .navbar {
        position: relative;
        padding: 8px 0;
    }

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(28, 35, 49, 0.85), rgba(28, 35, 49, 0.35));
}

    .header-overlay .navbar {
        padding: 8px 0;
    }

.navbar {
    position: absolute;
    left: 0;
    top: 0;
    padding: 0;
    width: 100%;
    transition: background 0.6s ease-in;
    z-index: 99999;
}

    .navbar .navbar-brand {
        font-family: IRANYekan, sans-serif;
        font-size: 2.5rem;
        font-weight: bold;
    }


.navbar .navbar-toggler {
    position: relative;
    height: 50px;
    width: 50px;
    border: none;
    cursor: pointer;
    outline: none;
}

    .navbar .navbar-toggler .menu-icon-bar {
        position: absolute;
        left: 15px;
        right: 15px;
        height: 2px;
        background-color: #fff;
        opacity: 0;
        -webkit-transform: translateY(-1px);
        -ms-transform: translateY(-1px);
        transform: translateY(-1px);
        transition: all 0.3s ease-in;
    }

        .navbar .navbar-toggler .menu-icon-bar:first-child {
            opacity: 1;
            -webkit-transform: translateY(-1px) rotate(45deg);
            -ms-sform: translateY(-1px) rotate(45deg);
            transform: translateY(-1px) rotate(45deg);
        }

        .navbar .navbar-toggler .menu-icon-bar:last-child {
            opacity: 1;
            -webkit-transform: translateY(-1px) rotate(135deg);
            -ms-sform: translateY(-1px) rotate(135deg);
            transform: translateY(-1px) rotate(135deg);
        }

    .navbar .navbar-toggler.collapsed .menu-icon-bar {
        opacity: 1;
    }

        .navbar .navbar-toggler.collapsed .menu-icon-bar:first-child {
            -webkit-transform: translateY(-7px) rotate(0);
            -ms-sform: translateY(-7px) rotate(0);
            transform: translateY(-7px) rotate(0);
        }

        .navbar .navbar-toggler.collapsed .menu-icon-bar:last-child {
            -webkit-transform: translateY(5px) rotate(0);
            -ms-sform: translateY(5px) rotate(0);
            transform: translateY(5px) rotate(0);
        }

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    color: #fff;
    font-size: 1.6rem;
}

    .navbar-dark .navbar-nav .nav-link:focus, .navbar-dark .navbar-nav .nav-link:hover {
        color: #fff;
    }

    .navbar-dark .navbar-nav .nav-link.active {
        color: var(--brand-accent);
    }

        .navbar-dark .navbar-nav .nav-link.active::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: 4px;
            height: 2px;
            background: var(--brand-accent);
        }

.navbar .dropdown-menu {
    padding: 0;
    background-color: rgba(0, 0, 0, .9);
}

    .navbar .dropdown-menu .dropdown-item {
        position: relative;
        padding: 10px 20px;
        color: #fff;
        font-size: 1.4rem;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        transition: color 0.2s ease-in;
    }

        .navbar .dropdown-menu .dropdown-item:last-child {
            border-bottom: none;
        }

        .navbar .dropdown-menu .dropdown-item:hover {
            background: transparent;
            color: #c0ca33;
        }

        .navbar .dropdown-menu .dropdown-item::before {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            top: 0;
            width: 5px;
            background-color: #c0ca33;
            opacity: 0;
            transition: opacity 0.2s ease-in;
        }

        .navbar .dropdown-menu .dropdown-item:hover::before {
            opacity: 1;
        }

.navbar.fixed-top {
    position: fixed;
    -webkit-animation: navbar-animation 0.6s;
    animation: navbar-animation 0.6s;
    background-color: rgba(0, 0, 0, .9);
}

    .navbar.fixed-top.navbar-dark .navbar-nav .nav-link.active {
        color: #c0ca33;
    }

    .navbar.fixed-top.navbar-dark .navbar-nav .nav-link::after {
        background-color: #c0ca33;
    }

.content {
    padding: 0;
}

@media screen and (max-width: 768px) {
    .navbar-brand {
        margin-right: 20px;
    }

    .navbar-nav {
        padding: 0 20px;
        background-color: rgba(0, 0, 0, .9);
    }

    .navbar.fixed-top .navbar-nav {
        background: transparent;
    }
}

@media screen and (min-width: 767px) {
    .banner {
        padding: 0 150px;
    }

        .banner h1 {
            font-size: 5rem;
        }

        .banner p {
            font-size: 2rem;
        }

    .navbar-dark .navbar-nav .nav-link {
        padding: 23px 15px;
    }

        .navbar-dark .navbar-nav .nav-link::after {
            content: '';
            position: absolute;
            bottom: 15px;
            left: 30%;
            right: 30%;
            height: 1px;
            background-color: #fff;
            -webkit-transform: scaleX(0);
            -ms-transform: scaleX(0);
            transform: scaleX(0);
            transition: transform 0.1s ease-in;
        }

        .navbar-dark .navbar-nav .nav-link:hover::after {
            -webkit-transform: scaleX(1);
            -ms-transform: scaleX(1);
            transform: scaleX(1);
        }

    .dropdown-menu {
        min-width: 200px;
        -webkit-animation: dropdown-animation 0.3s;
        animation: dropdown-animation 0.3s;
        -webkit-transform-origin: top;
        -ms-transform-origin: top;
        transform-origin: top;
    }
}

@-webkit-keyframes navbar-animation {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
        transform: translateY(-100%);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes navbar-animation {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
        transform: translateY(-100%);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }
}

@-webkit-keyframes dropdown-animation {
    0% {
        -webkit-transform: scaleY(0);
        -ms-transform: scaleY(0);
        transform: scaleY(0);
    }

    75% {
        -webkit-transform: scaleY(1.1);
        -ms-transform: scaleY(1.1);
        transform: scaleY(1.1);
    }

    100% {
        -webkit-transform: scaleY(1);
        -ms-transform: scaleY(1);
        transform: scaleY(1);
    }
}

@keyframes dropdown-animation {
    0% {
        -webkit-transform: scaleY(0);
        -ms-transform: scaleY(0);
        transform: scaleY(0);
    }

    75% {
        -webkit-transform: scaleY(1.1);
        -ms-transform: scaleY(1.1);
        transform: scaleY(1.1);
    }

    100% {
        -webkit-transform: scaleY(1);
        -ms-transform: scaleY(1);
        transform: scaleY(1);
    }
}

.footer {
    background: #232a34;
    padding: 10px 0;
}

.footer_menu {
    margin-bottom: 5px;
}

    .footer_menu ul {
        list-style: none;
        text-align: center;
        margin: 0;
        padding: 0;
    }

        .footer_menu ul li {
            display: inline-block;
        }

            .footer_menu ul li a {
                color: #fff;
                padding: 0 10px;
                font-size: 1.3rem;
                -webkit-transition: 0.3s;
                transition: 0.3s;
            }

                .footer_menu ul li a:hover {
                    color: #554c86;
                }

.footer_copyright {
    font-size: 11px;
    color: #999;
    text-align: center;
}

.header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    z-index: 1;
}

    .header-text h1 {
        font-size: 4rem;
        font-weight: 800;
        margin-bottom: 10px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }

    .header-text p {
        font-size: 1.8rem;
        opacity: 0.9;
        text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    }

.header-slider {
    padding: 20px 0 30px;
    z-index: 1;
}

.slider-wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.slider-viewport {
    overflow: hidden;
    min-width: 0;
    direction: ltr;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.server-card {
    flex: 0 0 calc(50% - 10px);
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    padding: 10px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    direction: rtl;
}

.server-title {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .server-title h3 {
        font-size: 2rem;
        font-weight: bold;
        color: #333;
        margin: 0 0 5px 0;
    }

.server-date-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    color: #555;
    font-weight: 600;
}

.server-status {
    background: rgba(0,0,0,0.06);
    padding: 2px 10px;
    border-radius: 20px;
}

.server-start {
    font-size: 1rem;
    color: #666;
}

.server-head {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
  
}
    .server-head h3 {
        color: orange;
        font-size: 30px;
    }
.server-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}

    .server-status-badge::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: currentColor;
    }

    .server-status-badge.active {
        background: rgba(40, 167, 69, 0.15);
        color: #1e7e34;
    }

    .server-status-badge.inactive {
        background: rgba(220, 53, 69, 0.12);
        color: #c82333;
    }

.server-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 12px 0;
    font-size: 1.3rem;
    color: #555;
}

.server-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1c2331;
    background: rgba(65, 37, 221, 0.08);
    padding: 8px 18px;
    border-radius: 20px;
    direction: ltr;
}

.server-players {
    color: #444;
}

    .server-players .fa {
        color: var(--brand-color);
        margin-left: 4px;
    }

.server-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    flex-shrink: 0;
    width: 100%;
    max-width: 220px;
}

.btn-server {
    padding: 6px 4px;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: IRANYekan, sans-serif;
    white-space: nowrap;
    min-width: 150px;
    width: 100%;
    text-align: center;
}

.btn-register {
    background: #c0ca33;
    color: #202620;
}

    .btn-register:hover {
        background: #a8b52b;
        color: #202620;
        text-decoration: none;
    }

.btn-login {
    background: #5bc0de;
    color: #12343d;
}

    .btn-login:hover {
        background: #46b3d3;
        color: #12343d;
        text-decoration: none;
    }

.slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #c0ca33;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

    .slider-dots .dot {
        width: 10px;
        height: 10px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .slider-dots .dot:hover {
            background: rgba(255, 255, 255, 0.8);
        }

        .slider-dots .dot.active {
            background: #c0ca33;
            width: 26px;
            border-radius: 5px;
        }

.slider-btn:hover {
    background: #a8b52b;
}

.slider-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

@media (max-width: 768px) {
    .server-card {
        flex: 0 0 calc(100% - 10px);
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 15px;
    }

    .server-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-server {
        text-align: center;
    }
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('img/background.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 3em;
    font-family: IRANYekan, sans-serif;
    position: relative;
}

    .login-page::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 0;
    }

.login-form {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    padding: 50px 30px 30px;
    text-align: center;
    position: relative;
    min-height: 480px;
}

.login-close {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    transition: background 0.3s ease;
    z-index: 2;
}

    .login-close:hover {
        background: rgba(255,255,255,0.5);
        color: #fff;
        text-decoration: none;
    }

.login-page .user-avatar {
    font-size: 80px;
    color: #fff;
    margin-bottom: 10px;
}

.login-page h1 {
    font-weight: 300;
    font-size: 1.8rem;
    margin-bottom: 1.5em;
}

.login-page .form-content {
    padding: 40px 0;
}

    .login-page .form-content .input-underline {
        background: 0 0;
        border: none;
        box-shadow: none;
        border-bottom: 2px solid rgba(255,255,255,.4);
        color: #FFF;
        border-radius: 0;
    }

        .login-page .form-content .input-underline:focus {
            border-bottom: 2px solid #fff;
        }

.login-page .input-lg {
    height: 46px;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.3333333;
    border-radius: 0;
}

.login-page .btn-info {
    border-radius: 50px;
    box-shadow: 0 0 0 2px rgba(255,255,255,.8) inset;
    color: rgba(255,255,255,.8);
    background: 0 0;
    border-color: transparent;
    font-weight: 400;
    font-family: IRANYekan, sans-serif;
}

    .login-page .btn-info:hover {
        background: rgba(255,255,255,.1);
        color: #fff;
    }

.login-page .forgot-link {
    color: rgba(255,255,255,.8);
    font-size: 1.4rem;
}

    .login-page .forgot-link:hover {
        color: #fff;
    }

.login-page input[type='text']::-webkit-input-placeholder,
.login-page input[type='password']::-webkit-input-placeholder {
    color: #fff;
}

.login-page input[type='text']:-moz-placeholder,
.login-page input[type='password']:-moz-placeholder {
    color: #fff;
}

.login-page input[type='text']::-moz-placeholder,
.login-page input[type='password']::-moz-placeholder {
    color: #fff;
}

.login-page input[type='text']:-ms-input-placeholder,
.login-page input[type='password']:-ms-input-placeholder {
    color: #fff;
}

/* Custom scrollbar */
html {
    scrollbar-color: #3a4568 #0a0f1c;
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0f1c;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3a4568, #232c46);
    border: 2px solid #0a0f1c;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold), var(--gold-light));
}

::-webkit-scrollbar-corner {
    background: #0a0f1c;
}
