/* ===== style.css ===== */
/* SilkroadTopServers.com - Main Stylesheet */

/* RESET ȘI SETĂRI DE BAZĂ */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    background-color: #0b0b0b !important;
}

body {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #0b0b0b !important;
    color: #f1f1f1;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* FORȚĂ BACKGROUND NEGRU PESTE TOT */
body, main, .container, .container-fluid, .row, .col, 
.navbar, footer, .card, .modal, .dropdown-menu {
    background-color: #0b0b0b !important;
}

/* Bootstrap overrides */
.bg-dark {
    background-color: #111 !important;
}

.text-warning {
    color: #ffb84d !important;
}

.btn-warning {
    background-color: #ffb84d !important;
    border-color: #ffb84d !important;
    color: #000 !important;
}

.btn-outline-warning {
    border-color: #ffb84d !important;
    color: #ffb84d !important;
}

.btn-outline-warning:hover {
    background-color: #ffb84d !important;
    color: #000 !important;
}

/* ==== FORCE upcoming servers to center on phone ==== */
@media (max-width: 768px) {
    li.nav-item.upcoming-item {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        text-align: center !important;
    }

    li.nav-item.upcoming-item > a {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
}

/* Stil Buton Alchemy Workshop */
.alchemy-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 184, 77, 0.1);
    border: 1px solid #ffb84d;
    color: #ffb84d !important;
    padding: 5px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    font-size: 13px;
    white-space: nowrap !important;
    flex-shrink: 0;
    width: auto;
    max-width: fit-content;
}

@media (max-width: 480px) {
    .alchemy-btn {
        padding: 4px 10px;
        font-size: 12px;
        gap: 5px;
    }
    .alchemy-btn img {
        height: 18px;
        width: 18px;
    }
}

.alchemy-btn:hover {
    background: #ffb84d;
    color: #000 !important;
}

