/* --- GLOBAL RESET & BASE --- */
* {
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #2c2c2c;
    font-family: Georgia, 'Times New Roman', serif; 
    
    /* WIDTH FOR 2-COLUMN LAYOUT */
    max-width: 1000px;         
    margin: 60px auto;
    padding: 0 40px;
    line-height: 1.5;
}

/* --- THE 2-COLUMN GRID LAYOUT --- */
.layout-grid {
    display: grid;
    /* Left column is 280px fixed, Right column takes remaining space */
    grid-template-columns: 280px 1fr; 
    gap: 80px;                 
    align-items: start;        
}

/* --- LEFT COLUMN: SIDEBAR --- */
.sidebar {
    position: sticky;
    top: 40px; 
}

.profile-card {
    text-align: left; 
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #f9f9f9;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

h1 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin: 0 0 5px 0;
    color: #111;
}

.intro-text {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #888;
    margin: 0;
}

.separator-small {
    width: 100%;       
    height: 1px;
    background-color: #eee;
    margin: 20px 0;
}

.bio-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* --- RIGHT COLUMN: MAIN CONTENT --- */
.main-content {
    padding-top: 10px; 
}

/* --- SECTION LABELS --- */
.section-label {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    color: #bbb;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
    margin-top: 0;      
    padding-top: 0;
}

/* --- DIRECTORY LINKS --- */
.menu-section {
    margin-bottom: 15px; 
    padding-bottom: 0;
    border-bottom: none; 
}

.modern-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

.modern-link .link-text {
    font-size: 1.2rem;
    color: #333;
    font-family: Georgia, serif;
}

.modern-link .arrow {
    font-size: 1.2rem;
    color: #ddd;
    transition: transform 0.2s ease;
}

.modern-link:hover {
    border-bottom: 1px solid #000;
    padding-left: 10px;
}

.modern-link:hover .link-text {
    color: #000;
}

.modern-link:hover .arrow {
    color: #000;
    transform: translateX(5px);
}

/* --- WIDGET AREA --- */
.widget-box {
    margin-top: 0;
    /* This fixes the text collision while keeping it compact */
    margin-bottom: 30px; 
}

.daily-image-wrapper {
    width: fit-content;      
    max-width: 100%;         
    display: block;          
}

.widget-image {
    max-width: 100%;        
    max-height: 350px;      
    width: auto;            
    height: auto;           
    display: block;         
    margin: 0;     
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.widget-caption {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 0.9rem;
    color: #888;
    text-align: center;       
    /* Tiny gap so caption doesn't touch the image */
    margin-top: 6px; 
    margin-bottom: 0;
    display: block;
}

/* --- TIME WIDGET (SIDEBAR) --- */
.time-widget {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee; 
    width: 100%;
}

.time-row {
    display: flex;
    justify-content: space-between; 
    margin-bottom: 8px;
    font-family: 'Courier New', Courier, monospace; 
    font-size: 0.85rem;
}

.time-label {
    color: #999;
    letter-spacing: 0px;
}

.time-data {
    color: #999;
    font-weight: normal;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* Optimizing the outer spacing for small screens */
    body {
        margin: 20px auto; 
        padding: 0 20px; /* Reduces side padding so content isn't squished */
    }

    .layout-grid {
        grid-template-columns: 1fr; 
        gap: 40px;
    }
    
    .sidebar {
        text-align: center; 
        position: static;
    }
    
    .separator-small {
        margin: 20px auto; 
    }

    /* Centers the image on mobile */
    .daily-image-wrapper {
        margin: 0 auto;
    }
}

/* =========================================
   COMPACT & MODERN AUDIO PLAYER
   ========================================= */

.audio-player-wrapper.compact-wrapper {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    max-width: 300px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LEFT SIDE: Cover Art + Text Info */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.song-cover-img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #eee;
    background-color: #ddd;
    flex-shrink: 0;
}

.song-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.song-title { 
    font-weight: 700; 
    font-size: 13px; 
    color: #222; 
    white-space: nowrap; 
    text-overflow: ellipsis;
    overflow: hidden;
}

.song-artist { 
    font-size: 11px; 
    color: #888; 
    margin-top: 2px;
}

/* RIGHT SIDE: Volume + Play */
.controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.console-btn-round {
    background: #222; 
    color: #fff; 
    border: none;
    width: 28px; 
    height: 28px; 
    border-radius: 50%;
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 10px;
    transition: transform 0.1s, background 0.2s;
}

.console-btn-round:hover {
    background: #000;
    transform: scale(1.05);
}

/* --- VOLUME POPUP --- */
.volume-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vol-icon {
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.vol-icon:hover {
    color: #222;
}

.vol-popup {
    position: absolute;
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 80px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden; 
    transition: opacity 0.2s, visibility 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.volume-wrapper:hover .vol-popup {
    opacity: 1;
    visibility: visible;
}

.vertical-slider {
    width: 60px; 
    height: 4px;
    background: #ddd;
    outline: none;
    border-radius: 2px;
    transform: rotate(-90deg);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.vertical-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px; height: 10px;
    background: #222; border-radius: 50%;
}

/* --- PROGRESS BAR --- */
.player-progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-text {
    font-size: 9px;
    color: #999;
    font-family: 'Courier New', monospace;
    min-width: 28px;
}

.progress-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.console-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: #eee;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.console-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    background: #222;
    border-radius: 50%;
    transition: transform 0.1s;
}

.console-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* =========================================
   POSTS LIST STYLING (For Python Script)
   ========================================= */

.post-list-container {
    margin-top: 10px;
    border-top: 1px solid #eee; /* Top line to start the list */
}

/* This targets the div created by your Python script */
.post-entry {
    display: flex;
    align-items: baseline; /* Aligns date and text nicely */
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

.post-entry:hover {
    border-bottom: 1px solid #000;
    padding-left: 10px; /* Slight movement effect like homepage */
    background-color: #fafafa;
}

/* The Date Span */
.post-entry .date {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #999;
    width: 100px; /* Fixed width so titles align perfectly */
    flex-shrink: 0;
}

/* The Title Link */
.post-entry .title {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.2s;
}

.post-entry:hover .title {
    color: #000;
}