/**
 * Klasičan Gejming - Article Page Styles
 * Stilovi za stranicu pojedinačne vesti
 */

/* ===== Article Page ===== */
.article-page {
    padding-top: 40px;
}

/* ===== Article Header ===== */
.article-header {
    margin-bottom: 30px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--accent-pink);
}

.article-header .category-badge {
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 900px;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
}

.meta-items {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.meta-items span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== Featured Image ===== */
.article-featured-image {
    margin-bottom: 40px;
}

.article-featured-image figure {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* ===== Article Grid ===== */
.article-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* ===== Article Content ===== */
.article-content {
    max-width: 800px;
}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.article-body h3 {
    font-size: 1.25rem;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: var(--bg-card);
    border-left: 4px solid var(--accent-pink);
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--text-primary);
}

.article-body img {
    border-radius: var(--radius-md);
    margin: 30px 0;
}

.article-body a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.article-body a:hover {
    color: var(--accent-pink);
}

/* ===== Article Tags ===== */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tags-label {
    color: var(--text-muted);
    font-size: 14px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: var(--bg-hover);
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

/* ===== Article Rating ===== */
.article-rating {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin: 30px 0;
}

.article-rating h4 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.star-btn:hover,
.star-btn.active {
    color: var(--accent-yellow);
    transform: scale(1.1);
}

.rating-info {
    font-size: 14px;
    color: var(--text-muted);
}

.rating-avg {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-right: 4px;
}

.rating-message {
    margin-top: 10px;
    font-size: 13px;
    color: var(--accent-green);
}

/* ===== Article Share ===== */
.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.share-label {
    color: var(--text-muted);
    font-size: 14px;
    white-space: nowrap;
}

.share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 16px;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); }

/* ===== Article Gallery ===== */
.article-gallery {
    margin: 40px 0;
}

.article-gallery h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .meta-items {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== Table of Contents ===== */
.article-toc {
    background: linear-gradient(135deg, rgba(255, 45, 117, 0.05), rgba(0, 212, 255, 0.05));
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-pink);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.article-toc h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.article-toc h4 i {
    color: var(--accent-pink);
}

.article-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-toc li {
    position: relative;
    padding-left: 20px;
}

.article-toc li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

.article-toc li.toc-indent {
    padding-left: 36px;
}

.article-toc li.toc-indent::before {
    left: 16px;
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
}

.article-toc a {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
    transition: color 0.2s, padding-left 0.2s;
}

.article-toc a:hover {
    color: var(--accent-pink);
    padding-left: 4px;
}

/* ===== Reading Progress Bar ===== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s;
}

@media (max-width: 768px) {
    .article-toc {
        padding: 20px;
    }
    
    .article-toc li {
        padding-left: 16px;
    }
    
    .article-toc li.toc-indent {
        padding-left: 28px;
    }
}
