/* Reset & Base */
body {
    font-family: Arial, sans-serif;
    background-image: url('../images/websitebackground.png');
    background-size: cover;
    background-attachment: fixed;
    color: #e0e0e0;
    margin: 0;
    padding: 10px;
    position: relative;
}
body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: -1;
    pointer-events: none;
}
.banner {
    width: 100%;
    margin: 0 auto 20px;
    display: block;
}
.page-footer {
    background: #111;
    color: #999;
    text-align: center;
    padding: 15px 10px;
    margin-top: 20px;
    border-top: 2px solid #ff4500;
    font-size: 0.85em;
}
.page-footer .treemt {
    color: #ff4500;
}

.discord-link {
    display: inline-block;           /* make it box‑like */
    background-color: #5865F2;       /* Discord’s blurple */
    color: #ffffff;                  /* white text */
    text-decoration: none;           /* remove underline */
    padding: 10px 20px;              /* comfortable click area */
    border-radius: 4px;              /* slightly rounded corners */
    font-weight: bold;               /* stand out */
    transition: background 0.2s;     /* smooth hover */
}
.discord-icon {
  width: 18px;       /* or whatever size you prefer */
  height: 18px;
  vertical-align: middle;
  margin-right: 6px; /* space between icon and text */
}

.discord-link:hover {
    background-color: #4752C4;       /* darker on hover */
}

/* Palworld logo above server name */
.palworld-logo {
    display: block;           /* so margin: auto will center it */
    margin: 0 auto 10px;      /* 10px space below */
    max-width: 300px;         /* scale to taste */
    height: auto;             /* keep it proportional */
}


/* === Tab Bars === */
.tabs {
    display: flex;
    align-items: center;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
    margin: 0 auto 20px;
    max-width: 90%;
    overflow-x: auto;
    scrollbar-width: thin;
}
.tabs::-webkit-scrollbar {
    height: 8px;
}
.tabs::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* Section labels */
.tabs .tabs-label {
    flex: 0 0 auto;
    margin-right: 10px;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff8c00;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 6px;
    white-space: nowrap;
}

/* === Tab Buttons === */
.tab {
    flex: 1 0 auto;
    margin: 5px;
    padding: 15px 20px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    background: rgba(30, 30, 30, 0.9);
    color: #e0e0e0;
    border-radius: 10px;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    white-space: nowrap;
}
.tab:hover {
    background: rgba(255, 140, 0, 0.9);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.5);
}
.tab.active {
    background: rgba(255, 140, 0, 0.9);
    color: #fff;
    border: 1px solid rgba(255, 140, 0, 0.8);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.7);
}

/* === Chart & Content Containers === */
.chart-container {
    width: 100%;
    max-width: 90%;
    margin: 20px auto;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 140, 0, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
    display: none;
}
.chart-container.active {
    display: block;
}

input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

/* Players Chart + Server Info */
.players-chart-container {
    display: flex;
    max-width: 90%;
    margin: 20px auto;
    gap: 20px;
}
.players-chart-container .chart-container {
    flex: 2;
}
#serverInfoColumn {
    flex: 1;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
    padding: 20px;
    max-height: 500px;
    overflow-y: scroll;
    margin: 0;
    border: 1px solid rgba(255, 140, 0, 0.5);
}
#serverInfoColumn::-webkit-scrollbar {
    display: none;
}
#serverInfoList {
    list-style: none;
    padding: 0;
}
#serverInfoList li {
    margin-bottom: 10px;
    transition: color 0.3s;
}
#serverInfoList li:hover {
    color: rgba(255, 140, 0, 0.8);
}

/* iframe Embeds */
iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
    background: rgba(30, 30, 30, 0.9);
}

/* Other Servers Section */
#otherServersContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0 auto 20px;
    gap: 20px;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
    border: 1px solid rgba(255, 140, 0, 0.5);
    max-width: 90%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
#otherServersContainer iframe {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
    background: rgba(30, 30, 30, 0.9);
    margin: 0 auto;
}

/* Server Link Gallery */
.server-link {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.server-link img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.server-link img:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(255, 140, 0, 0.7);
}

/* === Support Ticket Card === */
.ticket-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 140, 0, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
    text-align: center;
}

.ticket-card .highlight-title {
    color: rgba(255, 140, 0, 0.9);
    margin-bottom: 10px;
}

