/**
 * PoshArticles™ Styles
 * Clean, LinkedIn/Medium-inspired article layout
 */

.article-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

@media (max-width: 1024px) {
    .article-page {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.article-container {
    max-width: 100%;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
}

.article-meta-top {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.article-category {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.article-location {
    color: #666;
}

.article-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.article-summary {
    font-size: 20px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 30px 0;
}

.article-author-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.author-details {
    display: flex;
    gap: 15px;
    align-items: center;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B1538 0%, #6B0F2A 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.author-name {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.article-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 8px;
}

.article-actions-top {
    display: flex;
    gap: 10px;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-icon:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.btn-icon.liked {
    background: #ffe0e6;
    border-color: #ff4d6d;
    color: #ff4d6d;
}

/* Cover Image */
.article-cover {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content {
    font-size: 19px;
    line-height: 1.85;
    color: #2d3748;
    margin: 40px 0;
    max-width: 100%;
}

.article-content h2 {
    font-size: 34px;
    font-weight: 700;
    margin: 48px 0 24px 0;
    color: #1a202c;
    line-height: 1.3;
    padding-top: 16px;
    border-top: 2px solid #e2e8f0;
}

.article-content h3 {
    font-size: 26px;
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: #2d3748;
    line-height: 1.4;
}

.article-content h4 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    color: #4a5568;
}

.article-content p {
    margin: 24px 0;
    line-height: 1.85;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin: 10px 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-content blockquote {
    border-left: 4px solid #8B1538;
    padding: 20px 24px;
    margin: 32px 0;
    font-style: italic;
    color: #4a5568;
    background: #f7fafc;
    border-radius: 0 8px 8px 0;
}

.article-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.article-content pre {
    background: #1e1e1e;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #fff;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.article-tags .tag {
    background: #f0f0f0;
    color: #8B1538;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.article-tags .tag:hover {
    background: #8B1538;
    color: #fff;
}

/* CTA Block */
.article-cta-block {
    background: linear-gradient(135deg, #8B1538 0%, #6B0F2A 100%);
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
}

.cta-business-card {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.cta-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
}

.cta-info h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #fff;
}

.cta-rating {
    font-size: 16px;
    color: #ffd700;
}

.cta-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.btn-cta {
    display: inline-block;
    padding: 14px 28px;
    background: #fff;
    color: #8B1538;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Reactions Bar */
.article-reactions {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 40px 0;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    font-weight: 500;
}

.reaction-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.reaction-btn .icon {
    font-size: 20px;
}

/* Comments Section */
.article-comments {
    margin: 40px 0;
}

.article-comments h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.comment-form {
    margin: 20px 0 30px 0;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #8B1538;
}

.comment-login-prompt {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.comment-login-prompt a {
    color: #8B1538;
    font-weight: 600;
}

.comments-list {
    margin-top: 30px;
}

.comment {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #8B1538;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.comment-header strong {
    color: #1a1a1a;
}

.comment-date {
    font-size: 13px;
    color: #999;
}

.comment-content {
    color: #333;
    line-height: 1.6;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-section {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.sidebar-section h3 {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.article-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-card-mini {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    padding: 10px;
    border-radius: 8px;
}

.article-card-mini:hover {
    background: #f5f5f5;
}

.article-card-mini img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.article-card-mini .card-content {
    flex: 1;
}

.article-card-mini h4 {
    font-size: 15px;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-mini .card-meta {
    font-size: 13px;
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-page {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 20px;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .article-summary {
        font-size: 18px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .article-author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cta-business-card {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        margin-left: 0;
        flex-direction: column;
        width: 100%;
    }
    
    .article-reactions {
        flex-wrap: wrap;
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary {
    background: #8B1538;
    color: #fff;
}

.btn-primary:hover {
    background: #6B0F2A;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #fff;
    color: #8B1538;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.9);
}

