/* Index page specific styles - Fullscreen minimal top-left aligned */

/* Index-only overrides */
html, body {
    height: 100%;
    overflow: auto;
}

/* Hide top navigation on index page */
.nav-container {
    display: none;
}

/* Ensure content sits above the background layers */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 20px;
}

.main {
    text-align: left;
    width: 100%;
    max-width: 1200px;
    margin: 0;
    padding: 40px;
    min-height: auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    position: relative;
    align-items: center;
}

/* Header section with integrated nav - left column */
.index-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    gap: 1.5rem;
    padding-right: 2rem;
    border-right: none;
    min-width: 0;
}

/* Logo - newspaper masthead style with subtle effects */
.site-logo {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 400;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    border-bottom: none;
    padding-bottom: 0.2em;
    width: 100%;
    animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.03);
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Integrated navigation menu with staggered animation */
.index-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.index-nav a {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.index-nav a:nth-child(1) { animation-delay: 0.2s; }
.index-nav a:nth-child(2) { animation-delay: 0.3s; }
.index-nav a:nth-child(3) { animation-delay: 0.4s; }
.index-nav a:nth-child(4) { animation-delay: 0.5s; }
.index-nav a:nth-child(5) { animation-delay: 0.6s; }
.index-nav a:nth-child(6) { animation-delay: 0.7s; }

.index-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #e0e0e0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.index-nav a:hover {
    color: #e0e0e0;
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(224, 224, 224, 0.2);
}

.index-nav a:hover::after {
    width: 100%;
}

/* Recent posts - right column */
.recent-posts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding-left: 2rem;
    text-align: left;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards;
}

.section-title {
    font-size: 0.75rem;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1rem 0;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.view-all {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    letter-spacing: 0.15em;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(224, 224, 224, 0.3);
    padding-bottom: 2px;
    text-transform: uppercase;
}

.view-all:hover {
    color: #e0e0e0;
    border-bottom-color: #e0e0e0;
    letter-spacing: 0.15em;
}

.post-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem 0;
    border-bottom: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    align-items: flex-start;
}

.post-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0;
    margin: 0;
    position: relative;
    word-break: break-word;
}

.post-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #e0e0e0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-item:hover a {
    color: #e0e0e0;
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(224, 224, 224, 0.15);
}

.post-item:hover a::after {
    width: 100%;
}

.post-date {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    width: 100%;
    margin-top: 0.2rem;
}

/* Tablet/smaller desktop - adjust proportions */
@media (max-width: 1200px) {
    .main {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        padding: 60px 40px;
    }

    .site-logo {
        font-size: clamp(2rem, 5vw, 4rem);
    }
}

/* Mobile & Tablet adjustments - centered vertical layout */
@media (max-width: 1024px) {
    html, body {
        overflow: auto;
    }

    .container {
        height: auto;
        overflow: auto;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    .main {
        height: auto;
        min-height: 100vh;
        padding: 60px 1.5rem !important;
        display: flex;
        flex-direction: column;
        gap: 4rem;
        justify-content: center;
        max-width: 700px;
        margin: 0 auto;
        overflow: visible;
    }

    .index-header {
        gap: 2rem;
        padding-right: 0;
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 2.5rem;
        align-items: flex-start;
        text-align: left;
        position: relative;
    }

    .index-header::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 60px;
        height: 2px;
        background: rgba(255, 255, 255, 0.6);
        animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s backwards;
    }

    @keyframes slideIn {
        from {
            width: 0;
            opacity: 0;
        }
        to {
            width: 60px;
            opacity: 1;
        }
    }

    .site-logo {
        border-bottom-width: 3px;
        padding-bottom: 0.2em;
        text-align: left;
        font-size: clamp(2.5rem, 12vw, 4rem);
        text-shadow: 0 0 60px rgba(255, 255, 255, 0.05);
    }

    .index-nav {
        gap: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .index-nav a {
        text-align: left;
        font-size: 1.3rem;
        padding: 0.2rem 0;
        position: relative;
        overflow: hidden;
    }

    .index-nav a::before {
        content: '→';
        position: absolute;
        left: -25px;
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        color: rgba(255, 255, 255, 0.6);
    }

    .index-nav a:hover::before {
        left: -20px;
        opacity: 1;
    }

    .index-nav a::after {
        bottom: -2px;
        left: 0;
        transform: none;
        height: 1px;
    }

    .recent-posts {
        position: static;
        max-width: 100%;
        width: 100%;
        max-height: none;
        overflow-y: visible;
        padding-left: 0;
        text-align: left;
        background: rgba(255, 255, 255, 0.01);
        border: 1px solid rgba(255, 255, 255, 0.05);
        padding: 2rem 1.5rem;
        backdrop-filter: blur(10px);
    }

    .section-title {
        margin: 0 0 1.5rem 0;
        text-align: left;
        font-size: 0.65rem;
        color: rgba(255, 255, 255, 0.4);
    }

    .view-all {
        margin-top: 1.5rem;
        display: inline-block;
        font-size: 0.8rem;
        padding: 0.4rem 0;
    }

    .post-item {
        padding: 1.2rem 0;
        align-items: flex-start;
        position: relative;
        background: transparent;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .post-item::before {
        content: '';
        position: absolute;
        left: -1.5rem;
        top: 0;
        bottom: 0;
        width: 2px;
        background: rgba(255, 255, 255, 0);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .post-item:hover::before {
        background: rgba(255, 255, 255, 0.3);
    }

    .post-item:hover {
        padding-left: 0.8rem;
        margin-left: -0.8rem;
        background: rgba(255, 255, 255, 0.02);
    }

    .post-item a {
        text-align: left;
        font-size: 1.15rem;
        letter-spacing: 0.08em;
        line-height: 1.4;
    }

    .post-item a::after {
        bottom: -2px;
        left: 0;
        height: 1px;
    }

    .post-item:hover a {
        letter-spacing: 0.12em;
    }

    .post-date {
        text-align: left;
        font-size: 0.65rem;
        opacity: 0.7;
    }
}

/* Now Playing Widget */
.now-playing {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.now-playing.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.now-playing-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    color: #fff;
    font-size: 0.875rem;
    max-width: 280px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.now-playing-content:hover {
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 255, 255, 0.3);
}

.now-playing-icon {
    font-size: 1.5rem;
    line-height: 1;
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.now-playing-info {
    flex: 1;
    min-width: 0;
}

.now-playing-track {
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.now-playing-artist {
    font-size: 0.75rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .now-playing {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }

    .now-playing-content {
        max-width: none;
    }
}