/* ⬇️ Customize variables here ⬇️ */
:root {
    --background-color:#0f0f0f;
    --text-color: #ffffff;
    --link-color: #808080c9;
    --link-hover-color: #1bff07;    
    --box-shadow-color: #0f0f0f;
    --button-background: linear-gradient(135deg, #ff0505f6, #38ff06);
    --button-background-alt: linear-gradient(135deg, #fb1212, #ff6b6b);
    --button-border: #ed0d0d30;
    --button-hover-filter: linear-gradient(135deg, #ff0505f6, #38ff06);
    --pulse-shadow-color: rgba(0, 0, 0, 0.5);
    --online-players-bg: linear-gradient(135deg, #ff0505f6, #38ff06);
    --online-players-border: #ffffff30;
    --gamemodes-bg: linear-gradient(135deg, #ff0505f6, #38ff06);
    --gamemodes-border: #ffffff30;
    --footer-bg: #0f0f0f;
    --footer-text-color: #808080;
}
    
/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Default styles for the body */
body {
    font-family: "Outfit", sans-serif;
    background-color: var(--background-color);
}

/* Screen reader-only element */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container with responsive max-width */
.container {
    max-width: 100rem;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

@media (max-width: 48rem) {
    .container {
        max-width: 45rem;
    }
}

@media (min-width: 48.0625rem) and (max-width: 64rem) {
    .container {
        max-width: 40rem;
    }
}

@media (min-width: 64.0625rem) {
    .container {
        max-width: 75rem;
    }
}

/* Hero section */
.hero {
    position: relative;
    width: 100%;
    background-image: url("/images/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    box-shadow: 0px -50px 299px 155px var(--box-shadow-color) inset;
    padding: 0 1rem;
}

.hero h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    25%,
    75% {
        transform: scale(1.02);
    }
    50% {
        transform: scale(1);
    }
}

/* Image within the hero */
.hero img {
    animation: pulse 4s infinite;
    filter: drop-shadow(0 0 1.75rem var(--pulse-shadow-color));
    width: 850px;
    height: auto;   
    max-width: 90%;
}

/* Vote links section */
.vote-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

/* Style for vote links */
.vote-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 7px;
    border: 2px solid var(--button-border);
    filter: drop-shadow(0 6px 0rem var(--button-hover-filter));
    background: var(--button-background);
    padding: 2rem 0;
    text-align: center;
    width: 100%;
    transition: all 0.1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.vote-links a img {
    width: 2.5rem;
    height: 2.5rem;
}

/* Hover effect for vote links */
.vote-links a:hover {
    filter: drop-shadow(0 0 0);
    transform: translate(0, 5px);
}

.online-players {
    text-align: center;
    margin-top: 6rem;
    padding: 2rem 2rem;
    gap: 2rem;
    width: 100%;
    color: var(--text-color);
    border: 2px solid var(--online-players-border);
    filter: drop-shadow(0 6px 0rem var(--button-hover-filter));
    background: var(--online-players-bg);
    font-weight: 500;
    font-size: 1.5rem;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

.online-players:hover {
    filter: drop-shadow(0 0 0);
    transform: translate(0, 5px);
}

.online-players:active {
    background-color: var(--link-hover-color);
}

.online-players button {
    background: none;
    border: none;
    width: 100%;
    padding: 2rem 0;
    font: inherit;
    cursor: pointer;
}

.gamemodes-info {
    text-align: center;
    margin-top: 6rem;
    padding: 2rem 2rem;
    gap: 2rem;
    width: 100%;
    color: var(--text-color);
    border: 2px solid var(--online-players-border);
    filter: drop-shadow(0 6px 0rem var(--button-hover-filter));
    background: var(--online-players-bg);
    font-weight: 500;
    font-size: 1.5rem;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

.gamemodes-info:hover {
    filter: drop-shadow(0 0 0);
    transform: translate(0, 5px);
}

.gamemodes-info:active {
    background-color: var(--link-hover-color);
}

.gamemodes-info button {
    background: none;
    border: none;
    width: 100%;
    padding: 2rem 0;
    font: inherit;
    cursor: pointer;
}

strong {
    font-weight: 900;
}

.server-ip {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ff0505f6, #38ff06);
    border: 1px solid var(--button-border);
    border-radius: 7px;
}

.server-ip p {
    color: #000000;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.server-ip h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;  
    letter-spacing: 0.5px;
}

.copy-ip-btn {
    background: var(--button-background);
    color: var(--text-color);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
    filter: drop-shadow(0 3px 0rem var(--button-hover-filter));
}

.copy-ip-btn:hover {
    filter: drop-shadow(0 0 0);
    transform: translate(0, 3px);
}

footer {
    text-align: center;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 300;
    background: var(--footer-bg);
    border-radius: 7px;
    margin-top: 8rem;
    color: var(--footer-text-color);
}

footer a {
    text-decoration: none;
    color: var(--link-color);
}

/* Team Page Styles */
.team-header {
    text-align: center;
    margin: 3rem 0;
    color: var(--text-color);
}

.team-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--button-background);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-header p {
    font-size: 1.2rem;
    color: var(--link-color);
    font-weight: 300;
}

.team-section {
    margin: 4rem 0;
}

.team-rank {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--button-border);
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.team-member {
    background: linear-gradient(135deg, #ff0505f6, #38ff06);
    border: 2px solid var(--button-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 300px;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.team-member:hover::before {
    left: 100%;
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: var(--link-hover-color);
    box-shadow: 0 10px 30px rgba(18, 189, 251, 0.3);
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--button-border);
    transition: all 0.3s ease;
}

.team-member:hover .member-avatar {
    border-color: var(--link-hover-color);
    transform: scale(1.1);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.member-role {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-role.owner {
    background: linear-gradient(135deg, #ff0000, #ff4444);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.5);
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.member-role.admin {
    background: linear-gradient(135deg, #fe00b6, #04a8f5);
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.member-role.junior-admin {
    background: linear-gradient(135deg, #00e9fe, #04a8f5);
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 237, 78, 0.3);
}

.member-role.developer {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.member-role.junior-developer {
    background: linear-gradient(135deg, #ffed4e, #fff176);
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 237, 78, 0.3);
}

.member-role.senior-moderator {
    background: linear-gradient(135deg, #9cff00, #d4ff00);
    color: #000000;
    box-shadow: 0 4px 15px rgba(156, 255, 0, 0.3);
}

.back-to-home {
    text-align: center;
    margin: 4rem 0 2rem;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;
    border-radius: 7px;
    border: 2px solid var(--button-border);
    filter: drop-shadow(0 6px 0rem var(--button-hover-filter));
    background: var(--button-background);
    padding: 1.5rem 3rem;
    transition: all 0.1s ease-in-out;
}

.btn-home img {
    width: 2rem;
    height: 2rem;
}

.btn-home:hover {
    filter: drop-shadow(0 0 0);
    transform: translate(0, 5px);
}

@media (max-width: 48.0625rem) {
    .hero {
        box-shadow: 0px -45px 90px 45px var(--box-shadow-color) inset;
    }
    .online-players {
        margin-top: 1rem;
    }
    
    .vote-links {
        flex-direction: column;
    }
    .team-header h2 {
        font-size: 2rem;
    }
    .team-members {
        grid-template-columns: 1fr;
    }
    .team-member {
        max-width: 100%;
    }
}

/* Dashboard Styles */
.hero-small {
    height: 30vh;
}

.dashboard-header {
    text-align: center;
    margin: 2rem 0 3rem;
    color: var(--text-color);
}

.dashboard-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--button-background);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-header p {
    font-size: 1.1rem;
    color: var(--link-color);
    margin-bottom: 1rem;
}

.last-update {
    font-size: 0.9rem;
    color: var(--link-color);
    opacity: 0.7;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.8), rgba(30, 30, 30, 0.9));
    border: 2px solid var(--button-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: var(--link-hover-color);
    box-shadow: 0 5px 20px rgba(18, 189, 251, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dashboard-card h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.status-indicator {
    margin: 1rem 0;
}

.status-online {
    color: #38ff06;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-offline {
    color: #ff0505;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 1rem 0;
}

.stat-max {
    font-size: 1.5rem;
    color: var(--link-color);
}

.stat-unit {
    font-size: 1.5rem;
    color: var(--link-color);
    margin-left: 0.5rem;
}

.stat-text {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 1rem 0;
}

.card-detail {
    color: var(--link-color);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.card-detail span {
    color: var(--text-color);
    font-weight: 600;
}

.tps-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 1rem;
}

.tps-fill {
    height: 100%;
    background: linear-gradient(90deg, #38ff06, #9cff00);
    transition: width 0.3s ease;
    border-radius: 5px;
}

.dashboard-section {
    margin: 3rem 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--button-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.player-item {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.6), rgba(30, 30, 30, 0.8));
    border: 1px solid var(--button-border);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.player-item:hover {
    border-color: var(--link-hover-color);
    transform: translateX(5px);
}

.player-item img {
    width: 32px;
    height: 32px;
    border-radius: 5px;
}

.player-name {
    flex: 1;
    color: var(--text-color);
    font-weight: 600;
}

.player-ping {
    color: var(--link-color);
    font-size: 0.9rem;
}

.no-players {
    color: var(--link-color);
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.6), rgba(30, 30, 30, 0.8));
    border: 1px solid var(--button-border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.activity-time {
    color: var(--link-color);
    font-size: 0.9rem;
    min-width: 50px;
}

.activity-type {
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.activity-type.join {
    background: linear-gradient(135deg, #38ff06, #9cff00);
    color: #000;
}

.activity-type.leave {
    background: linear-gradient(135deg, #ff0505, #ff4444);
    color: #fff;
}

.activity-type.death {
    background: linear-gradient(135deg, #ff6b6b, #ff8888);
    color: #fff;
}

.activity-player {
    color: var(--text-color);
    font-weight: 600;
}

.activity-message {
    color: var(--link-color);
    flex: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.8), rgba(30, 30, 30, 0.9));
    border: 2px solid var(--button-border);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card.full-width {
    grid-column: 1 / -1;
}

.stat-card:hover {
    border-color: var(--link-hover-color);
}

.stat-card h4 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--button-border);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--link-color);
}

.stat-row span:last-child {
    color: var(--text-color);
    font-weight: 600;
}

.resource-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0 1rem;
}

.resource-fill {
    height: 100%;
    background: #38ff06;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.plugin-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.plugin-tag {
    background: linear-gradient(135deg, rgba(255, 5, 5, 0.3), rgba(56, 255, 6, 0.3));
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    border: 1px solid var(--button-border);
}

.death-list, .achievement-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.death-item, .achievement-item {
    color: var(--link-color);
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    font-size: 0.9rem;
}

.chat-feed {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chat-message {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    align-items: baseline;
}

.chat-time {
    color: var(--link-color);
    font-size: 0.8rem;
    min-width: 45px;
}

.chat-player {
    color: var(--link-hover-color);
    font-weight: 600;
}

.chat-text {
    color: var(--text-color);
    flex: 1;
}

@media (max-width: 48.0625rem) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header h2 {
        font-size: 2rem;
    }
    
    .hero-small {
        height: 25vh;
    }
}
