/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    background-color: #0a0a0a;
    color: #f5f5f5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Main quote display page */
.quote-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.quote-display {
    max-width: 800px;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: relative;
}

.quote-display.visible {
    opacity: 1;
}

/* Navigation arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-arrow-left {
    left: -80px;
}

.nav-arrow-right {
    right: -80px;
}

.nav-arrow.disabled {
    opacity: 0 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.arrow-icon {
    font-size: 2rem;
    font-weight: 300;
    color: #f5f5f5;
    user-select: none;
}

.quote-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.4;
}

.quote-text::before {
    content: '"';
}

.quote-text::after {
    content: '"';
}

.quote-author {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #888;
    font-style: normal;
    font-weight: 400;
}

.quote-author::before {
    content: '— ';
}

.quote-year {
    font-weight: 300;
    opacity: 0.7;
    font-size: 0.9em;
}

/* Footer */
footer {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timer-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.timer-controls:hover {
    opacity: 1;
}

.bitcoin-info {
    color: #666;
    font-size: 0.75rem;
    font-weight: 400;
    margin-right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-width: 80px;
    text-align: right;
}

.bitcoin-info.visible {
    opacity: 1;
}

.bitcoin-symbol {
    color: #666;
    font-size: 0.75rem;
    font-weight: 400;
    margin-right: 0.25rem;
    transform: rotate(14deg);
    display: inline-block;
    cursor: pointer;
    transition: color 0.3s ease;
}

.bitcoin-symbol:hover {
    color: #999;
}

.countdown-timer {
    color: #666;
    font-size: 0.75rem;
    font-weight: 400;
    min-width: 25px;
    text-align: right;
}

.pause-play-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 0.875rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.pause-play-btn:hover {
    color: #999;
    background-color: rgba(255, 255, 255, 0.1);
}



.about-link {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.about-link:hover {
    color: #999;
}

/* About page styles */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.about-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.about-container h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #ccc;
}

.about-container p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #ddd;
}

.purpose {
    margin-bottom: 3rem;
}

.links ul {
    list-style: none;
    margin-bottom: 3rem;
}

.links li {
    margin-bottom: 0.5rem;
}

.links a {
    color: #4a9eff;
    text-decoration: none;
    font-size: 1.125rem;
}

.links a:hover {
    text-decoration: underline;
}

.quote-list {
    margin-bottom: 3rem;
}

.quote-filter {
    margin-bottom: 2rem;
}

#quoteFilter {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 6px;
    color: #eee;
    font-family: inherit;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

#quoteFilter:focus {
    outline: none;
    border-color: #4a9eff;
    background-color: rgba(255, 255, 255, 0.08);
}

#quoteFilter::placeholder {
    color: #999;
}

.filter-info {
    text-align: center;
    font-size: 0.875rem;
    color: #999;
    font-style: italic;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #999;
    font-style: italic;
}

.no-results p {
    margin: 0;
    font-size: 1.125rem;
}

.quote-item {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-left: 3px solid #333;
    background-color: rgba(255, 255, 255, 0.02);
}

.quote-item blockquote {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: #eee;
}

.quote-item cite {
    font-size: 1rem;
    color: #999;
    display: block;
    margin-bottom: 0.5rem;
}

.quote-item .quote-year {
    font-weight: 300;
    opacity: 0.6;
    font-size: 0.9em;
}

.reference a {
    color: #4a9eff;
    text-decoration: none;
    font-size: 0.875rem;
}

.reference a:hover {
    text-decoration: underline;
}

.back-nav {
    text-align: center;
    margin-top: 3rem;
}

