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

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

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e6e6e6;
    z-index: 1000;
    padding: 12px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
}

.search-icon {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.search-icon:hover {
    background-color: #f0f0f0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.write-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.write-btn:hover {
    background: #404040;
}

.notification-icon, .profile-pic {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.notification-icon:hover, .profile-pic:hover {
    background-color: #f0f0f0;
}

.profile-pic img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Main Content */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.article {
    margin-top: 40px;
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
}

.member-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
}

.article-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.article-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 32px;
    font-weight: 400;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.author-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.author-details {
    flex: 1;
}

.author-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #666;
}

.follow-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.engagement-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
}

.engagement-stats > div {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.engagement-stats > div:hover {
    background-color: #f0f0f0;
}

.engagement-stats i {
    font-size: 18px;
    color: #666;
}

/* Hero Image */
.hero-image {
    position: relative;
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.9;
}

/* Article Content */
.article-content {
    margin: 40px 0;
}

.content-section {
    margin-bottom: 32px;
}

.content-section h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.content-section p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: #1a1a1a;
}

/* Upgrade Section */
.upgrade-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
    text-align: center;
}

.upgrade-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.upgrade-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.benefit i {
    color: #28a745;
    font-size: 16px;
    flex-shrink: 0;
}

.benefit span {
    font-size: 14px;
    color: #666;
}

.upgrade-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.upgrade-btn:hover {
    background: #404040;
}

/* Author Section */
.author-section {
    margin: 40px 0;
    padding: 24px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
}

.author-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-large-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-info-detailed h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.author-followers {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.author-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.follow-btn-large {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-btn-large:hover {
    background: #1a1a1a;
    color: white;
}

/* Comments Section */
.comments-section {
    margin: 40px 0;
    padding-top: 32px;
    border-top: 1px solid #e6e6e6;
}

.comments-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.comment-form {
    margin-bottom: 32px;
}

.comment-input {
    width: 100%;
    min-height: 100px;
    padding: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 16px;
}

.comment-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.comment-submit {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.comment-submit:hover {
    background: #404040;
}

.comments-list {
    margin-bottom: 24px;
}

.comment {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a1a;
}

.see-all-responses {
    background: transparent;
    border: 1px solid #e6e6e6;
    color: #666;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.see-all-responses:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* Footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e6e6e6;
    padding: 40px 0;
    margin-top: 80px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }
    
    .main-content {
        padding: 0 16px;
    }
    
    .article-title {
        font-size: 36px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .upgrade-benefits {
        grid-template-columns: 1fr;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
    }
    
    .engagement-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .footer-links {
        justify-content: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .upgrade-section {
        padding: 24px 16px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .write-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
