/* ============================================
   POSOSALOCHKA Main Website
   Matches SourceBans pososalochka theme 1:1
   ============================================ */

:root {
  --layout_main_code--color: 255, 102, 204;
  --layout_main--color: rgb(var(--layout_main_code--color));
  --layout_main--color_0_3: rgba(var(--layout_main_code--color), 0.3);
  --layout_main--color_0_15: rgba(var(--layout_main_code--color), 0.15);
  --theme-background: #05090a;
  --theme-text: #ffffff;
  --theme-text_light: #cccccc;
  --theme-text_light-hover: #ffffff;
  --theme-link: #6bc1ff;
  --theme-area_background_light: #0b0f11;
  --border--radius: 0px;
  --box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.5);
  --box-shadow--child: 0 0 0 1px rgba(34, 34, 34, 0.8), 0 0 40px 0 rgba(0, 0, 0, 0.5);
  --box--backgroundColor: #0b0f11;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

body {
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--theme-text);
  height: 100%;
  background-color: var(--theme-background);
  margin: 0;
  padding: 0;
  padding-top: 40px;
  cursor: inherit !important;
}

a {
  transition: color 0.2s ease;
  color: var(--theme-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =======================================
   MARQUEE — fixed at top, 1:1 match with SourceBans
   ======================================= */
.patron-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: #111;
    color: #ff66cc;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid #ff66cc;
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-sizing: border-box;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.marquee-inner {
    display: inline-block;
    padding-left: 100%;
    animation: scroll 15s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* =======================================
   PAGE CONTENT — Logo and Navigation
   ======================================= */
.page-content {
    max-width: none;
    margin: 0;
    padding: 20px 16px;
    margin-top: 0;
    padding-top: 0;
    text-align: center;
}

.coa {
    text-align: center;
    margin: 90px 0 5px 0;
}

.coa img {
    display: block;
    margin: 0 auto;
    width: 200px;
    height: auto;
}

.top-nav {
    text-align: center;
    margin: 20px 0;
    font-size: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222;
    font-family: 'Ubuntu', sans-serif;
    color: #aaaaaa;
}

.top-nav a {
    margin: 0 8px;
    text-decoration: none;
}

.main-link { color: #ff6b6b; }
.bans-link { color: #ffb86c; }
.stats-link { color: #6bc1ff; }
.vip-link { color: #ff66cc; }
.fastdl-link { color: #a1d8ff; }

.top-nav a:hover {
    text-decoration: underline;
}

/* =======================================
   MAIN CONTENT
   ======================================= */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    width: 100%;
}

/* =======================================
   SERVERS SECTION
   ======================================= */
.servers-section {
    margin-top: 40px;
    width: 100%;
}

.section-title {
    font-size: 24px;
    color: #ff66cc;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Ubuntu', sans-serif;
    text-align: center;
}

.servers-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.server-card {
    background-color: transparent;
    border: none;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-card:hover {
    background-color: rgba(255, 102, 204, 0.05);
}

.server-info {
    flex: 1;
    text-align: left;
}

.server-name {
    font-size: 20px;
    font-weight: 700;
    color: #6bc1ff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wip-badge {
    display: inline-block;
    background-color: #ff9800;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.server-wip {
    border-color: #ff9800;
    opacity: 0.9;
}

.server-wip:hover {
    border-color: #ff9800;
}

.server-details {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #cccccc;
    flex-wrap: wrap;
}

.server-detail {
    display: flex;
    align-items: center;
    gap: 6px;
}

.server-detail-label {
    color: #888;
}

.server-players,
.server-map {
    transition: none !important;
}

.server-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.server-status.online {
    background-color: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

.server-status.offline {
    background-color: #f44336;
}

.server-status.loading {
    display: none;
}

.join-button {
    background-color: #ff66cc;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Ubuntu', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.join-button:hover {
    background-color: #e855b5;
    transform: translateY(-2px);
}

.join-button:active {
    transform: translateY(0);
}

.join-button:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.loading {
    text-align: center;
    color: #888;
    font-size: 18px;
    padding: 40px;
}

.error {
    text-align: center;
    color: #f44336;
    font-size: 16px;
    padding: 20px;
    background-color: #1a0f0f;
    border: 1px solid #f44336;
}

/* =======================================
   BLINKIES SECTION
   ======================================= */
.blinkies-section {
    margin-top: 60px;
    width: 100%;
}

.blinkies-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background-color: transparent;
    border: none;
    min-height: 100px;
}

.blinkie {
    display: inline-block;
    vertical-align: middle;
}

.blinkie img {
    display: block;
    max-height: 88px;
    max-width: 200px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}


/* =======================================
   RESPONSIVE
   ======================================= */
@media (max-width: 768px) {
    body {
        padding-top: 34px;
    }

    .coa img {
        width: 150px;
    }

    .top-nav {
        font-size: 14px;
    }

    .server-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .join-button {
        width: 100%;
    }

    .server-details {
        flex-direction: column;
        gap: 8px;
    }

    .blinkies-container {
        padding: 15px;
    }

    .blinkie img {
        max-height: 60px;
        max-width: 150px;
    }
}
