@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0b0b0b;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2ecc71;
}

body {
    background: linear-gradient(-45deg, #0b0b0b, #1a1a1a, #0b0b0b, #111);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: white;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Projects Page Styles */
.navBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.menu-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menuItems {
    display: inline-flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.menuItems::-webkit-scrollbar {
    display: none;
}

.nav-indicator {
    position: absolute;
    height: calc(100% - 8px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
    pointer-events: none;
    top: 4px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.menuItems div a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 24px;
    border-radius: 16px;
    display: block;
    letter-spacing: 0.4px;
    position: relative;
    z-index: 1;
}

.moderation-link-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

.moderation-left a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.moderation-left a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.menuItems div a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.menuItems .active a {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Projects Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 25px;
    width: 100%;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card:hover::before {
    opacity: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
    width: 100%;
}

.project-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-badge {
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.status-badge.online {
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
}

.status-badge.free {
    color: #00bcd4;
    border-color: rgba(0, 188, 212, 0.3);
}

.status-badge.paid {
    color: #f1c40f;
    border-color: rgba(241, 196, 15, 0.3);
}

.project-card p {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    z-index: 1;
}

/* Specific styling for the indicator when active */
.menuItems .active ~ .nav-indicator {
    /* We'll handle this via JS for smoothness */
}

.socials {
    display: flex;
    gap: 15px;
}

.socials i {
    font-size: 24px;
    color: white;
}

.contentBody {
    position: relative;
    z-index: 10;
    text-align: left;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contentBody a {
    text-decoration: none;
    color: #3498db;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 20px;
}

.contentBody a:hover {
    color: #2ecc71;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(46, 204, 113, 0.3);
    transform: scale(1.02);
}

.contentBody p {
    margin: 0;
    font-size: 16px;
}

.contentBody i {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 700;
}

/* Soft Mood Page Styles */
.box, .box-projects {
    width: 400px;
    max-width: 90%;
    padding: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(25, 25, 25, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 0 0 20px rgba(52, 152, 219, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    z-index: 2;
}

.box-projects {
    width: 900px;
    max-width: 95%;
}

@media (max-width: 768px) {
    .navBar {
        padding: 10px 20px;
    }

    .box, .box-projects {
        width: 90%;
        padding: 30px 20px;
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin: 100px auto 40px auto;
        box-sizing: border-box;
    }

    .box-projects {
        margin-top: 40px;
    }

    .navBar ~ .box-projects {
        margin-top: 40px;
    }

    .box input[type="text"], .box input[type="password"], .box select {
        width: 100%;
        box-sizing: border-box;
    }

    .box input[type="text"]:focus, .box input[type="password"]:focus, .box select:focus {
        width: 100%;
    }

    .activate {
        width: 100%;
    }

    footer {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        text-align: center;
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        min-width: 0;
        border-radius: 0;
        margin-top: 40px;
    }

    body {
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .navBar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        height: auto;
    }

    .menu-container {
        width: 100%;
        display: block;
        text-align: center;
    }

    .menuItems {
        width: auto;
        max-width: 100%;
        padding: 4px;
        white-space: nowrap;
        display: inline-flex;
    }
}

.box:hover, .box-projects:hover {
    background: rgba(30, 30, 30, 0.9);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 30px rgba(52, 152, 219, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.box h1 {
    color: white;
    text-transform: uppercase;
    font-weight: 500;
}

.box input[type="text"], .box input[type="password"], .box select {
    border: 0;
    background: rgba(0, 0, 0, 0.2);
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #3498db;
    padding: 14px 10px;
    width: 300px;
    max-width: 100%;
    box-sizing: border-box;
    outline: none;
    color: white;
    border-radius: 24px;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.box select {
    background-image: linear-gradient(45deg, transparent 50%, #3498db 50%),
                      linear-gradient(135deg, #3498db 50%, transparent 50%);
    background-position: calc(100% - 30px) center,
                         calc(100% - 25px) center;
    background-size: 5px 5px,
                     5px 5px;
    background-repeat: no-repeat;
    padding-right: 40px;
    text-align-last: center;
    text-align: center;
}

.box select:focus {
    background-image: linear-gradient(45deg, transparent 50%, #2ecc71 50%),
                      linear-gradient(135deg, #2ecc71 50%, transparent 50%);
    border-color: #2ecc71;
}

.box select option {
    background: #191919;
    color: white;
    padding: 10px;
    text-align: center;
}

.box input[type="text"]:focus, .box input[type="password"]:focus, .box select:focus {
    width: 340px;
    max-width: 100%;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
    background-color: rgba(0, 0, 0, 0.4);
}

.activate {
    border: 0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #2ecc71;
    padding: 14px 40px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    outline: none;
    color: white;
    border-radius: 24px;
    transition: 0.25s;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.activate:hover {
    background: #2ecc71;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
}

.labels {
    color: #999;
    font-size: 12px;
}

#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
    z-index: 20;
    cursor: pointer;
}

footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 400px;
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 12px;
    box-sizing: border-box;
    z-index: 1000;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.footer-left {
    font-weight: 500;
}

.footer-right img {
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0));
}

.footer-right a:hover img {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.25s;
}

footer a:hover {
    color: white;
}

footer i {
    margin-right: 5px;
}

#text {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 20px;
    color: white;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    text-align: center;
    width: 80%;
}

/* Mobile Loading Screen Styles */
#mobile-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/images/backdrop_loading.png') no-repeat center center;
    background-size: cover;
    z-index: 9999;
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

.loading-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lemon-logo {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

.lemon-text {
    display: block;
    font-size: 80px;
    font-weight: 700;
    background: linear-gradient(to bottom, #fff 0%, #a26ec7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    line-height: 0.8;
}

.beta-badge {
    position: absolute;
    bottom: 5px;
    right: -50px;
    background: #fff;
    color: #000;
    padding: 2px 8px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 4px;
}

.circular-progress-container {
    width: 80px;
    height: 80px;
    margin-top: 20px;
}

.circular-progress-container svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-progress-container circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.circular-progress-container .bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.circular-progress-container .fg {
    stroke: #f39c12;
    stroke-dasharray: 283;
    stroke-dashoffset: 283; /* 0% initially */
    transition: stroke-dashoffset 0.1s linear;
}

.percentage-text {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-top: 15px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.linear-progress-container {
    position: absolute;
    bottom: 100px;
    width: 80%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.linear-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, #3498db, #2ecc71);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
    transition: width 0.1s linear;
}

.version-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
