/**
 * Help Section - Modern Design
 * Premium cards with interactive hover effects
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ========================================
   Help Section
   ======================================== */

.help-section {
    padding: 6rem 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(240, 249, 255, 0.4) 50%,
        rgba(255, 255, 255, 1) 100%
    );
    position: relative;
    overflow: hidden;
}

/* Section Header Centered */
.section-header.centered {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* ========================================
   Help Grid
   ======================================== */

.help-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

/* ========================================
   Help Cards (Clickable)
   ======================================== */

.help-card-modern {
    position: relative;
    display: block;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(14, 165, 233, 0.04);
    overflow: hidden;
    animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    user-select: none;
}

/* Staggered animation delays */
.help-card-modern:nth-child(1) { animation-delay: 0.1s; }
.help-card-modern:nth-child(2) { animation-delay: 0.2s; }
.help-card-modern:nth-child(3) { animation-delay: 0.3s; }
.help-card-modern:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Gradient border on hover */
.help-card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.4), rgba(6, 186, 199, 0.4));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.help-card-modern:hover::before {
    opacity: 1;
}

.help-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(14, 165, 233, 0.15),
        0 0 0 1px rgba(14, 165, 233, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.help-card-modern:active {
    transform: translateY(-8px) scale(1.01);
    transition-duration: 0.1s;
}

.help-card-modern:focus {
    outline: none;
    box-shadow:
        0 20px 40px rgba(14, 165, 233, 0.2),
        0 0 0 3px rgba(14, 165, 233, 0.4);
}

.help-card-modern:focus:not(:focus-visible) {
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(14, 165, 233, 0.04);
}

/* ========================================
   Card Icon
   ======================================== */

.help-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.75rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 186, 199, 0.08));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0EA5E9;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.help-card-icon svg {
    width: 48px;
    height: 48px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-card-modern:hover .help-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(6, 186, 199, 0.12));
    border-color: rgba(14, 165, 233, 0.25);
}

.help-card-modern:hover .help-card-icon svg {
    transform: scale(1.1);
}

/* ========================================
   Card Typography
   ======================================== */

.help-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.help-card-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #64748B;
    margin: 0 0 1.75rem;
    transition: color 0.3s ease;
}

/* ========================================
   Card Link
   ======================================== */

.help-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0EA5E9;
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-card-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0EA5E9, #06B6D4);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-card-modern:hover .help-card-link {
    transform: translateX(4px);
}

.help-card-modern:hover .help-card-link::after {
    width: calc(100% - 1.5rem);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1200px) {
    .help-grid {
        gap: 1.75rem;
    }
}

@media (max-width: 1024px) {
    .help-section {
        padding: 5rem 0;
    }

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

    .help-card-icon {
        width: 72px;
        height: 72px;
    }

    .help-card-icon svg {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    .help-section {
        padding: 4rem 0;
    }

    .section-header.centered {
        margin-bottom: 3rem;
    }

    .help-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .help-card-modern {
        padding: 2rem 1.75rem;
    }

    .help-card-modern:hover {
        transform: translateY(-6px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .help-card-modern {
        padding: 1.75rem 1.5rem;
        border-radius: 20px;
    }

    .help-card-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }

    .help-card-icon svg {
        width: 40px;
        height: 40px;
    }

    .help-card-title {
        font-size: 1.25rem;
    }

    .help-card-text {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .help-card-modern,
    .help-card-icon,
    .help-card-icon svg,
    .help-card-link,
    .section-header.centered {
        animation: none;
        transition: none;
    }
}
