@font-face {
    font-family: Lato;
    src: url("assets/fonts/Lato/Lato-Black.ttf");
    font-weight: 800 900 1000;
    font-style: normal;
}
@font-face {
    font-family: Lato;
    src: url("assets/fonts/Lato/Lato-Bold.ttf");
    font-weight: 600 700;
    font-style: normal;
}
@font-face {
    font-family: Lato;
    src: url("assets/fonts/Lato/Lato-Regular.ttf");
    font-weight: 400 500;
    font-style: normal;
}
@font-face {
    font-family: Lato;
    src: url("assets/fonts/Lato/Lato-Light.ttf");
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: Lato;
    src: url("assets/fonts/Lato/Lato-Thin.ttf");
    font-weight: 100 200;
    font-style: normal;
}

:root {
    --bg: #000;
    --text: #fff;
    --muted: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.2);
    --max-width: 980px;
    --page-padding: 0 20px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Lato, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    letter-spacing: 0.2px;
    min-height: 100vh;
}

main {
    min-height: 100vh;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
}

a:hover {
    border-color: #fff;
}

button {
    font-family: inherit;
}

/* Navbar (if/when injected by JS) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    backdrop-filter: blur(8px);
    z-index: 1001;
    transition: transform 0.7s ease, opacity 0.7s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.navbar a {
    border-bottom: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.nav-links {
    display: flex;
    gap: 18px;
}

/* ========================================
   PAGE TITLES & CONTAINERS
   ======================================== */
.page_title { 
    text-align: center; 
    padding: 120px 20px 40px; 
    font-size: clamp(2rem, 8vw, 4rem); /* Responsive font size */
    font-weight: 100; 
    text-transform: capitalize;
}

.ud_list { max-width: 900px; margin: 0 auto; padding: 0 20px 80px; }

/* ========================================
   DAILY PAGE STYLING (The Screenshot Area)
   ======================================== */
.daily-screenshot-area {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: #000;
}

.daily-card {
    border: 1px solid var(--border-color);
    padding: 80px 50px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    background: #000;
}

.daily-streak { margin-bottom: 24px; }
.daily-streak-count {
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 100;
    letter-spacing: 2px;
}
.daily-streak-label {
    font-size: 0.75rem;
    letter-spacing: 4px;
    opacity: 0.6;
    margin-top: 6px;
}
.daily-date { font-size: 1.5rem; font-weight: 700; margin-bottom: 40px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }

.daily-label { font-size: 0.7rem; letter-spacing: 2px; opacity: 0.4; margin-bottom: 15px; text-transform: uppercase; }
#today-work { font-size: 1.1rem; line-height: 1.8; font-weight: 300; text-align: left; }
#today-work .muted { opacity: 0.6; }
.daily-today-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.daily-today-list li {
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.2px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.daily-today-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ========================================
   ABOUT ME STYLING
   ======================================== */
.about-hero {
    height: 60vh;
    position: relative;
    overflow: hidden;
}
.about-hero img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.about-content { max-width: 700px; margin: -50px auto 100px; position: relative; z-index: 2; background: #000; padding: 50px; border: 1px solid var(--border-color); }
.about-content p { margin-bottom: 20px; font-size: 1.1rem; opacity: 0.8; }

/* Load More Button */
#load-more-btn {
    background: none; border: 1px solid var(--border-color); color: #fff;
    padding: 12px 40px; cursor: pointer; transition: 0.3s; margin-top: 12px;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
#load-more-btn:hover { background: #fff; color: #000; }

/* ========================================
   NAVBAR DETAILS + HAMBURGER
   ======================================== */
.navbar {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 -1px rgba(255, 255, 255, 0.08);
}

.navbar-scrolled {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4), inset 0 -1px rgba(255, 255, 255, 0.12);
}

.navbar-hidden {
    transform: translateY(-120%);
    opacity: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    text-decoration: none;
    border-bottom: none;
    color: inherit;
    text-transform: none;
    letter-spacing: 0;
    font-size: inherit;
}

.brand_box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand_box img {
    height: 52px;
    width: auto;
    filter: drop-shadow(1px 1px 2px #000);
}

.brand_text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 4px;
}

.brand_text .title {
    font-size: 1.35rem;
    font-weight: 300;
    margin: 0;
}

.brand_text .tagline {
    font-size: 0.7rem;
    font-weight: 200;
    opacity: 0.7;
    margin: 0;
}

.nav_blank {
    flex: 1;
}

.nav_desktop {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav_opt a {
    border-bottom: none;
    color: inherit;
}

.nav_opt p {
    margin: 0;
    padding: 10px 12px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.nav_opt p:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-active p {
    border-bottom: 1px solid #fff;
}

.nav_hamburger {
    display: none;
    position: relative;
    z-index: 1002;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 28px;
}

.mobile-menu-content a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 300;
    padding: 12px 24px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.mobile-menu-content a.active,
.mobile-menu-content a:hover {
    border-bottom-color: #fff;
}

body.menu-open {
    overflow: hidden;
}

/* ========================================
   UPDATE LISTS (Dashboard + Category)
   ======================================== */
.ud_list,
.cat_ud_list {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px 50px;
}

.ud_info {
    display: flex;
    gap: 32px;
    margin: 40px 0;
    align-items: flex-start;
}

.ud_left {
    min-width: 90px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ud_date {
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 3.6rem);
    line-height: 0.95;
}

.ud_monthyear {
    font-size: clamp(0.8rem, 2vw, 1rem);
    opacity: 0.7;
    font-weight: 300;
    line-height: 1.1;
}

.ud_right {
    flex: 1;
}

.ud_text {
    padding-top: 0;
    padding-bottom: 26px;
}

.ud_cat {
    font-weight: 700;
    font-size: clamp(0.85rem, 2.4vw, 1rem);
    font-style: italic;
    margin: 0 0 6px 0;
}

.ud_title {
    font-weight: 300;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    margin: 0 0 10px 0;
}

.ud_description {
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    opacity: 0.85;
    font-weight: 300;
    text-align: justify;
    text-justify: inter-word;
}

.ud_description p {
    margin: 0;
}

/* ========================================
   CATEGORY LIST
   ======================================== */
.cat_list {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px 50px;
}

.cat_link {
    font-weight: 300;
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    margin-top: 80px;
    padding: 30px 20px 20px;
    background: #000;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin-bottom: 20px;
}

.footer-content {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.footer-version {
    font-size: 0.7rem;
    margin-top: 5px;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

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

.loading-spinner p {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 300;
}

/* ========================================
   INDEX INTRO
   ======================================== */
.index-hero {
    height: 100vh;
    position: relative;
}

.index-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.index-entry {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
}

.index-entry h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 100;
    margin: 0 0 14px 0;
}

.index-entry a {
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ========================================
   DAILY HISTORY (Horizontal Cards)
   ======================================== */
.daily-history {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.daily-history-title {
    font-size: 1.1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 18px 0;
    opacity: 0.7;
}

.daily-history-track {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 10px 0 10px;
}

.daily-history-card {
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 24px;
    background: #000;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.daily-history-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: #0a0a0a;
}

.daily-history-date {
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.daily-history-item {
    margin-bottom: 14px;
}

.daily-history-cat {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
}

.daily-history-item-title {
    font-size: 1rem;
    font-weight: 300;
    margin: 4px 0 6px 0;
}


.daily-history-empty {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav_desktop {
        display: none;
    }

    .nav_hamburger {
        display: flex;
        align-items: center;
    }

    .navbar {
        min-height: 64px;
        padding: 0 18px;
    }

    .page_title {
        padding-top: 100px;
    }

    .ud_info {
        flex-direction: column;
        gap: 10px;
    }

    .ud_left {
        text-align: left;
    }

    .daily-card {
        padding: 60px 30px;
    }

    .brand_text .tagline {
        font-weight: 300;
    }
}

@media (max-width: 900px) {
    .page_title,
    .ud_list,
    .cat_list,
    .daily-history,
    .about-content {
        padding-left: 32px;
        padding-right: 32px;
    }

    .daily-screenshot-area {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 520px) {
    .page_title,
    .ud_list,
    .cat_list,
    .daily-history,
    .about-content {
        padding-left: 28px;
        padding-right: 28px;
    }

    .daily-screenshot-area {
        padding-left: 28px;
        padding-right: 28px;
    }

    .daily-date {
        font-size: 1.2rem;
        line-height: 1.25;
        max-width: 22ch;
        margin-left: auto;
        margin-right: auto;
        text-wrap: balance;
    }
}