.ticket-card p {
    color: #e0e0e0;
    margin-bottom: 15px;
    line-height: 1.4;
}

.ticket-button {
    background-color: #ff8c00;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.ticket-button:hover {
    background-color: #ff6500;
    transform: translateY(-2px);
}


/* Copy Notification */
#copyMessage {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 150, 30, 0.9);
    padding: 10px;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
}

/* Info & Feature Cards */
.server-info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
}
.info-card,
.features-card {
    background: rgba(50, 50, 50, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 140, 0, 0.5);
}
.highlight-title {
    color: rgba(255, 140, 0, 0.9);
    margin-bottom: 15px;
}
.highlight {
    color: #fff;
    font-weight: bold;
}

/* Buttons */
.copy-button,
.connect-button {
    background-color: rgba(255, 140, 0, 0.9);
    border: none;
    padding: 10px 20px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
    margin-right: 10px;
}
.copy-button:hover,
.connect-button:hover {
    background-color: rgba(255, 100, 0, 0.9);
    transform: translateY(-2px);
}

/* Features list */
.features-list {
    list-style: none;
    padding: 0;
}
.features-list li {
    margin: 10px 0;
}
.info-text {
    margin-top: 15px;
}


/* Discord tab text‑only, keeping blurple */
.tab.discord-tab {
    background-color: #5865F2;   /* Discord blurple */
    background-image: none;      /* remove old banner image */
    color: #ffffff;              /* white text */
}
.tab.discord-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.0);
    pointer-events: none;
}
.tab.discord-tab:hover {
    transform: translateY(-2px);
}

.primary-tabs .tab.donate-tab {
    background: linear-gradient(135deg, #ff9800, #ff3d00) !important;
    box-shadow:
      0 0 15px rgba(255,140,0,0.8),
      inset 0 0 10px rgba(255,255,255,0.2);
}



/* Hide by default (inherited from .chart-container) */
#FunctionsContainer.chart-container {
    display: none;
}

/* When active, flex‑center */
#FunctionsContainer.chart-container.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}
/* Lock the iframe to its natural size so centering works */
#FunctionsContainer.chart-container.active iframe {
    width: 500px;
    height: 488px;
}

/* Hide by default (inherited from .chart-container) */
#FAQContainer.chart-container {
    display: none;
}

/* When active, flex‑center */
#FAQContainer.chart-container.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}
/* Lock the iframe to its natural size so centering works */
#FAQContainer.chart-container.active iframe {
    width: 500px;
    height: 488px;
}

/* Panel Buttons Section */
.panel-tabs {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Image‑only panel buttons */
.panel-button {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
}
.panel-button .panel-icon {
    width: 256px;
    height: 256px;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.panel-button:hover .panel-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Forums button special color */
.ext-tab.forums-tab {
  background: rgba(0, 120, 255, 0.9);   /* blue */
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 120, 255, 0.4);
  border: 1px solid rgba(0, 120, 255, 0.8);
}

.ext-tab.forums-tab:hover {
  background: rgba(0, 170, 255, 1);
  box-shadow: 0 6px 10px rgba(0, 170, 255, 0.7);
}


/* Responsive tweaks */
@media (max-width: 768px) {
    .panel-button .panel-icon {
        width: 45%;
        height: auto;
    }
    .players-chart-container {
        flex-direction: column;
    }
    #serverInfoColumn {
        max-height: 300px;
    }
    /* Smaller tab‑backgrounds */
    .tab.discord-tab,
    .tab.donate-tab {
        background-size: 70% auto !important;
    }
}
@media (max-width: 480px) {
    .panel-button .panel-icon {
        width: 100%;
        height: auto;
    }
    body {
        font-size: 14px;
    }
    .tabs {
        padding: 5px;
    }
    .tab {
        font-size: 12px;
        padding: 10px;
    }
    .chart-container {
        padding: 10px;
    }
    h1 {
        font-size: 1.8em;
    }
    /* Even smaller tab‑backgrounds */
    .tab.discord-tab,
    .tab.donate-tab {
        background-size: 50% auto !important;
    }
}
@media (min-width: 1200px) {
    .chart-container {
        max-width: 70%;
    }
    .tabs {
        max-width: 70%;
    }
}