.alchemy-btn img {
    height: 22px;
    width: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ====== STAT BOX ====== */
.stat-box {
    background: #111;
    border: 2px solid #ffb84d;
    border-radius: 10px;
    padding: 15px 25px;
    max-width: 250px;
    box-shadow: 0 0 15px rgba(255, 184, 77, 0.5);
}

.stat-number {
    font-size: 26px;
    font-weight: 900;
    color: #ffb84d;
    margin: 0;
}

@media (max-width: 768px) {
    .stat-box {
        max-width: 200px;
        padding: 12px 20px;
    }
    .stat-number {
        font-size: 22px;
    }
}

/* Ascunde bannerele laterale pe ecrane mici */
@media (max-width: 992px) {
    .left-banner,
    .right-banner,
    .side-banner,
    .side-banner.left,
    .side-banner.right {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Navigație */
.navbar {
    background-color: #111 !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.8);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffb84d;
}

/* Carduri */
.card {
    background-color: #1c1c1c !important;
    border: 1px solid #333;
    color: #ddd;
    position: relative;
    transition: 0.3s;
}

.card-header, .card-footer {
    background-color: rgba(0,0,0,0.2) !important;
    border-bottom: 1px solid #333;
}

/* Butoane */
.btn-primary {
    background-color: #ff8000;
    border-color: #ff8000;
    color: #000;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #ffb84d;
    border-color: #ffb84d;
}

/* Countdown */
.countdown {
    color: #ffb84d;
    font-size: 13px;
    margin-top: 5px;
}

.text-danger {
    color: #ff4444 !important;
}

/* Bannere */
.banner {
    width: 100%;
    max-width: 468px;
    max-height: 60px;
    object-fit: contain;
    background: #000;
    border-radius: 5px;
    margin-bottom: 10px;
}

.server-meta {
    font-size: 13px;
    color: #aaa;
}

.vote-disabled {
    opacity: 0.6;
    pointer-events: none;
}

a.text-warning:hover {
    color: #ffc266 !important;
}

.social-links a {
    margin-right: 8px;
    font-size: 18px;
}

/* Premium server styles */
.premium-server {
    border: 2px solid #FFD700 !important;
}

.premium-server:hover {
    transform: scale(1.03);
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.premium-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 18px;
    font-size: 14px;
    font-weight: 800;
    color: #111;
    letter-spacing: 1px;
    background: linear-gradient(145deg, #ffeb3b, #ffc107, #ffb300, #ff9800);
    border: 3px solid #fff59d;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.9), 0 0 10px rgba(255, 235, 130, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    z-index: 10;
    animation: goldenPulse 2.5s infinite ease-in-out;
    clip-path: polygon(5% 0, 95% 0, 100% 35%, 100% 100%, 0 100%, 0 35%);
}

@keyframes goldenPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), inset 0 0 15px rgba(255, 255, 255, 0.4);
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 45px rgba(255, 235, 150, 1), inset 0 0 25px rgba(255, 255, 255, 0.6);
        transform: translateX(-50%) scale(1.05);
    }
}

/* Side Banners */
.side-banner {
    position: absolute;
    top: 150px;
    width: 160px;
    height: 600px;
    background: #000;
    border-radius: 6px;
    z-index: 999;
}

.side-banner.left {
    left: 10px;
}

.side-banner.right {
    right: 10px;
}

.side-banner.left:nth-of-type(1) {
    top: 150px !important;
}

.side-banner.left:nth-of-type(2) {
    top: 780px !important;
}

.side-banner.right:nth-of-type(1) {
    top: 150px !important;
}

.side-banner.right:nth-of-type(2) {
    top: 780px !important;
}

.side-banner img {
    width: 160px;
    height: 600px;
    object-fit: contain;
    border: 2px solid #ffb84d;
    border-radius: 6px;
}

.side-banner .placeholder {
    width: 100%;
    height: 100%;
    background: #1c1c1c;
    color: #ffb84d;
    font-weight: bold;
    border: 2px dashed #444;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    box-sizing: border-box;
}

/* 📌 Mobile optimizations */
@media (max-width: 768px) {
    .navbar-brand {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        display: block !important;
    }

    .navbar-brand img {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    .footer-partner {
        text-align: center !important;
    }

    .footer-partner ul {
        padding-left: 0 !important;
    }

    .footer-partner li {
        justify-content: center !important;
        text-align: center !important;
        display: flex !important;
    }

    .footer-partner img {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
}

/* Navbar spacing */
.navbar-nav .nav-item {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}

.navbar-nav .btn {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    line-height: 1.2 !important;
}

.navbar-nav .nav-link {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    line-height: 1.2 !important;
}

@media (min-width: 992px) {
    .navbar-nav {
        flex-wrap: nowrap !important;
    }

    .navbar-nav .nav-item {
        white-space: nowrap !important;
    }

    .navbar-collapse {
        flex-wrap: nowrap !important;
    }

    .navbar .container {
        flex-wrap: nowrap !important;
    }
}

/* Partners section */
.partner-row a.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.partner-row a.partner-item img {
    width: 70px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

.partner-row a.partner-item:hover {
    transform: scale(1.10);
    box-shadow: 0 0 12px rgba(255, 184, 77, 0.5);
}

@media (max-width: 768px) {
    .partner-row {
        gap: 20px !important;
    }
    .partner-row a.partner-item img {
        width: 60px;
    }
}

@media (max-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .navbar-nav {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .navbar-nav .nav-item {
        width: 100%;
        margin: 5px 0;
    }
}

/* Animații */
.glow-anim {
    animation: glowPulse 2s infinite;
}

.premium-anim {
    animation: premiumPulse 3s infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 6px #ffb84d, 0 0 12px #ff8000; }
    50% { box-shadow: 0 0 15px #ffd966, 0 0 25px #ff8000; }
}

@keyframes premiumPulse {
    0%, 100% { box-shadow: 0 0 8px #ffcc66, 0 0 18px #ffb84d; }
    50% { box-shadow: 0 0 20px #ffe680, 0 0 35px #ff9900; }
}

/* Top banners grid */
.top-banners-grid {
    display: grid;
    grid-template-columns: repeat(2, 468px);
    gap: 14px 24px;
    justify-content: center;
    margin: 20px auto;
}

@media (max-width: 991px) {
    .top-banners-grid {
        grid-template-columns: 1fr;
    }
}

.top-banner-item {
    width: 468px;
    height: 60px;
}

.top-banner-item img {
    width: 468px;
    height: 60px;
    object-fit: contain;
    background: #000;
    border-radius: 6px;
    border: 2px solid #ffb84d;
}

.top-banner-placeholder {
    width: 468px;
    height: 60px;
    background: #1c1c1c;
    color: #ffb84d;
    font-weight: bold;
    border: 2px dashed #444;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Sort bar */
.sort-bar {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.sort-btn {
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 6px;
}

.sort-btn.active {
    border: 2px solid #fff;
    box-shadow: 0 0 10px #ffb84d;
}

/* Vote button */
@keyframes fadeInOutBtn {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.vote-btn {
    animation: fadeInOutBtn 3s infinite;
}

.vote-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Social links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #ffb84d;
    border-radius: 10px;
    background: #000;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    font-size: 16px;
}

.social-links a:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 184, 77, 0.6);
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 13px !important;
    }
    .social-icon {
        width: 20px !important;
        height: 20px !important;
    }
    .social-links {
        justify-content: center !important;
        gap: 8px !important;
        flex-wrap: wrap;
    }
}

/* Footer SEO links */
.footer-seo-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

@media (min-width: 768px) {
    .footer-seo-links {
        grid-template-columns: 1fr 1fr;
        max-width: 360px;
        margin: 0 auto;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .footer-seo-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-seo-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-seo-links a:hover {
    color: #ffb84d;
    text-decoration: underline;
}

.footer-seo-links .section-title {
    grid-column: 1 / -1;
    margin-top: 10px;
    font-weight: 700;
    color: #ffb84d;
    text-align: center;
}

/* Statistics list */
.sts-stats-list .nav-link {
    font-size: 13px;
    line-height: 1.6;
    padding-left: 0 !important;
}

@media (max-width: 768px) {
    .sts-stats-list .nav-link {
        font-size: 12px;
    }
}

/* Footer styling */
footer {
    background-color: #111 !important;
}

footer h5 {
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

footer a.nav-link {
    transition: color 0.2s ease;
    padding-left: 0 !important;
}

footer a.nav-link:hover {
    color: #ffb84d !important;
    text-decoration: underline;
}

footer img {
    border-radius: 8px;
}

/* Mobile bottom bar */
#mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 9999;
    background: #0d0d0d;
}

.mobile-bottom-btn {
    flex: 1;
    padding: 14px 10px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-align: center;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #222;
}

.mobile-discord, .mobile-facebook {
    background: #111;
}

.mobile-bottom-btn i {
    font-size: 22px;
    margin-right: 8px;
}

.mobile-bottom-btn:hover {
    opacity: 0.85;
    color: white !important;
    text-decoration: none;
}

@media (min-width: 992px) {
    #mobile-bottom-bar {
        display: none !important;
    }
}

/* STS Discord Popup */
#sts-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

#sts-popup {
    background: #0b0f1a;
    border: 2px solid #ffb84d;
    border-radius: 14px;
    max-width: 520px;
    width: 92%;
    box-shadow: 0 0 40px rgba(255,184,77,0.35);
    position: relative;
}

#sts-popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    color: #ffb84d;
    cursor: pointer;
    font-weight: bold;
    z-index: 2;
}

#sts-popup img {
    width: 180px;
    height: auto;
    display: block;
    margin: 15px auto 10px;
    border-radius: 5px;
}

#sts-popup-content {
    padding: 16px 18px 20px;
    text-align: center;
    color: #e6e6e6;
    font-size: 15px;
    line-height: 1.4;
}

#sts-popup-content strong {
    color: #ffb84d;
}

#sts-join-btn {
    margin-top: 14px;
    display: inline-block;
    background: linear-gradient(135deg, #ffb84d, #ff9900);
    color: #000;
    padding: 10px 26px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

#sts-join-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 18px rgba(255,184,77,.6);
    color: #000;
    text-decoration: none;
}

/* Cursor personalizat */
body, html {
    cursor: url("/images/cursor_1.png?v=1"), auto !important;
}

a, button, .btn, input[type=submit], li, .clickable {
    cursor: url("/images/cursor_2.webp?v=1"), pointer !important;
}

/* Pagination */
.page-link {
    background-color: #1c1c1c !important;
    border-color: #333 !important;
    color: #ffb84d !important;
}

.page-item.active .page-link {
    background-color: #ffb84d !important;
    border-color: #ffb84d !important;
    color: #000 !important;
}

/* Form controls */
.form-control, .form-control-sm {
    background-color: #1c1c1c !important;
    border-color: #ffb84d !important;
    color: #f1f1f1 !important;
}

.form-control:focus {
    background-color: #222 !important;
    border-color: #ffb84d !important;
    box-shadow: 0 0 0 0.2rem rgba(255,184,77,0.25) !important;
    color: #fff !important;
}

/* Alert styling */
.alert-success {
    background-color: #1c3b1c !important;
    border-color: #2d6a2d !important;
    color: #d4edda !important;
}

.alert-danger {
    background-color: #3b1c1c !important;
    border-color: #6a2d2d !important;
    color: #f8d7da !important;
}

/* Butoane Navigație - Sus și Jos */
#scrollTopBtn,
#scrollBottomBtn {
    position: fixed;
    right: 35px;
    z-index: 9999;
    background: linear-gradient(145deg, #ffcc66, #ff9900);
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 184, 77, 0.6);
    transition: all 0.3s ease-in-out;
    animation: goldPulse 2.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid rgba(255, 215, 0, 0.5);
}

#scrollTopBtn {
    bottom: 100px; /* Sus deasupra celui de jos */
}

#scrollBottomBtn {
    bottom: 35px; /* Jos */
}

