/* cfmc.pl - Minecraft themed stylesheet (Enhanced Premium Edition) */

:root {
    --mc-green: #55FF55;
    --mc-dark-green: #00AA00;
    --mc-gold: #FFAA00;
    --mc-yellow: #FFFF55;
    --mc-red: #FF5555;
    --mc-dark-red: #AA0000;
    --mc-blue: #5555FF;
    --mc-aqua: #55FFFF;
    --discord-blurple: #5865F2;
    --discord-dark: #404EED;
    --deepslate-dark: #101114;
    --deepslate-light: #25272e;
    --panel-bg: rgba(16, 17, 21, 0.92);
    --panel-border: rgba(255, 255, 255, 0.05);
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--deepslate-dark);
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* Particle Background & Vignette */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: 
        radial-gradient(circle, transparent 15%, rgba(0, 0, 0, 0.65) 75%),
        radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.98) 100%),
        /* Pixel grid simulation */
        linear-gradient(rgba(18, 19, 22, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 19, 22, 0.5) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 16px 16px, 16px 16px;
}

/* Main Container Frame (Minecraft Panel style) */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 920px;
    background: var(--panel-bg);
    border: 4px solid #3c3c3c;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.85), 
        inset 3px 3px 0px rgba(255, 255, 255, 0.08),
        inset -3px -3px 0px rgba(0, 0, 0, 0.5),
        0 0 0 8px #181818;
    border-radius: 8px;
    padding: 50px 40px;
    margin: 40px auto;
    backdrop-filter: blur(15px);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 45px;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    animation: floatLogo 4.5s ease-in-out infinite;
}

.server-logo {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.7));
    image-rendering: pixelated;
}

/* Typography with 3D Text effects */
.pixel-text {
    font-family: 'Press Start 2P', monospace;
    text-shadow: 2px 2px 0px #000;
    letter-spacing: 1px;
}

h1.pixel-text {
    font-size: 2.3rem;
    color: var(--mc-yellow);
    margin-bottom: 18px;
    line-height: 1.3;
    text-shadow: 
        2px 2px 0px #3f3f00, 
        4px 4px 0px #000000, 
        0 0 15px rgba(255, 255, 85, 0.35);
}

.subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* XP Progress Bar (Minecraft UI Experience style) */
.progress-section {
    background: rgba(8, 9, 11, 0.75);
    border: 3px solid #2d2d2d;
    box-shadow: 
        inset 0 3px 10px rgba(0,0,0,0.85),
        0 4px 10px rgba(0,0,0,0.3);
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 45px;
}

.xp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.xp-level-title {
    color: #8a8d98;
    font-size: 0.75rem;
}

.xp-level {
    color: var(--mc-green);
    background: #000000;
    padding: 5px 12px;
    border: 2px solid #333;
    font-size: 0.85rem;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.8),
        1px 1px 0px #000;
}

.xp-bar-container {
    height: 22px;
    background: #2b2b2b;
    border: 3px solid #0a0a0a;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.xp-bar {
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        #55ff55,
        #55ff55 12px,
        #3bee3b 12px,
        #3bee3b 24px
    );
    box-shadow: 
        inset 0 4px 0 rgba(255, 255, 255, 0.4),
        inset 0 -4px 0 rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: barPulse 2.5s infinite alternate;
}

.xp-percentage {
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 900;
    z-index: 5;
    text-shadow: 1px 1px 0px #000;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 45px;
}

.card {
    background: rgba(14, 15, 18, 0.95);
    border: 3px solid #2e2e2e;
    box-shadow: 
        inset 2px 2px 0px rgba(255,255,255,0.03),
        inset -2px -2px 0px rgba(0,0,0,0.5),
        0 8px 16px rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    padding: 30px 22px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-6px);
}

.minecraft-card:hover {
    border-color: var(--mc-green);
    box-shadow: 
        0 0 20px rgba(85, 255, 85, 0.2), 
        inset 2px 2px 0px rgba(85, 255, 85, 0.1),
        inset -2px -2px 0px rgba(0,0,0,0.5),
        0 15px 30px rgba(0, 0, 0, 0.7);
}

