/* Category section styles */
.category-section {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1000;
    animation: fadeInDown 0.5s ease-out;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.category-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.follow-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.follow-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.follow-button:active {
    transform: scale(0.95);
}

.follow-button.following {
    background-color: rgba(40, 167, 69, 0.8);
    border-color: rgba(40, 167, 69, 0.5);
}

.follow-button.following::before {
    content: '✓';
    margin-right: 4px;
}

/* Category icons */
.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

/* Responsive design */
@media (max-width: 480px) {
    .category-section {
        top: 15px;
        left: 10px;
    }
    
    .category-info {
        padding: 6px 10px;
    }
    
    .category-name {
        font-size: 18px;
        max-width: 200px;
    }
    
    .follow-button {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* Category switching animation */
.category-section.switching {
    animation: categorySwitch 0.3s ease-out;
}

@keyframes categorySwitch {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading state */
.category-section.loading .category-name {
    opacity: 0.7;
}

.category-section.loading .follow-button {
    pointer-events: none;
    opacity: 0.5;
}

/* Error state */
.category-section.error .category-name {
    color: #ff6b6b;
}

.category-section.error .follow-button {
    background-color: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.5);
}

/* Empty state */
.category-section.empty .category-name {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.category-section.empty .follow-button {
    display: none;
} 