/* ==========================================================================
   Sadias Kitchen — Reel Card / Reels Grid
   Components:
     <x-frontend.reel-card>
   Sections:
     #reels_home (home page), #reels-page (reels listing)
   ========================================================================== */

/* ------------------------------- GRID ----------------------------------- */

.sk-reels-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.sk-reels-grid > * {
    min-width: 0;
}

@media (min-width: 576px) {
    .sk-reels-grid {
        gap: 14px;
    }
}

@media (min-width: 768px) {
    .sk-reels-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .sk-reels-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 1200px) {
    .sk-reels-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 20px;
    }
}

/* ------------------------------- CARD ----------------------------------- */

.sk-reel-card {
    position: relative;
    display: block;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition, all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}

.sk-reel-card:hover,
.sk-reel-card:focus-visible {
    color: inherit;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(20, 20, 20, 0.14);
}

/* ------------------------------ THUMBNAIL -------------------------------- */

.sk-reel-thumb {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #121212;
}

.sk-reel-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sk-reel-card:hover .sk-reel-thumb img {
    transform: scale(1.06);
}

.sk-reel-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 55%,
        rgba(0, 0, 0, 0.35) 100%
    );
    pointer-events: none;
}

/* -------------------------------- PLAY ---------------------------------- */

.sk-reel-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    pointer-events: none;
    transition: var(--transition, all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}

.sk-reel-play iconify-icon {
    display: block;
    width: 24px;
    height: 24px;
}

.sk-reel-card:hover .sk-reel-play {
    background: var(--primary-color, #ec1a23);
    border-color: rgba(255, 255, 255, 0.95);
    transform: translate(-50%, -50%) scale(1.08);
}

/* -------------------------------- TITLE --------------------------------- */

.sk-reel-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    padding: 10px 12px 12px;
    font-family: var(--primary-font, "Poppins", sans-serif);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
    text-align: center;
}

@media (max-width: 480px) {
    .sk-reel-play {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .sk-reel-play iconify-icon {
        width: 20px;
        height: 20px;
    }

    .sk-reel-title {
        padding: 8px 8px 10px;
        font-size: 0.85rem;
    }
}

/* ------------------------------ VIEW ALL -------------------------------- */

.sk-reels-footer {
    margin-top: 30px;
    text-align: center;
}

.sk-reels-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 999px;
    background: var(--primary-color, #ec1a23);
    color: #fff;
    font-family: var(--primary-font, "Poppins", sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition, all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}

.sk-reels-more:hover,
.sk-reels-more:focus-visible {
    background: #c1141c;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(236, 26, 35, 0.3);
}

.sk-reels-more iconify-icon {
    font-size: 20px;
    line-height: 0;
}

/* ------------------------- HOME PAGE SECTION ---------------------------- */

#reels_home {
    padding: 40px 0 60px;
}

@media (max-width: 767px) {
    #reels_home {
        padding: 30px 0 45px;
    }
}