.discord-card:hover {
    border-color: var(--discord-blurple);
    box-shadow: 
        0 0 20px rgba(88, 101, 242, 0.22), 
        inset 2px 2px 0px rgba(88, 101, 242, 0.1),
        inset -2px -2px 0px rgba(0,0,0,0.5),
        0 15px 30px rgba(0, 0, 0, 0.7);
}

.bot-card:hover {
    border-color: var(--mc-gold);
    box-shadow: 
        0 0 20px rgba(255, 170, 0, 0.2), 
        inset 2px 2px 0px rgba(255, 170, 0, 0.1),
        inset -2px -2px 0px rgba(0,0,0,0.5),
        0 15px 30px rgba(0, 0, 0, 0.7);
}

.card-icon {
    font-size: 2.3rem;
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}

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

.minecraft-card .card-icon { color: var(--mc-green); filter: drop-shadow(0 0 8px rgba(85, 255, 85, 0.3)); }
.discord-card .card-icon { color: var(--discord-blurple); filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.3)); }
.bot-card .card-icon { color: var(--mc-gold); filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.3)); }

.card-title {
    font-size: 0.78rem;
    margin-bottom: 20px;
    color: #ffffff;
}

/* Beautiful Interactive Box (No IP address) */
.server-address-box {
    background: #000000;
    border: 3px solid #242424;
    border-radius: 4px;
    padding: 12px 16px;
    width: 100%;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
    transition: all 0.2s ease;
}

.server-address-box:hover {
    border-color: #4a4a4a;
    background: #030303;
}

.address {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    color: #f8fafc;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0px #000;
}

.copy-badge {
    font-size: 0.5rem;
    background: var(--mc-green);
    color: #000000;
    padding: 3px 6px;
    border-radius: 2px;
    text-shadow: none !important;
    font-weight: 900;
    box-shadow: 1px 1px 0px #000;
    transition: background 0.2s ease;
}

.server-address-box:hover .copy-badge {
    background: var(--mc-yellow);
}

/* Bot card info box */
.bot-info-box {
    background: #000000;
    border: 3px solid #242424;
    border-radius: 4px;
    padding: 12px 16px;
    width: 100%;
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
}

.bot-info-text {
    font-size: 0.6rem;
    color: #64748b;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0px #000;
}

/* Status Indicators */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    background: #000;
    padding: 6px 14px;
    border-radius: 4px;
    border: 2px solid #222;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-text {
    font-size: 0.52rem;
}

.status-indicator.online .status-dot {
    background-color: var(--mc-green);
    box-shadow: 0 0 8px var(--mc-green);
}
.status-indicator.online .status-text {
    color: var(--mc-green);
}

.status-indicator.offline .status-dot {
    background-color: var(--mc-red);
    box-shadow: 0 0 8px var(--mc-red);
}
.status-indicator.offline .status-text {
    color: var(--mc-red);
}

.status-indicator.coding .status-dot {
    background-color: var(--mc-gold);
    box-shadow: 0 0 8px var(--mc-gold);
}
.status-indicator.coding .status-text {
    color: var(--mc-gold);
}

.player-count {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-top: 12px;
}

.player-count .count-val {
    color: #ffffff;
    font-weight: 700;
}