.back-nav a {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-nav a:hover {
    color: #999;
}

/* Desktop navigation - keep original behavior */
@media (min-width: 769px) {
    .quote-display:hover .nav-arrow:not(.disabled) {
        opacity: 0.7;
    }
    
    .nav-arrow:not(.disabled):hover {
        opacity: 1 !important;
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    /* Desktop: Use original emoji symbols */
    .pause-icon {
        font-family: inherit;
        font-weight: inherit;
    }
    
    .pause-icon::before {
        content: "⏸";
    }
    
    .play-icon {
        font-family: inherit;
        font-weight: inherit;
    }
    
    .play-icon::before {
        content: "▶";
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .quote-container {
        padding: 1.5rem;
    }
    
    .about-container {
        padding: 2rem 1.5rem;
    }
    
    .about-container h1 {
        font-size: 2rem;
    }
    
    footer {
        bottom: 0.75rem;
        right: 0.75rem;
        gap: 0.75rem;
    }
    
    .timer-controls {
        gap: 0.375rem;
    }
    
    .bitcoin-info {
        font-size: 0.7rem;
        margin-right: 0.3rem;
        min-width: 70px;
    }
    
    .bitcoin-symbol {
        font-size: 0.7rem;
        margin-right: 0.2rem;
        color: #666;
        transform: rotate(14deg);
        cursor: pointer;
        transition: color 0.3s ease;
        padding: 0.5rem;
        margin: -0.5rem 0.2rem -0.5rem -0.5rem;
        touch-action: manipulation;
    }
    
    .bitcoin-symbol:hover,
    .bitcoin-symbol:active {
        color: #999;
    }
    
    .countdown-timer {
        font-size: 0.7rem;
        min-width: 22px;
    }
    
    .pause-play-btn {
        font-size: 0.8rem;
        width: 22px;
        height: 22px;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .pause-play-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    /* Use different symbols for mobile for better rendering */
    .pause-icon {
        font-family: monospace;
        font-weight: bold;
    }
    
    .pause-icon::before {
        content: "❚❚";
    }
    
    .play-icon {
        font-family: monospace;
        font-weight: bold;
    }
    
    .play-icon::before {
        content: "▶";
    }
    
    .quote-item {
        padding: 1rem;
    }
    
    /* Mobile navigation arrows - move to bottom */
    .nav-arrow {
        position: fixed;
        top: auto;
        bottom: 4rem;
        transform: none;
        width: 50px;
        height: 50px;
        opacity: 0.6;
        transition: opacity 0.3s ease;
    }
    
    .nav-arrow-left {
        left: 1rem;
        right: auto;
    }
    
    .nav-arrow-right {
        right: 1rem;
        left: auto;
    }
    
    .nav-arrow:hover {
        opacity: 1;
    }
    
    /* Override desktop hover behavior for mobile */
    .quote-display:hover .nav-arrow {
        opacity: 0.6;
    }
    
    .arrow-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quote-container {
        padding: 1rem;
    }
    
    .about-container {
        padding: 1.5rem 1rem;
    }
    
    .quote-text {
        margin-bottom: 1.5rem;
    }
    
    /* Smaller arrows for phones */
    .nav-arrow {
        width: 40px;
        height: 40px;
        bottom: 3.5rem;
    }
    
    .nav-arrow-left {
        left: 0.75rem;
    }
    
    .nav-arrow-right {
        right: 0.75rem;
    }
    
    .arrow-icon {
        font-size: 1.2rem;
    }
    
    /* Enhanced mobile pause/play button */
    .pause-play-btn {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        background-color: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .pause-play-btn:hover {
        background-color: rgba(255, 255, 255, 0.25);
    }
}

/* Light mode support (can be toggled in future) */
@media (prefers-color-scheme: light) {
    body {
        background-color: #fafafa;
        color: #2a2a2a;
    }
    
    .quote-author {
        color: #666;
    }
    
    .about-link {
        color: #999;
    }
    
    .about-link:hover {
        color: #666;
    }
    
    .about-container h2 {
        color: #555;
    }
    
    .about-container p {
        color: #444;
    }
    
    .quote-item {
        border-left-color: #ddd;
        background-color: rgba(0, 0, 0, 0.02);
    }
    
    .quote-item blockquote {
        color: #333;
    }
    
    .quote-item cite {
        color: #666;
    }
    
    .quote-item .quote-year {
        opacity: 0.5;
    }
    
    .back-nav a {
        color: #999;
    }
    
    .back-nav a:hover {
        color: #666;
    }
    
    /* Light mode quote filter */
    #quoteFilter {
        background-color: rgba(0, 0, 0, 0.05);
        border-color: #ccc;
        color: #333;
    }
    
    #quoteFilter:focus {
        border-color: #4a9eff;
        background-color: rgba(0, 0, 0, 0.08);
    }
    
    #quoteFilter::placeholder {
        color: #666;
    }
    
    .filter-info {
        color: #666;
    }
    
    .no-results {
        color: #666;
    }
    
    /* Light mode navigation arrows */
    .nav-arrow {
        background-color: rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.2);
    }
    
    .nav-arrow:hover {
        background-color: rgba(0, 0, 0, 0.15);
    }
    
    .arrow-icon {
        color: #2a2a2a;
    }
    
    /* Light mode timer controls */
    .bitcoin-info {
        color: #999;
    }
    
    .bitcoin-symbol {
        color: #999;
    }
    
    .bitcoin-symbol:hover {
        color: #666;
    }
    
    .countdown-timer {
        color: #999;
    }
    
    .pause-play-btn {
        color: #999;
    }
    
    .pause-play-btn:hover {
        color: #666;
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Light mode mobile pause/play adjustments */
    @media (max-width: 768px) {
        .pause-play-btn {
            background-color: rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.2);
        }
        
        .pause-play-btn:hover {
            background-color: rgba(0, 0, 0, 0.2);
        }
    }
    
    @media (max-width: 480px) {
        .pause-play-btn {
            background-color: rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(0, 0, 0, 0.3);
        }
        
        .pause-play-btn:hover {
            background-color: rgba(0, 0, 0, 0.25);
        }
        
        /* Light mode mobile bitcoin symbol */
        .bitcoin-symbol {
            color: #999;
        }
        
        .bitcoin-symbol:hover,
        .bitcoin-symbol:active {
            color: #666;
        }
    }
}

/* Large TV/Display optimizations */
@media (min-width: 1600px) {
    .quote-text {
        font-size: clamp(2rem, 5vw, 8rem);
        line-height: 1.3;
        margin-bottom: 3rem;
    }
    
    .quote-author {
        font-size: clamp(1.2rem, 3vw, 4rem);
        margin-top: 1rem;
    }
    
    .quote-container {
        padding: 4rem;
    }
    
    .quote-display {
        max-width: 1200px;
    }
    
    /* Larger navigation arrows for TV */
    .nav-arrow {
        width: 80px;
        height: 80px;
    }
    
    .nav-arrow-left {
        left: -120px;
    }
    
    .nav-arrow-right {
        right: -120px;
    }
    
    .arrow-icon {
        font-size: 2.5rem;
    }
    
    /* Larger footer elements for TV */
    footer {
        bottom: 2rem;
        right: 2rem;
        gap: 1.5rem;
    }
    
    .bitcoin-info {
        font-size: 1rem;
        margin-right: 0.7rem;
        min-width: 100px;
    }
    
    .bitcoin-symbol {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .countdown-timer {
        font-size: 1rem;
        min-width: 35px;
    }
    
    .pause-play-btn {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    
    .about-link {
        font-size: 1.1rem;
    }
    
    /* About page TV optimizations */
    .about-container {
        max-width: 1200px;
        padding: 4rem;
    }
    
    .about-container h1 {
        font-size: clamp(3rem, 5vw, 6rem);
        margin-bottom: 3rem;
    }
    
    .about-container h2 {
        font-size: clamp(2rem, 3vw, 4rem);
        margin: 3rem 0 2rem;
    }
    
    .about-container p {
        font-size: clamp(1.3rem, 2vw, 2.5rem);
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    .links a {
        font-size: clamp(1.3rem, 2vw, 2.5rem);
    }
    
    .quote-item {
        margin-bottom: 3rem;
        padding: 2.5rem;
    }
    
    .quote-item blockquote {
        font-size: clamp(1.3rem, 2vw, 2.5rem);
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    .quote-item cite {
        font-size: clamp(1.1rem, 1.8vw, 2rem);
        margin-bottom: 1rem;
    }
    
    .reference a {
        font-size: clamp(1rem, 1.5vw, 1.8rem);
    }
    
    .back-nav a {
        font-size: clamp(1.2rem, 2vw, 2rem);
    }
    
    /* Quote filter TV scaling */
    #quoteFilter {
        padding: 1rem 1.5rem;
        font-size: clamp(1.2rem, 2vw, 2rem);
        margin-bottom: 1rem;
    }
    
    .filter-info {
        font-size: clamp(1rem, 1.5vw, 1.5rem);
    }
    
    .no-results p {
        font-size: clamp(1.3rem, 2vw, 2.5rem);
    }
}

/* Extra large TV/Display optimizations */
@media (min-width: 2000px) {
    .quote-text {
        font-size: clamp(2.5rem, 6vw, 10rem);
        line-height: 1.25;
        margin-bottom: 4rem;
    }
    
    .quote-author {
        font-size: clamp(1.5rem, 3.5vw, 5rem);
        margin-top: 1.5rem;
    }
    
    .quote-container {
        padding: 6rem;
    }
    
    .quote-display {
        max-width: 1400px;
    }
    
    /* Even larger navigation for very large displays */
    .nav-arrow {
        width: 100px;
        height: 100px;
    }
    
    .nav-arrow-left {
        left: -150px;
    }
    
    .nav-arrow-right {
        right: -150px;
    }
    
    .arrow-icon {
        font-size: 3rem;
    }
    
    /* Scale up footer for very large displays */
    footer {
        bottom: 3rem;
        right: 3rem;
        gap: 2rem;
    }
    
    .bitcoin-info {
        font-size: 1.2rem;
        margin-right: 0.8rem;
        min-width: 120px;
    }
    
    .bitcoin-symbol {
        font-size: 1.2rem;
        margin-right: 0.6rem;
    }
    
    .countdown-timer {
        font-size: 1.2rem;
        min-width: 40px;
    }
    
    .pause-play-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .about-link {
        font-size: 1.3rem;
    }
    
    /* About page extra large TV optimizations */
    .about-container {
        max-width: 1400px;
        padding: 6rem;
    }
    
    .about-container h1 {
        font-size: clamp(4rem, 6vw, 8rem);
        margin-bottom: 4rem;
    }
    
    .about-container h2 {
        font-size: clamp(2.5rem, 4vw, 5rem);
        margin: 4rem 0 2.5rem;
    }
    
    .about-container p {
        font-size: clamp(1.6rem, 2.5vw, 3rem);
        margin-bottom: 2.5rem;
        line-height: 1.5;
    }
    
    .links a {
        font-size: clamp(1.6rem, 2.5vw, 3rem);
    }
    
    .quote-item {
        margin-bottom: 4rem;
        padding: 3rem;
    }
    
    .quote-item blockquote {
        font-size: clamp(1.6rem, 2.5vw, 3rem);
        margin-bottom: 2rem;
        line-height: 1.4;
    }
    
    .quote-item cite {
        font-size: clamp(1.3rem, 2.2vw, 2.5rem);
        margin-bottom: 1.2rem;
    }
    
    .reference a {
        font-size: clamp(1.2rem, 1.8vw, 2.2rem);
    }
    
    .back-nav a {
        font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    }
    
    /* Quote filter extra large TV scaling */
    #quoteFilter {
        padding: 1.2rem 2rem;
        font-size: clamp(1.5rem, 2.5vw, 2.5rem);
        margin-bottom: 1.2rem;
    }
    
    .filter-info {
        font-size: clamp(1.2rem, 2vw, 2rem);
    }
    
    .no-results p {
        font-size: clamp(1.6rem, 2.5vw, 3rem);
    }
} 