/* main.css - 2026 Theme */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #0a0f16;
    --glass-bg: rgba(20, 25, 35, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-cyan: #00f0ff;
    --accent-purple: #8a2be2;
    --text-main: #f0f4f8;
    --text-muted: #a0aab5;
}



/* Page Transition Animations */
body {
    animation: fadeIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.page-fade-out {
    animation: fadeOut 0.3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* General Styles */
html {
    background-color: var(--bg-dark);
}

body {
    font-family: 'Outfit', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    background-color: transparent !important;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Glow Effects */
body::before,
body::after {
    content: "";
    position: fixed;
    width: 50vw;
    height: 50vw;
    min-width: 400px;
    min-height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: floatGlow 25s infinite alternate ease-in-out;
    opacity: 0.4;
    pointer-events: none;
}

body::before {
    background: #0574b0;
    top: -15vw;
    left: -20vw;
    animation-delay: 0s;
}

body::after {
    background: #0574b0;
    bottom: -20vw;
    right: -15vw;
    animation-delay: -12s;
    animation-duration: 30s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(15vw, 5vw) scale(1.1);
    }

    66% {
        transform: translate(-5vw, 15vw) scale(0.9);
    }

    100% {
        transform: translate(10vw, -10vw) scale(1);
    }
}

/* Main Wrapper */
#app-content {
    width: 100%;
    padding-top: 20px;
}

/* Container */
.container {
    max-width: 100%;
    width: 90%;
    margin: 20px auto 140px auto;
    padding-bottom: 80px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Header Image Section */
.image-section {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 50px;
}

.image-section img {
    width: 150px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
}

@media (max-width: 768px) {
    .image-section img {
        width: 120px;
    }
}

/* Title */
.title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin: 10px 0 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* Link Buttons */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.link-button {
    display: flex;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 15px auto;
    padding: 20px 25px;
    box-sizing: border-box;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-main);
    border-radius: 16px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.link-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.link-button.visible {
    opacity: 1;
    transform: translateY(0);
}

.link-button:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(30, 40, 55, 0.6);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.2);
}

.link-button:hover::before {
    transform: translateX(100%);
}

.link-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.link-text {
    font-size: 20px;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.link-subtext {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 400;
}

/* Admin Button (Pop Up) */
.admin-button {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
    z-index: 1001;
    display: inline-block !important;
    /* Override inline styles from PHP */
}

.admin-button.popup-visible {
    opacity: 1;
    visibility: visible;
}

.admin-button:hover {
    transform: translateX(-50%) translateY(-3px);
    background: rgba(30, 40, 55, 0.6);
    color: var(--text-main);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.2);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    min-width: 30px;
    height: 30px;
}

.bottom-nav .nav-item i {
    font-size: 20px;
    margin: 0;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bottom-nav .nav-item span {
    font-size: 13px;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateX(-15px) scale(0.9);
}

.bottom-nav .nav-item[aria-current="page"] {
    color: var(--accent-cyan);
}

.bottom-nav .nav-item[aria-current="page"] i {
    font-size: 16px;
    transform: translateY(0);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.bottom-nav .nav-item[aria-current="page"] span {
    opacity: 1;
    max-width: 100px;
    margin-left: 8px;
    transform: translateX(0) scale(1);
}

.bottom-nav .nav-item:not([aria-current="page"]):hover {
    color: var(--accent-cyan);
}

.bottom-nav .nav-item:not([aria-current="page"]):hover i {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        margin: 0 auto 140px auto;
        padding: 0 0 100px 0;
        gap: 0;
    }

    .link-button {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin: 0 0 15px 0;
        padding: 20px;
    }

    .bottom-nav {
        bottom: 20px;
        padding: 10px 15px;
        gap: 15px;
        /* restored slightly for absolute text */
    }

    .admin-button.popup-visible {
        bottom: 100px;
        opacity: 1;
        visibility: visible;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-dark: #f0f4f8;
        --glass-bg: rgba(255, 255, 255, 0.7);
        --glass-border: rgba(0, 0, 0, 0.1);
        --accent-cyan: #0071ae;
        --accent-purple: #5c1bbd;
        --text-main: #1a202c;
        --text-muted: #4a5568;
    }

    body::before,
    body::after {
        opacity: 0.15;
    }

    .header-image {
        filter: brightness(0.9) saturate(1.1);
    }

    .title {
        color: var(--text-main);
        text-shadow: 0 0 15px rgba(0, 113, 174, 0.2);
    }

    .link-text {
        background: linear-gradient(90deg, #1a202c, var(--accent-cyan));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        display: inline-block;
    }

    .link-button:hover {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(0, 113, 174, 0.1);
    }
}