/* Custom Minecraft Buttons */
.pixel-btn {
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(to bottom, #8c8c8c 0%, #5c5c5c 100%);
    border: 3px solid #000000;
    box-shadow: 
        inset 2px 2px 0px #b2b2b2, 
        inset -2px -2px 0px #3c3c3c;
    color: #e0e0e0;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.68rem;
    padding: 14px 10px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 18px;
    position: relative;
    transition: none; /* instant classic hover feel */
}

.pixel-btn span {
    text-shadow: 2px 2px 0px #1a1a1a;
    display: inline-block;
}

.pixel-btn:hover {
    background: linear-gradient(to bottom, #9f9f9f 0%, #6e6e6e 100%);
    color: #ffffff;
    box-shadow: 
        inset 2px 2px 0px #cfcfcf, 
        inset -2px -2px 0px #4d4d4d;
}

.pixel-btn:active {
    box-shadow: 
        inset -2px -2px 0px #cfcfcf, 
        inset 2px 2px 0px #3c3c3c;
    padding-top: 15px;
    padding-bottom: 13px;
}

.discord-btn {
    background: linear-gradient(to bottom, #5865f2 0%, #3a45c3 100%);
    box-shadow: 
        inset 2px 2px 0px #9fb2f0, 
        inset -2px -2px 0px #242c7f;
}

.discord-btn:hover {
    background: linear-gradient(to bottom, #727ff6 0%, #4654db 100%);
    box-shadow: 
        inset 2px 2px 0px #c4cffc, 
        inset -2px -2px 0px #2a3394;
}

.discord-btn:active {
    box-shadow: 
        inset -2px -2px 0px #c4cffc, 
        inset 2px 2px 0px #242c7f;
}

/* Info Panel styling */
.info-section {
    background: rgba(6, 7, 9, 0.7);
    border: 3px solid #242424;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 45px;
}

.section-title {
    font-size: 0.9rem;
    color: var(--mc-yellow);
    margin-bottom: 18px;
    border-left: 4px solid var(--mc-gold);
    padding-left: 14px;
    line-height: 1.2;
}

.info-section p {
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 16px;
    font-size: 1rem;
}

.info-section p:last-child {
    margin-bottom: 0;
}

.highlight-info {
    background: rgba(255, 170, 0, 0.07);
    border: 2px solid rgba(255, 170, 0, 0.2);
    padding: 14px 18px;
    border-radius: 4px;
    color: var(--mc-gold) !important;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.highlight-info i {
    margin-top: 3px;
    font-size: 1.2rem;
}

/* Footer Section */
.footer {
    border-top: 2px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pterodactyl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 5px auto 0;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Premium Advancement Unlocked Toast */
.toast {
    visibility: hidden;
    min-width: 340px;
    background-color: #212121;
    border: 3px solid #2a2a2a;
    outline: 3px solid #000;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.9),
        inset 2px 2px 0px #5a5a5a,
        inset -2px -2px 0px #1a1a1a;
    color: #ffffff;
    padding: 14px 18px;
    position: fixed;
    z-index: 1000;
    bottom: 30px;
    right: -400px; /* start off-screen right for smooth slide-in */
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: right 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.4s ease;
}

.toast-advancement-icon {
    font-size: 2.2rem;
    filter: drop-shadow(2px 2px 0px #000);
}

.toast-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--mc-yellow);
    margin-bottom: 5px;
    text-shadow: 1px 1px 0px #000;
}

.toast-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    color: #ffffff;
    font-weight: 500;
}

.toast.show {
    visibility: visible;
    right: 30px;
    opacity: 1;
}

/* Animations */
@keyframes floatLogo {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes barPulse {
    0% { filter: brightness(0.95); }
    100% { filter: brightness(1.1); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 0.4; }
}

.animate-pulse {
    animation: pulse 1.6s infinite ease-in-out;
}

.glitched {
    position: relative;
    animation: glowText 2.5s infinite alternate;
}

@keyframes glowText {
    0% {
        text-shadow: 
            2px 2px 0px #3f3f00, 
            4px 4px 0px #000000, 
            0 0 8px rgba(255, 255, 85, 0.15);
    }
    100% {
        text-shadow: 
            2px 2px 0px #3f3f00, 
            4px 4px 0px #000000, 
            0 0 20px rgba(255, 255, 85, 0.55);
    }
}

/* Responsive adjust */
@media (max-width: 600px) {
    .container {
        padding: 30px 18px;
        margin: 15px auto;
    }
    h1.pixel-text {
        font-size: 1.6rem;
    }
    .server-logo {
        max-width: 230px;
    }
    .toast {
        right: 15px;
        left: 15px;
        bottom: 15px;
        min-width: auto;
    }
    .toast.show {
        right: 15px;
        left: 15px;
    }
}
