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

/* Article Styles */
.article-content {
    padding: 1rem 0;
}

.article-cover {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.article-cover-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.article-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin: 0 auto;
    padding: 0 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-image {
    margin: 2rem 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-image.wide-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

.image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 2rem 0 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.article-body h2 { font-size: 1.8rem; }
.article-body h3 { font-size: 1.5rem; }
.article-body h4 { font-size: 1.3rem; }

.article-ul,
.article-ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-ul li,
.article-ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-ul {
    list-style-type: disc;
}

.article-ol {
    list-style-type: decimal;
}

.article-body a {
    color: #3b82f6;
    text-decoration: none;
}

.article-body a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
}

.hero {
    width: 100vw;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
    border-radius: 0 0 24px 24px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-name {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.24);
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0,0,0,0.16);
}

@media (max-width: 600px) {
    .hero {
        min-height: 180px;
    }
    .hero-name {
        font-size: 1.5rem;
    }
    .hero-tagline {
        font-size: 1rem;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    position: relative;
}

.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-bottom: 1.5rem;
    z-index: 2;
    position: relative;
}

.author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.author-avatar-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    vertical-align: middle;
    margin: 0 4px;
    object-fit: cover;
    display: inline-block;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-item span {
    font-size: 2rem;
    font-weight: bold;
    color: #2563eb;
}

.stat-item label {
    display: block;
    margin-top: 0.5rem;
    color: #64748b;
}

.posts-list {
    margin-top: 1rem;
}

.post-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.repost-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.repost-icon {
    opacity: 0.7;
}

.repost-text {
    font-weight: 500;
}

.post-card h3 {
    margin-bottom: 0.5rem;
    color: #1e40af;
}

.post-card p {
    color: #475569;
    margin: 0.75rem 0;
    line-height: 1.6;
}

.post-content {
    padding: 0.5rem 0;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 0.9rem;
}

.posted-via {
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.97em;
}

.app-logo {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    object-fit: cover;
    margin: 0 0.25em;
    vertical-align: middle;
}


.post-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-media-container {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-media {
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

.audio-wrapper {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
}

.audio-info {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #64748b;
}

.audio-info > div {
    margin: 0.25rem 0;
}

.post-card .metadata {
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}