#scrollTopBtn:hover,
#scrollBottomBtn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(255, 200, 100, 0.9);
    background: linear-gradient(145deg, #ffd966, #ffb84d);
    border-color: #fff;
}

#scrollTopBtn svg,
#scrollBottomBtn svg {
    width: 26px;
    height: 26px;
    stroke: #000;
    transition: transform 0.3s ease;
}

#scrollTopBtn:hover svg {
    transform: translateY(-3px);
}

#scrollBottomBtn:hover svg {
    transform: translateY(3px);
}

/* Animație pentru puls auriu */
@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 0 10px #ffb84d, 0 0 20px #ff8000;
    }
    50% {
        box-shadow: 0 0 25px #ffd966, 0 0 40px #ffcc33;
    }
}

/* Poziționare pentru mobile */
@media (max-width: 768px) {
    #scrollTopBtn,
    #scrollBottomBtn {
        width: 42px;
        height: 42px;
        right: 15px;
    }
    
    #scrollTopBtn {
        bottom: 85px;
    }
    
    #scrollBottomBtn {
        bottom: 25px;
    }
    
    #scrollTopBtn svg,
    #scrollBottomBtn svg {
        width: 22px;
        height: 22px;
    }
}

/* Ascunde butonul de sus când ești aproape de top */
#scrollTopBtn.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Ascunde butonul de jos când ești aproape de bottom */
#scrollBottomBtn.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Tranziție pentru ascundere */
#scrollTopBtn,
#scrollBottomBtn {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Clasa hide - ascunde butoanele */
#scrollTopBtn.hide,
#scrollBottomBtn.hide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
