/* Otto's Notes Specific Styles */

body {
    overflow: auto !important;
    height: auto !important;
    background: #f8fafc;
}

.notes-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    min-height: 100vh;
}

/* Header */
.notes-header {
    margin-bottom: 0;
    padding-top: 60px;
    text-align: left;
    clear: both;
}

.header-actions {
    margin-top: -10px;  /* More negative margin to pull it up higher */
    margin-bottom: 60px;
    text-align: left;
    padding: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    display: block;
}

.header-actions a {
    width: 100%;
    display: block;
}

/* Button styles matching waitlist */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    width: 100% !important;
    min-width: 100%;
    max-width: 100%;
    text-align: left;
    position: relative;
    margin: 0;
    box-sizing: border-box;
}

/* Small mobile screens - force full width */
@media (max-width: 480px) {
    .header-actions .btn,
    .header-actions a.btn {
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
    }
}

/* Desktop view - make button inline */
@media (min-width: 769px) {
    .header-actions a {
        width: auto !important;
        display: inline-block !important;
    }
    
    .btn {
        display: inline-block !important;
        width: auto !important;
        min-width: auto;
        max-width: none;
        text-align: center;
        padding: 12px 32px;
    }
}

.btn-primary {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
}

.btn-primary:hover {
    background: #f8fafc;
    border-color: #d1d5db;
}

.notes-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;  /* Reduced from 20px to 10px */
    letter-spacing: -0.02em;
    line-height: 1.1;
    display: block;
    width: 100%;
    clear: both;
}

/* Force title to break into two lines on small screens */
@media (max-width: 434px) {
    .notes-title {
        word-spacing: 100vw;  /* Forces line break between words */
    }
}

.notes-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 400;
    line-height: 1.2;  /* Reduced from 1.5 to 1.2 */
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
    clear: both;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    gap: 32px;
    margin-bottom: 80px;
}

.article-card {
    background: #f8fafc;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    transition: transform 0.2s ease;
}

.article-card:hover {
    transform: translateX(4px);
}

.article-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.article-author, .article-date {
    display: inline-block;
    padding: 4px 10px;
    background: #f8fafc;
    color: #666;
    font-size: 13px;
    border-radius: 4px;
    font-weight: 400;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-author {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.article-author:hover {
    background: #e8f0fe;
    color: #1a1a1a;
}

.article-author.active-filter {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.article-excerpt {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 400;
}


.read-more {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.article-link:hover .read-more {
    gap: 8px;
}

/* Footer */
.notes-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
    margin-top: 80px;
}

.notes-footer p {
    color: #999;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 400;
}

.footer-tagline {
    font-style: italic;
    color: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
    .notes-container {
        padding: 30px 20px 60px;
    }
    
    .notes-title {
        font-size: 36px;
    }
    
    .notes-subtitle {
        font-size: 16px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-excerpt {
        font-size: 15px;
    }
    
    .articles-grid {
        gap: 28px;
    }
    
    .article-card {
        padding-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .notes-title {
        font-size: 32px;
    }
    
    .article-title {
        font-size: 20px;
    }
}

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

.article-card {
    animation: fadeIn 0.5s ease backwards;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.15s; }
.article-card:nth-child(3) { animation-delay: 0.2s; }
.article-card:nth-child(4) { animation-delay: 0.25s; }
.article-card:nth-child(5) { animation-delay: 0.3s; }
.article-card:nth-child(6) { animation-delay: 0.35s; }

/* Page transition animation */
body {
    animation: pageLoad 0.3s ease-out;
}

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