/* ============================================
   COMPLETE CSS FOR THELASTKNOWN WEBSITE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4845E8;
    --bg-cream: #FEFBF6;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --sidebar-width: 260px;
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-cream);
    border-right: 2px solid #e0e0e0;
    padding: 1rem 0 0.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid #ddd;
}

.logo {
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    display: inline-block;
    letter-spacing: -0.5px;
}

.logo a {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.nav-section {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #ddd;
}

.nav-heading {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-style: italic;
}

.nav-link {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.35rem 0;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary-blue);
    padding-left: 0.5rem;
}

.nav-link.active {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1002;
    background: var(--primary-blue);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 0;
    max-width: calc(100vw - var(--sidebar-width));
    overflow-x: hidden;
}

/* ==================== HOME PAGE ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 20px 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-top-decoration {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    pointer-events: none;
    z-index: 0;
}
.hero-bottom-decoration {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    pointer-events: none;
    z-index: 0;
}


.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 900px;
    padding: 0 1rem;
}

.name-title {
    font-family: 'Space Mono', monospace;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out;
}

.tagline {
    font-family: 'Crimson Pro', serif;
    font-size: 2.2rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== ABOUT PAGE ==================== */
.about-page {
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    
}

.about-hero {

    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
    position: relative;
    
    

}
.about-card{
    max-width:900px;
    padding:60px 50px;
    border-radius:24px;

    background:#ffffff;   /* solid background */
    box-shadow:0 20px 60px rgba(0,0,0,0.08);

    text-align:center;

    position:relative;
    z-index:20;
    

}
.about-quote {

    font-family: 'Crimson Pro', serif;
    font-size: 2.3rem;
    line-height: 1.4;

    color: var(--primary-blue);

    margin-bottom: 30px;
    

}

.about-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    /* z-index: 1; */
}

.deco-saturn {
    position: absolute;
    top: 5%;
    left: 8%;
    width: 220px;
    opacity: 1;
    animation: float 6s ease-in-out infinite;
    z-index: 21;
}

.deco-scene {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    max-width: 700px;
    height: auto;
    opacity: 0.3;
    z-index: 21;
    
}

.deco-satellite {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 150px;
    opacity: 1;
    animation: float 8s ease-in-out infinite 1s;
    z-index: 21;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-25px) rotate(3deg); 
    }
}

.about-hero .hero-content {
    position: relative;
    z-index: 10;
    background: rgba(254, 251, 246, 0.95);
    padding: 3rem;
    border-radius: 20px;
    max-width: 900px;
}

