/* === Base / Theme === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background-color: #f9f8f5;
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    min-height: 100vh;
    overflow: hidden;
    color: #2c2c2c;
}

/* === Loader === */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f8f5;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #ddd;
    border-top-color: #2c2c2c;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === App === */
.app {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10vh;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.app.hidden {
    opacity: 0;
    pointer-events: none;
}

/* === Nav Pill === */
.nav-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #fff;
    border: 2px solid #2c2c2c;
    border-radius: 50px;
    box-shadow: 4px 4px 0px #2c2c2c;
    transform: translateY(20px);
    opacity: 0;
    animation: nav-appear 0.5s ease 1.5s forwards;
}

@keyframes nav-appear {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-photo-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #2c2c2c;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
    transform: scale(0);
    animation: photo-pop 0.4s ease 0.8s forwards;
}

.nav-photo-img.active {
    box-shadow: 0 0 0 1.5px #2c2c2c;
}

@keyframes photo-pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.nav-tab {
    padding: 8px 16px;
    border: none;
    border-bottom: 1.5px solid #ddd;
    border-radius: 0;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.nav-tab:hover {
    color: #2c2c2c;
    border-bottom-color: #2c2c2c;
}

.nav-tab.active:not(.nav-tab-photo) {
    background: transparent;
    color: #2c2c2c;
    border-bottom-color: #2c2c2c;
    border-color: #2c2c2c;
}

/* === Content Area === */
.content-area {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    padding: 0 20px;
    overflow: hidden;
    flex: 1;
}

.content-slider {
    display: flex;
    width: 400%;
    transition: transform 0.4s ease;
}

.content-panel {
    width: 25%;
    min-height: 60vh;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-panel.active {
    opacity: 1;
}

/* === Profile Panel === */
.profile-lines {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.profile-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #2c2c2c;
    border-radius: 8px;
    box-shadow: 3px 3px 0px #2c2c2c;
    background: #fff;
    text-decoration: none;
    color: #2c2c2c;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.profile-line:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #2c2c2c;
}

.profile-line-arrow {
    font-size: 18px;
}

.profile-line-text {
    font-size: 14px;
    font-weight: bold;
}

.profile-about {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 16px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fff;
}

/* === Build Panel === */
.build-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.build-card {
    border: 2px solid #2c2c2c;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    box-shadow: 3px 3px 0px #2c2c2c;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.build-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #2c2c2c;
}

.build-card.coming-soon {
    opacity: 0.4;
    pointer-events: none;
}

.build-card-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.build-card-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.build-card-links {
    display: flex;
    gap: 8px;
}

.build-card-links a {
    font-size: 11px;
    padding: 4px 8px;
    border: 1px solid #2c2c2c;
    border-radius: 4px;
    text-decoration: none;
    color: #2c2c2c;
    transition: background 0.2s;
}

.build-card-links a:hover {
    background: #2c2c2c;
    color: #fff;
}

.build-card-badge {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

/* === Learn Panel === */
.learn-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.learn-card {
    border: 2px solid #2c2c2c;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 3px 3px 0px #2c2c2c;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    color: #2c2c2c;
    display: block;
}

.learn-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #2c2c2c;
}

.learn-card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.learn-card-desc {
    font-size: 13px;
    color: #666;
}

/* === Music Panel === */
.music-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    font-size: 24px;
    font-style: italic;
    color: #999;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fff;
}

/* === Mobile === */
@media (max-width: 600px) {
    .app {
        padding-top: 5vh;
    }

    .nav-pill {
        gap: 2px;
        padding: 5px 8px;
    }

    .nav-tab {
        padding: 6px 10px;
        font-size: 12px;
    }

    .nav-photo-img {
        width: 30px;
        height: 30px;
    }

    .content-area {
        margin-top: 24px;
        overflow: visible;
    }

    .content-slider {
        display: block;
        width: 100%;
        transform: none !important;
    }

    .content-panel {
        display: none;
        width: 100%;
        opacity: 1;
    }

    .content-panel.active {
        display: block;
        opacity: 1;
    }

    .build-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
