@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

.aafe-shuffle-hero-wrapper {
    width: 100%;
    position: relative;
    padding: 50px 30px;
}

.aafe-shuffle-hero-wrapper * {
    box-sizing: border-box;
    transition: all var(--aafe-transition, 300ms) ease;
}

/* Typography Standard */
.aafe-shuffle-hero-wrapper h1,
.aafe-shuffle-hero-wrapper h2,
.aafe-shuffle-hero-wrapper h3,
.aafe-shuffle-hero-wrapper h4,
.aafe-shuffle-hero-wrapper h5,
.aafe-shuffle-hero-wrapper h6 { 
    font-family: 'Sora', sans-serif; 
    margin: 0;
}

.aafe-shuffle-hero-wrapper p,
.aafe-shuffle-hero-wrapper span,
.aafe-shuffle-hero-wrapper li,
.aafe-shuffle-hero-wrapper a { 
    font-family: 'Inter', sans-serif; 
    margin: 0;
}

/* Inner Layout */
.aafe-shuffle-hero__inner {
    display: grid;
    gap: 32px;
    align-items: center;
    max-width: 1152px;
    margin: 0 auto;
}

/* Layout Styles */
.aafe-layout-left-right { grid-template-columns: 1fr 1fr; }
.aafe-layout-right-left { grid-template-columns: 1fr 1fr; }
.aafe-layout-right-left .aafe-shuffle-hero__content { order: 2; }
.aafe-layout-right-left .aafe-shuffle-hero__grid-wrap { order: 1; }

.aafe-layout-top-bottom { grid-template-columns: 1fr; }
.aafe-layout-bottom-top { grid-template-columns: 1fr; }
.aafe-layout-bottom-top .aafe-shuffle-hero__content { order: 2; }
.aafe-layout-bottom-top .aafe-shuffle-hero__grid-wrap { order: 1; }

.aafe-layout-grid-only { grid-template-columns: 1fr; }

/* Left Content */
.aafe-shuffle-hero__content {
    display: flex;
    flex-direction: column;
}

/* Text & Button Alignment */
.aafe-text-align-left .aafe-shuffle-hero__content { text-align: left; align-items: flex-start; }
.aafe-text-align-center .aafe-shuffle-hero__content { text-align: center; align-items: center; }
.aafe-text-align-right .aafe-shuffle-hero__content { text-align: right; align-items: flex-end; }

@media (max-width: 1024px) {
    .aafe-text-align-tablet-left .aafe-shuffle-hero__content { text-align: left; align-items: flex-start; }
    .aafe-text-align-tablet-center .aafe-shuffle-hero__content { text-align: center; align-items: center; }
    .aafe-text-align-tablet-right .aafe-shuffle-hero__content { text-align: right; align-items: flex-end; }
}

@media (max-width: 767px) {
    .aafe-text-align-mobile-left .aafe-shuffle-hero__content { text-align: left; align-items: flex-start; }
    .aafe-text-align-mobile-center .aafe-shuffle-hero__content { text-align: center; align-items: center; }
    .aafe-text-align-mobile-right .aafe-shuffle-hero__content { text-align: right; align-items: flex-end; }
}

.aafe-shuffle-hero__subtitle {
    display: block;
    margin-bottom: 16px;
    color: #4f46e5;
    font-size: 14px;
    font-weight: 500;
}

.aafe-shuffle-hero__title {
    font-size: 60px;
    font-weight: 600;
    color: #111827;
    line-height: 1.1;
}

.aafe-shuffle-hero__desc {
    font-size: 18px;
    color: #6b7280;
    margin: 16px 0 24px 0;
    line-height: 1.5;
}

.aafe-shuffle-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #4f46e5;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
}
.aafe-shuffle-hero__btn:hover {
    background-color: #4338ca;
}
.aafe-shuffle-hero__btn:active {
    transform: scale(0.95);
}

/* Right Grid */
.aafe-shuffle-hero__grid-wrap {
    width: 100%;
}

.aafe-shuffle-hero__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* auto rows let the grid shrink or grow based on items */
    gap: 4px;
    width: 100%;
    position: relative; /* For FLIP bounds */
}

.aafe-shuffle-hero__img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Make items square by default */
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6; /* bg-muted fallback */
    border-radius: 6px;
    will-change: transform;
}

/* FLIP Transition Classes */
.aafe-shuffle-hero__img.is-flipping {
    transition: transform var(--aafe-flip-duration, 1500ms) cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Effects System */
.aafe-shuffle-hero-wrapper[data-hover="lift"]:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.aafe-shuffle-hero-wrapper[data-hover="scale"]:hover { transform: scale(var(--aafe-hover-scale, 1.03)); }
.aafe-shuffle-hero-wrapper[data-hover="glow"]:hover { box-shadow: 0 0 0 3px #4f46e5, 0 8px 30px rgba(79,70,229,0.25); }
.aafe-shuffle-hero-wrapper[data-hover="border-pop"]:hover { border-color: #4f46e5; transform: scale(1.01); }
.aafe-shuffle-hero-wrapper[data-hover="shine"] { overflow: hidden; position: relative; }
.aafe-shuffle-hero-wrapper[data-hover="shine"]::after { content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); }
.aafe-shuffle-hero-wrapper[data-hover="shine"]:hover::after { left: 125%; transition: left 0.6s ease; }

/* Responsive */
@media (max-width: 1024px) {
    .aafe-shuffle-hero__title {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .aafe-shuffle-hero__inner {
        grid-template-columns: 1fr;
    }
    .aafe-shuffle-hero__title {
        font-size: 32px;
    }
    .aafe-shuffle-hero__desc {
        font-size: 16px;
    }
}
