/**
 * Quick Start Paths Section - GlobalStudyLab
 * Modern, interactive path cards with animations
 */

/* =================================================================
   SECTION CONTAINER
   ================================================================= */

.gsl-quick-paths {
    position: relative;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
}

.gsl-quick-paths::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.gsl-quick-paths__container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    z-index: 1;
}

/* =================================================================
   SECTION HEADER
   ================================================================= */

.gsl-quick-paths__header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.gsl-quick-paths__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gsl-quick-paths__subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =================================================================
   PATH CARDS GRID
   ================================================================= */

.gsl-quick-paths__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

/* =================================================================
   PATH CARD BASE
   ================================================================= */

.gsl-path-card {
    position: relative;
    height: 350px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out backwards;
}

.gsl-path-card:nth-child(1) { animation-delay: 0.1s; }
.gsl-path-card:nth-child(2) { animation-delay: 0.2s; }
.gsl-path-card:nth-child(3) { animation-delay: 0.3s; }

/* Card Inner Wrapper */
.gsl-path-card__inner {
    position: relative;
    height: 100%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

/* Card Gradient Backgrounds */
.gsl-path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    opacity: 0.05;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gsl-path-card--learn::before {
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
}

.gsl-path-card--teach::before {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.gsl-path-card--create::before {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

/* =================================================================
   HOVER EFFECTS
   ================================================================= */

.gsl-path-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 40px -12px rgba(0, 0, 0, 0.1),
        0 10px 20px -8px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.gsl-path-card:hover::before {
    opacity: 0.08;
}

/* Focus State for Accessibility */
.gsl-path-card:focus-within {
    outline: 3px solid #0EA5E9;
    outline-offset: 2px;
}

/* =================================================================
   PATH ICON
   ================================================================= */

.gsl-path-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

.gsl-path-icon__svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.gsl-path-card:hover .gsl-path-icon__svg {
    transform: scale(1.1);
}

/* Icon Colors */
.gsl-path-icon--learn {
    color: #0EA5E9;
}

.gsl-path-icon--teach {
    color: #10B981;
}

.gsl-path-icon--create {
    color: #8B5CF6;
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse Animation on Hover */
.gsl-path-card:hover .gsl-path-icon {
    animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* =================================================================
   CARD CONTENT
   ================================================================= */

.gsl-path-card__content {
    flex: 1;
}

.gsl-path-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.gsl-path-card__emoji {
    font-size: 1.75rem;
    line-height: 1;
}

.gsl-path-card__description {
    font-size: 0.938rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px;
}

/* =================================================================
   FEATURE LIST
   ================================================================= */

.gsl-path-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gsl-path-card__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #475569;
    padding: 6px 0;
    transition: transform 0.2s ease;
}

.gsl-path-card:hover .gsl-path-card__feature {
    transform: translateX(4px);
}

.gsl-path-card__feature:nth-child(1) { transition-delay: 0.05s; }
.gsl-path-card__feature:nth-child(2) { transition-delay: 0.1s; }
.gsl-path-card__feature:nth-child(3) { transition-delay: 0.15s; }

.gsl-path-card__check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.gsl-path-card--learn .gsl-path-card__check {
    color: #0EA5E9;
}

.gsl-path-card--teach .gsl-path-card__check {
    color: #10B981;
}

.gsl-path-card--create .gsl-path-card__check {
    color: #8B5CF6;
}

/* =================================================================
   CARD FOOTER & CTA BUTTON
   ================================================================= */

.gsl-path-card__footer {
    margin-top: auto;
    padding-top: 20px;
}

.gsl-path-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gsl-path-card__cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gsl-path-card__cta:hover::before {
    opacity: 1;
}

/* Learn CTA - Blue */
.gsl-path-card__cta--learn {
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.gsl-path-card__cta--learn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

/* Teach CTA - Green */
.gsl-path-card__cta--teach {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.gsl-path-card__cta--teach:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Create CTA - Purple */
.gsl-path-card__cta--create {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.gsl-path-card__cta--create:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* CTA Arrow Icon */
.gsl-path-card__arrow {
    transition: transform 0.3s ease;
}

.gsl-path-card__cta:hover .gsl-path-card__arrow {
    transform: translateX(4px);
}

/* Focus State for CTA */
.gsl-path-card__cta:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* =================================================================
   STATS BAR
   ================================================================= */

.gsl-quick-paths__stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.gsl-quick-paths__stat {
    text-align: center;
}

.gsl-quick-paths__stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #0EA5E9;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gsl-quick-paths__stat-label {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* =================================================================
   ANIMATIONS
   ================================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

/* Tablet (2-column) */
@media (max-width: 1024px) {
    .gsl-quick-paths {
        padding: 60px 20px;
    }

    .gsl-quick-paths__header {
        margin-bottom: 40px;
    }

    .gsl-quick-paths__title {
        font-size: 2rem;
    }

    .gsl-quick-paths__subtitle {
        font-size: 1rem;
    }

    .gsl-quick-paths__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .gsl-path-card {
        height: auto;
        min-height: 350px;
    }

    .gsl-path-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

    .gsl-quick-paths__stats {
        gap: 40px;
        padding: 30px;
    }

    .gsl-quick-paths__stat-value {
        font-size: 1.75rem;
    }
}

/* Mobile (stacked) */
@media (max-width: 768px) {
    .gsl-quick-paths {
        padding: 40px 16px;
    }

    .gsl-quick-paths__header {
        margin-bottom: 32px;
    }

    .gsl-quick-paths__title {
        font-size: 1.75rem;
    }

    .gsl-quick-paths__subtitle {
        font-size: 0.938rem;
    }

    .gsl-quick-paths__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .gsl-path-card {
        height: auto;
        min-height: unset;
    }

    .gsl-path-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
    }

    .gsl-path-card__inner {
        padding: 24px;
    }

    .gsl-path-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .gsl-path-card__title {
        font-size: 1.25rem;
    }

    .gsl-path-card__description {
        font-size: 0.875rem;
    }

    .gsl-path-card__feature {
        font-size: 0.813rem;
    }

    .gsl-path-card__cta {
        padding: 12px 24px;
        font-size: 0.938rem;
        width: 100%;
        justify-content: center;
    }

    .gsl-quick-paths__stats {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }

    .gsl-quick-paths__stat-value {
        font-size: 1.5rem;
    }

    .gsl-quick-paths__stat-label {
        font-size: 0.813rem;
    }

    /* Reduce animations on mobile for performance */
    .gsl-path-card:hover {
        transform: translateY(-5px);
    }

    .gsl-path-icon {
        animation: none;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .gsl-quick-paths__title {
        font-size: 1.5rem;
    }

    .gsl-path-card__inner {
        padding: 20px;
    }

    .gsl-quick-paths__stats {
        padding: 20px;
    }
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gsl-path-card {
        border-width: 2px;
    }

    .gsl-path-card__cta {
        border: 2px solid transparent;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .gsl-path-card,
    .gsl-path-card__cta,
    .gsl-path-card__feature,
    .gsl-path-icon__svg,
    .gsl-path-card__arrow {
        transition: none;
    }

    .gsl-path-icon {
        animation: none;
    }

    .gsl-quick-paths__header,
    .gsl-path-card,
    .gsl-quick-paths__stats {
        animation: none;
    }
}

/* Print styles */
@media print {
    .gsl-quick-paths {
        background: white;
        padding: 20px;
    }

    .gsl-path-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }

    .gsl-path-card__cta {
        border: 1px solid #000;
    }
}
