/* Categories Page Styles */

/* Loading Skeleton Animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

.dark .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200px 100%;
}

/* Category Card Styles */
.category-card {
    width: 100%;
    max-width: 444px;
    padding: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
}

@media (min-width: 1024px) {
    .category-card {
        padding: 8px;
    }
}

.category-image-container {
    position: relative;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    border-radius: 32px;
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #e5e5e5;
    border-radius: 32px;
}

.dark .category-image {
    background-color: #374151;
}

.category-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    border-radius: 32px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    display: flex;
    align-items: flex-end;
}

.category-name {
    width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 1.875rem;
    color: white;
    line-height: 1.2;
}

/* Category Info Styles */
.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    border-radius: 0 0 32px 32px;
}

.category-title {
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.category-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Loading State */
.loading-skeleton {
    width: 100%;
    max-width: 444px;
    padding: 12px;
}

@media (min-width: 1024px) {
    .loading-skeleton {
        padding: 8px;
    }
}

/* Error State */
.error-container {
    width: 100%;
    padding: 20px;
    text-align: center;
    min-height: calc(100vh - 204px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-icon {
    width: 112px;
    height: 112px;
    background-color: rgba(220, 38, 38, 0.7);
    border-radius: 50%;
    border: 2px solid #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.error-title {
    font-weight: 800;
    font-size: 1.875rem;
    margin: 24px 0;
    text-align: center;
    color: #dc2626;
}

.dark .error-title {
    color: #f87171;
}

.error-message {
    text-align: center;
    margin-bottom: 20px;
    color: #6b7280;
}

.dark .error-message {
    color: #9ca3af;
}

.retry-button {
    padding: 12px 24px;
    background-color: #dc2626;
    color: white;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.retry-button:hover {
    background-color: #b91c1c;
}

.retry-button:active {
    transform: scale(0.95);
}

.retry-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Empty State */
.empty-container {
    width: 100%;
    padding: 20px;
    text-align: center;
}

.empty-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.empty-message {
    color: #6b7280;
}

.dark .empty-message {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-name {
        font-size: 1.5rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-icon {
        width: 80px;
        height: 80px;
    }
}

/* Dark Mode Support */
.dark .category-image {
    background-color: #374151;
}

.dark .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200px 100%;
} 