/**
 * Klasičan Gejming - Sidebar Styles
 * Stilovi za sidebar i widget-e
 */

/* ===== Sidebar ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-widget {
    background: linear-gradient(135deg, rgba(15, 12, 25, 0.9) 0%, rgba(8, 8, 15, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.sidebar-widget h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-widget h3 i {
    color: var(--accent-pink);
}

/* ===== Popular Posts Widget ===== */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.popular-post {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.popular-post:first-child {
    padding-top: 0;
}

.popular-post:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post:hover {
    transform: translateX(4px);
}

.post-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff2d75 0%, #ff5c94 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(255, 45, 117, 0.4);
}

.post-info h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.popular-post:hover h4,
.popular-post:hover .post-info h4 {
    color: var(--accent-pink);
}

.post-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta i {
    font-size: 10px;
    color: var(--accent-cyan);
}

/* ===== Categories Widget ===== */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.category-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.category-name {
    flex: 1;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.category-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* ===== Newsletter Widget ===== */
.newsletter-widget {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 45, 117, 0.1), rgba(153, 69, 255, 0.1));
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.newsletter-widget h3 {
    justify-content: center;
    border: none;
    padding-bottom: 0;
}

.newsletter-widget p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.sidebar-newsletter-form {
    display: flex;
    gap: 8px;
}

.sidebar-newsletter-form input {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
}

.sidebar-newsletter-form input::placeholder {
    color: var(--text-muted);
}

.sidebar-newsletter-form button {
    padding: 12px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar-newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 45, 117, 0.4);
}

/* ===== Social Widget ===== */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    transform: translateX(5px);
    color: white;
}

.social-btn.youtube { background: #ff0000; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.tiktok { background: #000; border: 1px solid var(--border-color); }
.social-btn.discord { background: #5865f2; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.twitch { background: #9146ff; }

/* ===== Quick Links Widget ===== */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.quick-link:hover {
    background: var(--bg-hover);
    color: var(--accent-pink);
    transform: translateX(5px);
}

.quick-link i {
    width: 20px;
    text-align: center;
    color: var(--accent-cyan);
}

/* ===== Article Sidebar ===== */
.article-sidebar {
    position: sticky;
    top: 120px;
}

/* Isključi scroll animacije za article sidebar - sprečava pomeranje */
.article-sidebar .sidebar-widget {
    transform: none !important;
    opacity: 1 !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.article-sidebar .sidebar-widget.scroll-hidden,
.article-sidebar .sidebar-widget.scroll-visible {
    transform: none !important;
}

/* ===== Related Posts ===== */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-post {
    display: flex;
    gap: 12px;
}

.related-image {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.related-info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post:hover h4 {
    color: var(--accent-pink);
}

.related-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .sidebar {
        grid-template-columns: 1fr;
    }
}
