/* Astra Figma Categories Shortcode Styles */
.astra-figma-categories-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    text-align: center;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.astra-figma-categories-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.astra-figma-categories-no-results p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    color: #666666;
    margin: 0;
}

.astra-figma-categories-grid {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.astra-figma-category-item {
    flex: 1;
    min-width: 140px;
    max-width: 191px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.astra-figma-category-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.astra-figma-category-image-container {
    width: 100%;
    height: 191px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 233, 225, 0.5);
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.astra-figma-category-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.astra-figma-category-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.astra-figma-category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.astra-figma-category-placeholder svg {
    opacity: 0.5;
}

.astra-figma-category-label {
    width: 100%;
    text-align: center;
}

.astra-figma-category-text {
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    text-align: left;
    font-weight: 500;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 5px;
}

.astra-figma-category-count {
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .astra-figma-category-item {
        max-width: 100%;
        min-width: auto;
    }
    
    .astra-figma-category-image-container {
        height: 150px;
    }
}

@media (max-width: 480px) {

    .astra-figma-category-image-container {
        height: 120px;
        margin-bottom: 10px;
    }
    
    .astra-figma-category-text {
        font-size: 14px;
    }
    
    .astra-figma-category-count {
        font-size: 12px;
    }
}

/* Special styling for different category types */
.astra-figma-category-item .astra-figma-category-image-container {
    background: rgba(232, 233, 225);
}

/* Hover effects */
.astra-figma-category-item:hover .astra-figma-category-image-container img{
    transform: scale(1.2);
}

.astra-figma-category-item:hover .astra-figma-category-text {
    text-decoration: underline;
}

/* Loading state */
.astra-figma-categories-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.astra-figma-categories-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: astra-figma-spin 1s linear infinite;
}

@keyframes astra-figma-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
