/**
 * Category Stats Widget CSS
 * สไตล์สำหรับ Category Stats Widget
 */

.sky-category-stats-wrapper {
    width: 100%;
    padding: 0;
}

.sky-category-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.sky-category-card {
    position: relative;
    display: block;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sky-category-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.8) 0%, rgba(24, 24, 27, 0.9) 100%);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sky-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(222, 0, 125, 0.2), rgba(240, 90, 40, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sky-category-card:hover::before {
    opacity: 1;
}

.sky-category-card:hover .sky-category-card-inner {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(240, 90, 40, 0.15);
    border-color: rgba(240, 90, 40, 0.2);
}

.sky-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sky-category-card:hover .sky-category-icon {
    transform: scale(1.1) rotate(5deg);
}

.sky-category-icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sky-category-icon-svg svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    fill: none;
}

.sky-category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sky-category-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sky-category-description {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sky-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    align-self: flex-start;
    align-items: center;
    background: linear-gradient(135deg, rgba(222, 0, 125, 0.15) 0%, rgba(240, 90, 40, 0.15) 100%);
    border: 1px solid rgba(240, 90, 40, 0.3);
    color: #f05a28;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s 
ease;
}

.sky-category-badge span {
    font-size: 13px;
    font-weight: 500;
    color: #f05a28;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Badge Text Style */
.sky-category-badge-text {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #F05A28 0%, #E85A1C 100%);
    box-shadow: 0 4px 12px rgba(240, 90, 40, 0.3);
}

.sky-badge-label {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Rating Style */
.sky-category-rating {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sky-rating-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
}

.sky-rating-value {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .sky-category-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
    .sky-category-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .sky-category-card-inner {
        padding: 20px;
    }
    
    .sky-category-title {
        font-size: 18px;
    }
    
    .sky-category-description {
        font-size: 13px;
    }
}

/* Light Mode Support */
.light .sky-category-card-inner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.95) 100%);
    border-color: rgba(0, 0, 0, 0.1);
}

.light .sky-category-title {
    color: #0a0a0a;
}

.light .sky-category-description {
    color: rgba(0, 0, 0, 0.6);
}
