/**
 * Front Page (Home) Styles.
 * Converted from: src/pages/Home.tsx
 *
 * @package Muzamna_LMS
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
}

.home-hero__bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-background), transparent, transparent);
    opacity: 0.6;
}

.home-hero__bg-dots {
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: radial-gradient(var(--color-primary-foreground) 1px, transparent 1px);
    background-size: 48px 48px;
}

.home-hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.home-hero__blob--1 {
    top: 0;
    left: 0;
    width: 50vw;
    height: 50vw;
    background: hsla(320, 60%, 55%, 0.06);
    transform: translate(-25%, -25%);
}

.home-hero__blob--2 {
    bottom: 0;
    right: 0;
    width: 40vw;
    height: 40vw;
    background: hsla(0, 0%, 100%, 0.03);
    transform: translate(25%, 25%);
}

.home-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .home-hero__content {
        padding: 6rem 0;
    }
}

.home-hero__text {
    text-align: center;
    margin-bottom: 4rem;
}

.home-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: hsla(0, 0%, 100%, 0.8);
}

.home-hero__title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--color-primary-foreground);
    line-height: 1.15;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .home-hero__title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .home-hero__title {
        font-size: 4.5rem;
    }
}

.home-hero__title--gradient {
    background: linear-gradient(to left, var(--color-accent), var(--color-primary-foreground));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero__subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: hsla(0, 0%, 100%, 0.5);
    line-height: 1.6;
    max-width: 42rem;
    margin: 1.5rem auto 2rem;
}

@media (min-width: 768px) {
    .home-hero__subtitle {
        font-size: 1.25rem;
    }
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.home-hero__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.35);
}

.home-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Hero course cards grid */
.home-hero__cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .home-hero__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .home-hero__cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-hero__card {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.home-hero__card:hover {
    transform: translateY(-12px) scale(1.03);
}

.home-hero__card-thumb {
    position: relative;
    height: 9rem;
    overflow: hidden;
}

.home-hero__card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.home-hero__card:hover .home-hero__card-thumb img {
    transform: scale(1.1);
}

.home-hero__card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(0, 0%, 0%, 0.6), transparent);
}

.home-hero__card-level {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: hsla(0, 0%, 100%, 0.9);
}

.home-hero__card-body {
    padding: 1rem;
    color: var(--color-primary-foreground);
}

.home-hero__card-title {
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-hero__card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: hsla(0, 0%, 100%, 0.4);
}

.home-hero__card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.home-hero__card-meta .icon--star {
    color: var(--color-accent);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.home-stats {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: hsla(0, 0%, 100%, 0.5);
}

.dark .home-stats {
    background: hsla(260, 18%, 14%, 0.5);
}

.home-stats__inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.home-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .home-stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.home-stats__icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-2xl);
    background: hsla(285, 40%, 35%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    transition: transform var(--transition-fast);
}

.home-stats__icon:hover {
    transform: rotate(10deg) scale(1.1);
}

.home-stats__value {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--color-foreground);
}

@media (min-width: 768px) {
    .home-stats__value {
        font-size: 2.25rem;
    }
}

.home-stats__label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-muted-foreground);
}

/* ==========================================================================
   Learning Path Section
   ========================================================================== */

.home-path {
    position: relative;
    overflow: hidden;
}

.home-path__inner {
    position: relative;
    z-index: 1;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .home-path__inner {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.home-path__grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .home-path__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .home-path__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-path__step {
    border-radius: var(--radius-3xl);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    backdrop-filter: blur(4px);
    transition: transform var(--transition-fast);
    height: 100%;
}

.home-path__step:hover {
    transform: translateY(-10px);
}

.home-path__step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.home-path__step-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-2xl);
    background: var(--color-card);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--color-primary);
    transition: transform var(--transition-fast);
}

.home-path__step-icon:hover {
    transform: rotate(-12deg) scale(1.1);
}

.home-path__step-number {
    font-size: 2.25rem;
    font-weight: 900;
    color: hsla(285, 40%, 35%, 0.3);
}

.home-path__step-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-foreground);
    margin-bottom: 0.5rem;
}

.home-path__step-desc {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    line-height: 1.6;
}

/* Step background gradient variants */
.home-path__step--1 { background: linear-gradient(to bottom, hsla(285, 40%, 35%, 0.1), hsla(285, 40%, 35%, 0.02)); }
.home-path__step--2 { background: linear-gradient(to bottom, hsla(320, 60%, 55%, 0.1), hsla(320, 60%, 55%, 0.02)); }
.home-path__step--3 { background: linear-gradient(to bottom, hsla(285, 40%, 35%, 0.1), hsla(320, 60%, 55%, 0.02)); }
.home-path__step--4 { background: linear-gradient(to bottom, hsla(320, 60%, 55%, 0.1), hsla(285, 40%, 35%, 0.02)); }

/* ==========================================================================
   Features Section
   ========================================================================== */

.home-features {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: hsla(0, 0%, 100%, 0.5);
}

.dark .home-features {
    background: hsla(260, 18%, 14%, 0.5);
}

