:root {
    --primary-color: #3498db; /* Blue */
    --secondary-color: #87CEEB; /* Light Blue */
    --white-color: #ffffff;
    --text-color: #333;
    --light-text-color: #555;
    --bg-color: #f4f7f6;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --font-family: 'Poppins', sans-serif;
}

/* --- Base & Animations --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    background-color: var(--bg-color);
    color: var(--text-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

main {
    animation: fadeIn 0.5s ease-out;
}

/* --- Header & Navigation --- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

header h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav li {
    margin-left: 25px;
}

header nav a {
    text-decoration: none;
    color: var(--light-text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

header nav a:hover {
    color: var(--primary-color);
}

header nav a.active {
    color: var(--primary-color);
}

header nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}


/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    text-align: center;
    padding: 6rem 1rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    animation: fadeIn 1s ease-out 0.2s both;
}

.hero p {
    font-size: 1.3rem;
    font-weight: 300;
    animation: fadeIn 1s ease-out 0.5s both;
}

/* --- Content Sections (Card Layout) --- */
.page-section {
    padding: 4rem 1rem;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--white-color);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.page-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-content, .discord-presence {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Unified Discord Community Card Styling */
.discord-community-card {
    max-width: 600px;
    margin: 2rem auto 0 auto;
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.community-card-banner {
    padding: 15px 20px;
    min-height: 79px; /* Reserve space: 48px avatar + 15*2 padding + 1px border */
    border-bottom: 1px solid #e9ecef;
    background-color: #fdfdfd;
}

#member-banner-content {
    display: flex;
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

#member-banner-content.fading {
    opacity: 0;
}

#member-banner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: var(--bg-color);
}

#member-banner-info #member-banner-name {
    margin: 0 0 4px 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

#member-banner-info #member-banner-type {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    visibility: hidden; /* Hide badge until populated */
}

#member-banner-info #member-banner-type.visible {
    visibility: visible;
}

#member-banner-type.suzuka-member {
    background-color: var(--primary-color);
    color: var(--white-color);
}

#member-banner-info #member-banner-type.suzuka-user {
    background-color: #e9ecef;
    color: var(--light-text-color);
}

#member-banner-info #member-banner-type.server-booster {
    background: linear-gradient(135deg, #f8cdda, #a684e3);
    color: white;
    font-weight: 600;
}

/* --- New Animation Keyframes --- */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- Animation Classes --- */
.community-card-banner {
    position: relative;
    overflow: hidden;
}

#member-banner-content.slide-in {
    animation: slideIn 0.5s forwards ease-out;
}

#member-banner-content.slide-out {
    animation: slideOut 0.5s forwards ease-in;
}

.is-booster::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    animation: shimmer 1.5s ease-out;
    animation-delay: 0.5s;
}



/* --- Body of the Community Card --- */
.discord-card-header {
    display: flex;
    align-items: center;
    padding: 25px;
}

.discord-card-icon-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 20px;
    background-color: var(--bg-color);
    border: 1px solid #e9ecef;
}

.discord-card-info h3 {
    margin: 0 0 8px 0;
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 600;
}

#discord-server-description {
    font-size: 1rem;
    color: var(--light-text-color);
    line-height: 1.6;
}

.discord-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
}

.discord-card-footer .discord-presence {
    margin: 0;
    display: flex;
    align-items: center;
    color: var(--light-text-color);
    font-size: 1rem;
}

.online-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #2ecc71;
    border-radius: 50%;
    margin-right: 10px;
}

.discord-join-button {
    background-color: #5865F2;
    color: var(--white-color);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(88, 101, 242, 0.2);
}

.discord-join-button:hover {
    background-color: #4f5bda;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(88, 101, 242, 0.3);
}





/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    background-color: transparent; /* Sits on body background */
    color: #999;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* --- Loader Styles --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

#loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


