/**
 * Keravada Mid Blog Slider - Styles
 * Related posts carousel only
 */

/* Hide on desktop */
@media screen and (min-width: 769px) {
    .kae-related-carousel {
        display: none !important;
    }
}

/* ==========================================
   RELATED POSTS CAROUSEL
   ========================================== */

.kae-related-carousel {
    margin: 30px -20px;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.03), rgba(0,0,0,0.06), rgba(0,0,0,0.03));
}

.kae-related-header {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    padding: 0 20px 12px;
}

.kae-related-track-wrapper {
    overflow: hidden;
    padding: 0 20px;
}

.kae-related-track {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease-out;
    touch-action: pan-x;
}

.kae-related-card {
    flex: 0 0 calc(45% - 6px);
    min-width: calc(45% - 6px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kae-related-card:active {
    transform: scale(0.98);
}

.kae-related-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.kae-related-card-content {
    padding: 10px 12px 12px;
}

.kae-related-card-category {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #888;
    margin-bottom: 4px;
}

.kae-related-card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading state */
.kae-related-loading {
    display: flex;
    justify-content: center;
    padding: 30px;
}

.kae-related-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-top-color: #666;
    border-radius: 50%;
    animation: kae-spin 0.8s linear infinite;
}

@keyframes kae-spin {
    to { transform: rotate(360deg); }
}
