* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 24px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d2d2d;
    letter-spacing: -0.3px;
}

.tagline {
    font-size: 0.9rem;
    color: #666666;
}

/* Install Button */
.install-btn {
    background-color: #2d2d2d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.install-btn:hover {
    background-color: #1a1a1a;
}

/* Main Navigation */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 16px;
}

.nav-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.2s;
}

.nav-btn:hover {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

.nav-btn.active {
    background-color: #2d2d2d;
    color: white;
}

/* Sub Navigation */
.sub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sub-nav-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.2s;
}

.sub-nav-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.sub-nav-btn.active {
    background-color: #e8e8e8;
    border-color: #2d2d2d;
    color: #1a1a1a;
}

/* Posts Container */
.posts-container {
    flex: 1;
}

.loading, .no-posts {
    text-align: center;
    padding: 48px 20px;
    color: #999;
}

/* Post Card */
.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.post-card:hover {
    background-color: #fafafa;
    padding-left: 8px;
}

.post-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.post-meta {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.app-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #eaeaea;
    text-align: center;
    font-size: 0.75rem;
}

.app-footer a {
    color: #666;
    text-decoration: none;
    margin: 0 8px;
}

.app-footer a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

.copyright {
    color: #999;
    margin-top: 16px;
    font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        padding: 12px 12px 32px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .post-title {
        font-size: 0.95rem;
    }
}
/* Install Banner */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2d2d2d;
    color: white;
    padding: 12px 16px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.install-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.install-icon {
    font-size: 1.5rem;
}

.install-text {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}

.install-banner-btn {
    background-color: #ffffff;
    color: #2d2d2d;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.install-banner-btn:hover {
    transform: scale(1.02);
}

.install-banner-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 8px;
}

.install-banner-close:hover {
    color: white;
}

/* iOS Instructions */
.ios-instructions {
    background-color: #f0f0f0;
    padding: 16px 20px;
    border-radius: 16px;
    margin: 24px 0;
    font-size: 0.85rem;
}

.ios-instructions p {
    font-weight: 600;
    margin-bottom: 8px;
}

.ios-instructions ol {
    margin-left: 20px;
    color: #555;
}

.ios-instructions li {
    margin: 6px 0;
}