/* Tags-Sektion Styling */

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--color-text, #495057);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tag-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.tag-link:hover {
    background: linear-gradient(135deg, var(--color-primary, #007bff), #0056b3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    text-decoration: none;
}

.tag-link:hover::before {
    left: 100%;
}

.tag-count {
    background: rgba(0, 0, 0, 0.1);
    color: var(--color-text, #6c757d);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tag-link:hover .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tags-container {
        gap: 0.5rem;
    }
    
    .tag-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .tag-count {
        font-size: 0.75rem;
        padding: 0.15rem 0.4rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .tag-link {
        background: linear-gradient(135deg, #2d3748, #4a5568);
        color: #e2e8f0;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .tag-link:hover {
        background: linear-gradient(135deg, var(--color-primary, #63b3ed), #4299e1);
        color: #1a202c;
    }
    
    .tag-count {
        background: rgba(255, 255, 255, 0.1);
        color: #a0aec0;
    }
    
    .tag-link:hover .tag-count {
        background: rgba(26, 32, 44, 0.3);
        color: #e2e8f0;
    }
}