.home-features__inner {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .home-features__inner {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.home-features__card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.home-features__card:hover {
    box-shadow: var(--shadow-xl);
    border-color: hsla(285, 40%, 35%, 0.2);
    transform: translateY(-8px);
}

.home-features__icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-2xl);
    background: hsla(285, 40%, 35%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: background var(--transition-fast);
}

.home-features__card:hover .home-features__icon {
    background: hsla(285, 40%, 35%, 0.2);
}

.home-features__title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-foreground);
    margin-bottom: 0.5rem;
}

.home-features__desc {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    line-height: 1.6;
}

/* ==========================================================================
   Section Headers (shared)
   ========================================================================== */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header__title {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--color-foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-header__title {
        font-size: 2.25rem;
    }
}

.section-header__subtitle {
    font-size: 1.125rem;
    color: var(--color-muted-foreground);
    max-width: 36rem;
    margin-inline: auto;
}

/* ==========================================================================
   Popular Courses Section
   ========================================================================== */

.home-courses {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: hsla(0, 0%, 100%, 0.5);
}

.dark .home-courses {
    background: hsla(260, 18%, 14%, 0.5);
}

.home-courses__inner {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .home-courses__inner {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.home-courses__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.home-courses__link {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.home-courses__link:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .home-courses__link {
        display: flex;
    }
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.home-testimonials__inner {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .home-testimonials__inner {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.home-testimonials__card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    transition: box-shadow var(--transition-normal);
}

.home-testimonials__card:hover {
    box-shadow: var(--shadow-lg);
}

.home-testimonials__stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.home-testimonials__text {
    font-family: var(--font-body);
    color: var(--color-foreground);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.home-testimonials__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-testimonials__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: hsla(285, 40%, 35%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.home-testimonials__name {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-foreground);
}

.home-testimonials__role {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.home-faq {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: hsla(0, 0%, 100%, 0.5);
}

.dark .home-faq {
    background: hsla(260, 18%, 14%, 0.5);
}

.home-faq__inner {
    max-width: 56rem;
    margin-inline: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .home-faq__inner {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.home-faq__item {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform var(--transition-fast);
}

.home-faq__item:hover {
    transform: scale(1.01);
}

.home-faq__question {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-foreground);
    margin-bottom: 0.5rem;
}

.home-faq__answer {
    font-family: var(--font-body);
    color: var(--color-muted-foreground);
    line-height: 1.6;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.home-cta {
    margin: 2.5rem 1rem;
}

@media (min-width: 768px) {
    .home-cta {
        margin: 2.5rem 2rem;
    }
}

.home-cta__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    background: linear-gradient(to bottom left, var(--color-primary), hsla(285, 40%, 35%, 0.8));
    border-radius: var(--radius-3xl);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .home-cta__inner {
        padding: 4rem;
    }
}

.home-cta__blob {
    position: absolute;
    border-radius: 50%;
    background: hsla(0, 0%, 100%, 0.05);
}

.home-cta__blob--1 {
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    transform: translate(50%, -50%);
}

.home-cta__blob--2 {
    bottom: 0;
    left: 0;
    width: 12rem;
    height: 12rem;
    transform: translate(-50%, 50%);
}

.home-cta__content {
    position: relative;
    z-index: 1;
}

.home-cta__icon {
    color: hsla(0, 0%, 100%, 0.8);
    margin-bottom: 1rem;
}

.home-cta__title {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--color-primary-foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .home-cta__title {
        font-size: 2.25rem;
    }
}

.home-cta__text {
    color: hsla(0, 0%, 100%, 0.8);
    font-size: 1.125rem;
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* ==========================================================================
   Levels Section
   ========================================================================== */

.home-levels__inner {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .home-levels__inner {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.home-levels__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .home-levels__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.home-levels__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.home-levels__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: var(--radius-2xl);
    border: 1px solid;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.home-levels__item:hover {
    transform: translateX(-8px);
}

.home-levels__item-start {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-levels__item-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.home-levels__item--emerald {
    background: hsla(142, 76%, 36%, 0.1);
    color: hsl(142, 76%, 36%);
    border-color: hsla(142, 76%, 36%, 0.2);
}

.dark .home-levels__item--emerald {
    color: hsl(142, 76%, 56%);
}

.home-levels__item--amber {
    background: hsla(38, 92%, 50%, 0.1);
    color: hsl(38, 92%, 40%);
    border-color: hsla(38, 92%, 50%, 0.2);
}

.dark .home-levels__item--amber {
    color: hsl(38, 92%, 56%);
}

.home-levels__item--rose {
    background: hsla(350, 89%, 60%, 0.1);
    color: hsl(350, 89%, 50%);
    border-color: hsla(350, 89%, 60%, 0.2);
}

.dark .home-levels__item--rose {
    color: hsl(350, 89%, 65%);
}

/* Advantages sub-grid */
.home-levels__advantages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.home-levels__adv {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: 1.25rem;
}

.home-levels__adv--wide {
    grid-column: span 2;
}

.home-levels__adv-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-xl);
    background: hsla(285, 40%, 35%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.home-levels__adv-title {
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 0.25rem;
}

.home-levels__adv-desc {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}
