/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Monaco, monospace;
    background-color: #fff;
    color: #000;
    overflow-x: hidden;
}

/* Navigation */
.nav {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-btn {
    background: none;
    border: 2px solid #000;
    color: #000;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    background: #000;
    color: #fff;
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-counter {
    font-family: 'Courier New', Monaco, monospace;
    font-size: 14px;
    color: #666;
    min-width: 40px;
    text-align: center;
}

/* Main Container */
.main-container {
    min-height: 100vh;
}

/* Headline Section */
.headline-section {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 2px solid #ddd;
}

.headline {
    font-family: Impact, 'Arial Black', Arial, sans-serif;
    font-style: italic;
    font-weight: 900;
    text-align: center;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    hyphens: auto;
    
    /* Dynamic font sizing - will be overridden by JavaScript */
    font-size: clamp(2rem, 8vw, 12rem);
    
    /* Text effects */
    text-shadow: 3px 3px 0px #ddd;
}

/* Content Section */
.content-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    font-family: 'Courier New', Monaco, monospace;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-content h1 {
    display: none; /* Hide the h1 since it's shown in the headline section */
}

.article-content p {
    margin-bottom: 24px;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* Make text more readable */
.article-content strong {
    color: #000;
    font-weight: bold;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
        gap: 10px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .nav-counter {
        font-size: 12px;
        min-width: 35px;
    }
    
    .headline-section {
        height: 70vh;
        padding: 15px;
    }
    
    .headline {
        font-size: clamp(1.5rem, 10vw, 8rem);
        text-shadow: 2px 2px 0px #ddd;
    }
    
    .content-section {
        padding: 40px 15px;
        max-width: none;
    }
    
    .article-content {
        font-size: 16px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .headline-section {
        height: 65vh;
    }
    
    .headline {
        font-size: clamp(1.2rem, 12vw, 6rem);
    }
    
    .article-content {
        font-size: 15px;
    }
}

/* Loading state */
.loading {
    opacity: 0.5;
}

/* Smooth transitions */
.headline, .article-content {
    transition: opacity 0.3s ease;
}

/* Keyboard navigation hint (hidden by default) */
.keyboard-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .keyboard-hint {
    opacity: 1;
}
