/* Reading List Shared Styles */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    max-width: 750px;
    margin: 0 auto;
    padding: 2rem;
    color: #333;
    background: #fff;
    font-size: 18px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: #1a1a1a;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: #1a1a1a;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.meta a {
    color: #0066cc;
    text-decoration: none;
}

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

article {
    font-size: 1.125rem;
    line-height: 1.8;
}

article p {
    margin-bottom: 1.4rem;
}

article h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
}

article h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

article img {
    max-width: 100%;
    height: auto;
}

article blockquote {
    border-left: 4px solid #ccc;
    margin-left: 0;
    padding-left: 1.2rem;
    color: #555;
    font-style: italic;
}

/* Navigation Menu */
.nav-menu {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu a {
    color: #0066cc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-menu a:hover {
    background: #e8f0fe;
    text-decoration: none;
}

.nav-menu .primary {
    font-weight: 600;
}

.nav-menu .secondary {
    color: #495057;
}

.nav-menu .danger {
    color: #dc3545;
}

.nav-menu .danger:hover {
    background: #f8d7da;
}

.nav-menu .success {
    color: #198754;
}

.nav-menu .success:hover {
    background: #d1e7dd;
}

.nav-info {
    margin-left: auto;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Bottom Actions */
.actions-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 2px solid #eee;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.actions-bottom a {
    color: #0066cc;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.2s;
}

.actions-bottom a:hover {
    background: #f8f9fa;
}

.actions-bottom .primary {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.actions-bottom .primary:hover {
    background: #0056b3;
}

.actions-bottom .danger {
    color: #dc3545;
    border-color: #dc3545;
}

.actions-bottom .danger:hover {
    background: #dc3545;
    color: white;
}

.actions-bottom .success {
    color: #198754;
    border-color: #198754;
}

.actions-bottom .success:hover {
    background: #198754;
    color: white;
}

/* Summary Box - Collapsible */
.summary-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.summary-header {
    background: #e9ecef;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.2s;
}

.summary-header:hover {
    background: #dee2e6;
}

.summary-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

.summary-toggle {
    font-size: 1.2rem;
    color: #6c757d;
    transition: transform 0.3s;
}

.summary-toggle.expanded {
    transform: rotate(180deg);
}

.summary-content {
    padding: 1rem;
    display: none;
    border-top: 1px solid #e9ecef;
}

.summary-content.expanded {
    display: block;
}

.summary-content p {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

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

.summary-content ul {
    margin: 0;
    padding-left: 1.5rem;
}

.summary-content li {
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Mobile optimizations */
@media (max-width: 600px) {
    body {
        padding: 1rem;
        font-size: 16px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        padding: 0.75rem;
    }
    
    .nav-menu a {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .summary-header {
        padding: 0.6rem 0.75rem;
    }
    
    .summary-content {
        padding: 0.75rem;
    }
}
