/* ===========================
   1. GLOBAL & LAYOUT
   =========================== */
:root {
    --bg-color: #121212;
    --text-color: #d0ccd0;
    --primary-green: #2d6843;
    --dark-green: #192c1e;
    --highlight: #a3d9a5;
    --white-text: #fbfcff;
    --glass-bg: #141b41cc;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'MyGenFonts', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.5s ease;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    padding: 2rem 0;
    flex: 1;
}

/* ===========================
   2. HEADER & NAV
   =========================== */
.custom-header {
    background-color: var(--dark-green);
    color: var(--white-text);
    padding: 1.8rem 0 0.5rem 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.header-content { max-width: 1200px; margin: 0 auto; }

.main-title {
    font-size: 2.0rem;
    font-family: 'MyFonts', sans-serif;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: bold;
    color: #d0e5d2;
    margin-bottom: 1.2rem;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--white-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.3s;
    font-family: 'MyGenFonts', sans-serif;
}

.main-nav a:hover { color: var(--highlight); text-decoration: underline; }

/* ===========================
   3. FOOTER
   =========================== */
.custom-footer {
    background-color: var(--dark-green);
    color: var(--white-text);
    text-align: center;
    padding: 1.2rem 0;
    margin-top: auto;
}

/* ===========================
   4. INDEX PAGE COMPONENTS
   =========================== */
.welcome-flex {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.left-col { display: flex; flex-direction: column; align-items: center; min-width: 320px; }
.right-col { flex: 1; min-width: 320px; max-width: 600px; }

.avatar-img {
    width: 220px;
    height: 220px;
    border-radius: 30px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
}

.avatar-name {
    font-size: 2rem;
    font-weight: bold;
    color: var(--white-text);
    margin-bottom: 2rem;
    font-family: 'MyGenFonts', sans-serif;
}

/* Status Window */
.status-window {
    background: #fbfcff;
    color: #222;
    border-radius: 32px;
    padding: 1.5rem;
    width: 320px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    margin-bottom: 2rem;
    text-align: left;
}

.status-window h3 {
    color: #39684d;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--highlight);
    padding-bottom: 0.5rem;
}

.quest-list { list-style: none; padding: 0; margin: 0; }
.quest-list li { margin-bottom: 1rem; line-height: 1.4; font-size: 1.05rem; }
.quest-meta { display: block; font-size: 0.85rem; color: #666; margin-left: 28px; font-style: italic; }

/* Laundry List Box */
.laundry-row { display: flex; align-items: center; }
.laundry-list-box {
    background: #fbfcff;
    color: #222;
    border-radius: 32px;
    padding: 1.1rem 1.7rem;
    width: 320px;
    height: 140px; /* Fixed height */
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}
.laundry-title { color: #39684d; font-size: 1.6rem; font-weight: bold; margin-bottom: 0.5rem; }
.laundry-list-box ul { margin: 0; padding-left: 1.2rem; }

.circle-btn {
    background: #39684d; color: #fff; border: none; border-radius: 50%;
    width: 48px; height: 48px; font-size: 1.5rem; margin: 0 1rem; cursor: pointer;
}

/* Welcome Text Box */
.welcome-box {
    background: #fbfcff;
    color: #222;
    border-radius: 40px;
    padding: 2.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}
.welcome-title { font-size: 2.5rem; font-weight: bold; margin-bottom: 1.2rem; font-family: 'MyFonts', sans-serif; }
.welcome-text { font-size: 1.15rem; line-height: 1.6; text-align: left; }

/* ===========================
   5. CHARACTER CARD (AIDONEUS.HTML)
   =========================== */
.character-card {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    color: #fbfcff;
    width: 370px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    border: 3px solid var(--primary-green);
    overflow: hidden;
    transition: all 0.5s ease;
}

.char-nickname { font-size: 2rem; color: var(--highlight); text-shadow: 0 2px 8px #000a; }
.char-stats { display: flex; justify-content: space-around; margin: 1.2rem 0; }
.char-stat { background: var(--primary-green); padding: 0.5rem 1rem; border-radius: 8px; }

.about-me-section {
    background: var(--glass-bg);
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Contact Pumplets */
.pumplet-container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.pumplet {
    background: var(--primary-green);
    color: #D0CCD0;
    border-radius: 16px;
    padding: 1.5rem;
    width: 130px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s;
}
.pumplet:hover { transform: translateY(-5px); background: var(--dark-green); }

/* ===========================
   6. PROJECT GRID
   =========================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.project-card {
    background: #232526;
    border: 1px solid var(--primary-green);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--highlight); }

.card-image { height: 160px; background-size: cover; background-position: center; border-bottom: 1px solid var(--primary-green); }
.card-content { padding: 1.5rem; }
.card-header h3 { margin: 0.5rem 0; color: var(--highlight); font-family: 'MyFonts', serif; }

.quest-tag { font-size: 0.7rem; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; font-weight: bold; }
.main-quest { background: #ff4a4a; color: white; }
.daily-quest { background: #20beff; color: white; }
.side-quest { background: #D0CCD0; color: #222; }

.tech-stack span {
    display: inline-block; background: var(--dark-green); color: #ddd;
    font-size: 0.8rem; padding: 2px 8px; border-radius: 10px; margin: 5px 5px 0 0;
}

/* ===========================
   7. BLOG (GRIMOIRE)
   =========================== */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fbfcff;
    color: #222;
    padding: 3rem;
    border-radius: 8px;
}
.blog-entry h2 { color: var(--dark-green); font-family: 'MyFonts', serif; }
.read-more { color: var(--primary-green); font-weight: bold; text-decoration: none; }
.blog-divider { margin: 3rem 0; border-top: 1px solid #ddd; }

/* ===========================
   8. COMPONENTS
   =========================== */
.btn, .rpg-button {
    background-color: var(--primary-green);
    color: var(--white-text) !important;
    border: 2px solid var(--highlight);
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn:hover, .rpg-button:hover { background-color: var(--dark-green); transform: translateY(-2px); }
.card-btn { width: 100%; margin-top: 1rem; box-sizing: border-box; }

/* Popup */
.custom-popup {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 1000;
}
.popup-content {
    background-color: #FBFCFF; color: var(--primary-green); padding: 30px;
    border-radius: 10px; text-align: center; font-size: 1.5rem;
}
.hidden { display: none !important; }

/* ===========================
   9. EASTER EGG: LEGENDARY MODE (GOLD)
   =========================== */
body.legendary-mode { background-color: #050505; }

body.legendary-mode .character-card,
body.legendary-mode .status-window,
body.legendary-mode .laundry-list-box,
body.legendary-mode .welcome-box,
body.legendary-mode .project-card,
body.legendary-mode .rpg-button,
body.legendary-mode .char-stat,
body.legendary-mode .custom-header {
    border-color: #FFD700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4) !important;
}

body.legendary-mode .main-title,
body.legendary-mode h2,
body.legendary-mode h3,
body.legendary-mode .char-nickname,
body.legendary-mode .quest-icon,
body.legendary-mode .laundry-title {
    color: #FFD700 !important;
}

/* Hidden Message */
#legendary-message {
    display: none; position: fixed; top: 20%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9); color: #FFD700; padding: 2rem; border: 2px solid #FFD700;
    border-radius: 10px; z-index: 9999; font-size: 2rem; animation: fadeOut 4s forwards;
}
@keyframes fadeOut { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; display: none; } }

/* Fonts */
@font-face { font-family: 'MyFonts'; src: url('fonts/MetalGothicDemoVersionRegular-WyB9A.ttf') format('truetype'); }
@font-face { font-family: 'MyGenFonts'; src: url('fonts/Tinos-Regular.ttf') format('truetype'); }
@font-face { font-family: 'MyCardFonts'; src: url('fonts/GothichaRegular-d9BjV.ttf') format('truetype'); }