/* ========================================
   BASE STYLES & DARK MODE
   ======================================== */
body {
    font-family: 'EB Garamond', serif;
    background-color: #0a0a0a;
    color: #e5e5e5;
    cursor: crosshair;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: #e5e5e5;
    color: #0a0a0a;
}

/* ========================================
   NAVIGATION TABS
   ======================================== */
.nav-tabs {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.brand-prefix {
    color: #fff;
    cursor: default;
}

.nav-tab {
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Nav tabs inside h1 should inherit the heading size */
h1 .nav-tab {
    font-size: inherit;
}

.nav-tab:hover {
    color: #999;
}

.nav-tab.active {
    color: #fff;
    cursor: default;
}

/* ========================================
   LINKS & INTERACTIVE ELEMENTS
   ======================================== */
.project-link {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.project-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 5px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.project-link:hover::after {
    width: 100%;
}

.project-link:hover {
    font-style: italic;
    letter-spacing: 0.05em;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

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

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ========================================
   JOURNAL LAYOUT
   ======================================== */
.journal-entry {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: baseline;
    margin-bottom: 2.5rem;
}

.journal-date {
    grid-column: 1;
}

.journal-title {
    grid-column: 2;
}

.journal-description {
    grid-column: 3;
}

@media (max-width: 768px) {
    .journal-entry {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .journal-date,
    .journal-title,
    .journal-description {
        grid-column: 1;
    }
}

/* ========================================
   RADIO PLAYER
   ======================================== */
.radio-player {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Status Indicator */
.radio-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    transition: background 0.3s ease;
}

.status-dot.online {
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #666;
    text-transform: uppercase;
}

.status-dot.online + .status-text {
    color: #4ade80;
}

/* Now Playing */
.now-playing {
    margin-bottom: 2rem;
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.track-title {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 400;
}

.track-artist {
    font-size: 1rem;
    color: #888;
}

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: #fff;
    color: #000;
}

.play-icon {
    font-size: 1.5rem;
    margin-left: 3px; /* Optical centering for play icon */
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.volume-icon {
    font-size: 1.25rem;
    color: #888;
    font-family: 'Courier New', Courier, Monaco, 'Lucida Console', monospace;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
}

/* Up Next Queue */
.up-next {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
}

.up-next h4 {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 400;
}

#queue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.queue-item {
    padding: 0.75rem 0;
    color: #888;
    border-bottom: 1px solid #222;
    font-size: 0.9rem;
}

.queue-item:last-child {
    border-bottom: none;
}

.queue-empty {
    color: #555;
    font-style: italic;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .project-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .header-stack {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Radio Player Mobile */
    .radio-player {
        padding: 1.5rem 0;
    }
    
    .player-controls {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .volume-control {
        width: 100%;
        order: 2;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
    }
    
    .track-title {
        font-size: 1.25rem;
    }
}