.hero-quote {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-description {
    font-family: 'Space Mono', monospace;
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.8;
    text-align: center;
    animation: fadeInUp 1.2s ease-out;
}

/* Focus section */
.focus-section {
    background: var(--primary-blue);
    color: white;
    padding: 2.5rem 2rem;
    margin: 2rem;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    max-width: calc(100% - 4rem);
    box-sizing: border-box;
}

.focus-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.focus-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.focus-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.focus-item-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.focus-item-content {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.95;
}

.additional-info {
    background: white;
    color: var(--text-dark);
    padding: 2rem;
    margin: 2rem;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    max-width: calc(100% - 4rem);
    box-sizing: border-box;
}

.additional-info p {
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
}

/* ==================== CATEGORY PAGES ==================== */
.section {
    padding: 2rem 2rem;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

.category-header {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 24px;
    margin-bottom: 3rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-header-bg {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.category-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 3rem;
    max-width: 1000px;
}

.category-header-content h1 {
    font-family: 'Space Mono', monospace;
    font-size: 4vw;
    font-weight: 700;
    margin-bottom: 0.1rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.category-header-content p {
    font-family: 'Space Mono', monospace;
    font-size: 1.2vw;
    line-height: 1.5;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* ==================== TABS ==================== */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-gray);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab:hover {
    color: var(--primary-blue);
}

.tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==================== POSTS GRID ==================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: justify;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.post-category {
    background: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
}

.post-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-excerpt {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================== THREAD CARD ==================== */
.thread-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.thread-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.thread-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.thread-date {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.thread-content {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.read-more-btn {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background: #3634c7;
    transform: scale(1.05);
}

/* ==================== POST PAGE ==================== */
.post-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.back-button {
    display: inline-block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 2rem;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    transition: all 0.2s;
    font-weight: 700;
    background: white;
}

.back-button:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateX(-4px);
}

.post-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2rem;
}
.post-title-main{
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    font-weight:700;
    line-height:1.2;
    margin:1rem 0;

    word-break: break-word;
    overflow-wrap: break-word;
}

.subtitle{

    word-break: break-word;
    overflow-wrap: break-word;
    /* text-align: justify; */
}
.post-body{
    text-align: justify;
}

.post-body {
    font-family: 'Crimson Pro', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h3 {
    font-family: 'Space Mono', monospace;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.post-body strong {
    font-weight: 700;
}

.post-body em {
    font-style: italic;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* ==================== PAGES ==================== */
.page {
    display: none;
}

.page.active {
    display: block;
}

.loading {
    text-align: center;
    padding: 4rem;
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
    :root {
        --sidebar-width: 280px;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        max-width: 100vw;
        padding: 0;
    }

    .hero {
        padding: 4rem 1.5rem 2rem;
    }

    .home-bottom-scene {
        max-height: 35%;
    }

    .name-title {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about-hero {
        padding: 4rem 1.5rem 2rem;
    }

    .deco-saturn {
        width: 120px;
    }

    .deco-satellite {
        width: 80px;
    }

    .deco-scene {
        width: 80%;
        opacity: 0.3;
    }

    .about-hero .hero-content {
        padding: 2rem;
    }

    .hero-quote {
        font-size: 1.5rem;
    }

    .focus-section,
    .additional-info {
        margin: 1rem;
        padding: 1.5rem;
        max-width: calc(100% - 2rem);
    }

    .section {
        padding: 2rem 1rem;
    }

    .category-header {
        height: 300px;
        border-radius: 16px;
    }

    .category-header-content h1 {
        font-size: 4vw;
        margin-bottom: 1.5rem;
    }

    .category-header-content p {
        font-size: 1rem;
    }

    .category-header-content {
        padding: 0 1.5rem;
    }

    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .post-title-main{
    font-family: 'Space Mono', monospace;
    font-size: 2.2rem;
    font-weight:700;
    line-height:1.2;
    margin:1rem 0;
    /* text-align: justify; */
    word-break: break-word;
    overflow-wrap: break-word;
}
    .subtitle{

    word-break: break-word;
    overflow-wrap: break-word;
    text-align: justify;
}
.post-body{
    text-align: justify;
}
}

@media (max-width: 480px) {
    .name-title {
        font-size: 2rem;
    }

    .tagline,
    .hero-quote {
        font-size: 1.2rem;
    }

    .focus-section {
        padding: 1.2rem;
    }

    .focus-title {
        font-size: 1.5rem;
    }

    .focus-item-title {
        font-size: 1.05rem;
    }

    .focus-item-content {
        font-size: 0.875rem;
    }
    .about-card{

    padding:40px 25px;

}

.about-quote{

    font-size:1.5rem;

}

.about-description{

    font-size:0.9rem;
    /* text-align: justify; */

}

.category-header-content h1 {
        font-size: 8vw;
        margin-bottom: 1rem;
    }

    .category-header-content p {
        font-size: 3vw;
    }

    .category-header-content {
        padding: 0 1.5rem;
    }
.post-title-main{
    font-family: 'Space Mono', monospace;
    font-size: 2.2rem;
    font-weight:700;
    line-height:1.2;
    margin:1rem 0;
    /* text-align: justify; */
    word-break: break-word;
    overflow-wrap: break-word;
}
.subtitle{

    word-break: break-word;
    overflow-wrap: break-word;
    text-align: justify;
}
.post-body{
    text-align: justify;
}
}
