@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&display=swap');

:root {
    --bg-base: #050505;
    --bg-surface: #111111;
    --acc-primary: #ffaa00;
    --acc-secondary: #ff5555;
    --text-main: #f5f5f5;
    --text-dim: #dddddd;
    --border-color: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(15, 5, 0, 0.5);
    --glass-border: rgba(255, 255, 255, 0.15);
    --hover-bg: rgba(255, 170, 0, 0.15);
    --gradient-brand: linear-gradient(135deg, var(--acc-primary) 0%, var(--acc-secondary) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    background-image:
        linear-gradient(to bottom, rgba(15, 5, 0, 0.4), rgba(5, 5, 5, 0.9)),
        url('/images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::selection {
    background: #ffffff;
    color: #000000;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

nav .logo img {
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

nav .logo:hover img {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

nav ul li a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--acc-primary);
}

/* Minimalist Hero */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}

.hero-content {
    max-width: 1000px;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 35px;
    animation: fadeInUp 0.8s ease-out backwards;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 30px;
    letter-spacing: -2px;
    color: var(--acc-primary);
    animation: fadeInUp 1s ease-out 0.1s backwards;
}

.hero p {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-dim);
    font-weight: 400;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.btn-primary,
.btn-secondary {
    padding: 16px 35px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--acc-primary);
    color: var(--bg-base);
    border: 1px solid var(--acc-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--acc-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--acc-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--acc-primary);
    background: var(--hover-bg);
}

/* Warning Banner */
.warning-banner {
    background: rgba(255, 60, 0, 0.15);
    border-bottom: 1px solid rgba(255, 60, 0, 0.3);
    padding: 15px 5%;
    display: flex;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease-out;
    position: relative;
    overflow: hidden;
    transition: opacity 0.4s ease;
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1400px;
    width: 100%;
}

.warning-content i.fa-triangle-exclamation {
    color: #ff5555;
    font-size: 24px;
    flex-shrink: 0;
}

.warning-content p {
    color: var(--text-main);
    font-size: 15px;
    margin: 0;
    flex: 1;
}

.warning-content strong {
    color: #ff5555;
}

.warning-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
}

.warning-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.warning-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 85, 85, 0.8);
    width: 100%;
    transform-origin: left;
    animation: shrinkTimer 10s linear forwards;
}

.warning-banner:hover .warning-progress {
    animation-play-state: paused;
}

@keyframes shrinkTimer {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* Sections */
.features-section,
.server-info-section,
.page-content {
    padding: 80px 8%;
}

.server-info-section {
    padding-top: 0;
    padding-bottom: 120px;
}

.section-title {
    margin-bottom: 60px;
    text-align: left;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-title p {
    color: var(--text-dim);
    font-size: 18px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
    border-color: #555;
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 24px;
    color: var(--acc-primary);
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 15px;
}

/* Info Box Override */
.info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.info-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.info-box:hover {
    border-color: rgba(255, 170, 0, 0.5);
}

.info-box .icon-highlight {
    font-size: 24px;
    color: var(--acc-primary);
    margin-bottom: 25px;
    display: block;
}

.info-box h3 {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
}

.info-box p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 15px;
}

.info-box p:last-of-type {
    border-bottom: none;
}

.info-box p strong {
    color: var(--acc-primary);
    font-weight: 500;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--hover-bg);
    color: var(--acc-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 25px;
}

.small-text {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 15px;
}

/* Rules Section */
.page-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
}

.rules-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rule-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px;
    display: flex;
    gap: 30px;
}

.rule-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dim);
}

.rule-text h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.rule-text p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
}

.rule-list {
    list-style: none;
    padding-left: 0;
    color: var(--text-dim);
}

.rule-list li {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.5;
}

/* Footer & Toast */
footer {
    padding: 40px 8%;
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--acc-primary);
    color: var(--bg-base);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .rule-item {
        flex-direction: column;
        gap: 15px;
    }
}

/* Extra Animations */
.feature-card {
    animation: fadeUp 0.8s ease-out backwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

.info-box {
    animation: fadeUp 0.8s ease-out backwards;
}

.info-box:nth-child(1) {
    animation-delay: 0.3s;
}

.info-box:nth-child(2) {
    animation-delay: 0.5s;
}



/* Enhancing existing animations */
.feature-card:hover {
    border-color: rgba(255, 170, 0, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 170, 0, 0.2);
}

.hero-buttons .btn-primary {
    animation: pulse 2s infinite;
}

.feature-icon i {
    transition: transform 0.5s ease, color 0.5s ease;
}

.feature-card:hover .feature-icon i {
    transform: rotate(360deg) scale(1.2);
    color: #fff;
}

/* Team Section */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.team-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.8s ease-out backwards;
}

.team-card:nth-child(1) {
    animation-delay: 0.2s;
}

.team-card:nth-child(2) {
    animation-delay: 0.4s;
}

.team-card:hover {
    border-color: rgba(255, 170, 0, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 170, 0, 0.2);
}

.team-card img {
    height: 250px;
    object-fit: contain;
    margin-bottom: 25px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease;
}

.team-card:hover img {
    transform: scale(1.1);
}

.team-card h3 {
    font-size: 26px;
    color: white;
    margin-bottom: 15px;
    font-weight: 800;
}

.role {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.role.owner {
    background: rgba(255, 0, 0, 0.15);
    color: #ff5555;
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
}

.role.co-owner {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.1);
}

/* Players Section */
.view-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.view-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.view-btn.active {
    background: var(--gradient-brand);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.4);
}

.players-container {
    transition: all 0.5s ease;
}

/* Grid View */
.players-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.players-container.grid-view .player-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
}

.players-container.grid-view .player-card img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.players-container.grid-view .player-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.players-container.grid-view .stats p {
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-dim);
}

.players-container.grid-view .stats i {
    color: var(--acc-primary);
    width: 20px;
}

/* List View */
.players-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.players-container.list-view .player-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.4s ease;
    text-align: left;
}

.players-container.list-view .player-card img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.players-container.list-view .player-card .player-info {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
}

.players-container.list-view .player-card h3 {
    font-size: 22px;
    margin-bottom: 0;
}

.players-container.list-view .stats {
    display: flex;
    gap: 30px;
}

.players-container.list-view .stats p {
    margin-bottom: 0;
    font-size: 15px;
    color: var(--text-dim);
}

.players-container.list-view .stats i {
    color: var(--acc-primary);
    margin-right: 5px;
}

/* Shared Card Hover */
.player-card {
    cursor: pointer;
}

.player-card:hover {
    border-color: rgba(255, 170, 0, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 170, 0, 0.1);
}

/* Modal Styling */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.player-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.modal-backdrop.active .player-modal {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--acc-secondary);
}

.player-modal img {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.player-modal h2 {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 800;
    color: #fff;
}

.modal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.modal-stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
}

.modal-stat-box p {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-stat-box h4 {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
}

.modal-stat-box i {
    color: var(--acc-primary);
    margin-right: 8px;
}

.stat-full {
    grid-column: 1 / -1;
}