/**
 * Modern Quick Info Cards
 * Premium glassmorphism design with gradient accents
 */

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

/* ========================================
   Quick Info Section
   ======================================== */

.quick-info {
    padding: 0 0 6rem;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(240, 249, 255, 0.3) 20%,
        rgba(255, 255, 255, 1) 100%
    );
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-top: 140px;
}

/* ========================================
   Modern Info Cards
   Entire cards are clickable links
   ======================================== */

.info-card {
    position: relative;
    display: block;
    background: rgba(255, 255, 255, 0.7);
    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.8);
    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 */
.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card: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 effect on hover */
.info-card::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;
}

.info-card:hover::before {
    opacity: 1;
}

/* Hover state */
.info-card: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.9);
}

/* Active state - subtle press effect */
.info-card:active {
    transform: translateY(-8px) scale(1.01);
    transition-duration: 0.1s;
}

/* Focus state - accessibility */
.info-card:focus {
    outline: none;
    box-shadow:
        0 20px 40px rgba(14, 165, 233, 0.2),
        0 0 0 3px rgba(14, 165, 233, 0.4);
}

.info-card: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);
}

/* Highlight card (donation) - periodic shake animation */
.info-card.highlight {
    animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards,
               periodicShake 6s ease-in-out 3s infinite;
}

@keyframes periodicShake {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    2% {
        transform: translateY(0) rotate(-2deg);
    }
    4% {
        transform: translateY(0) rotate(2deg);
    }
    6% {
        transform: translateY(0) rotate(-2deg);
    }
    8% {
        transform: translateY(0) rotate(2deg);
    }
    10% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Highlight card with gradient background and white text */
.info-card.highlight {
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(14, 165, 233, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.info-card.highlight h3 {
    color: white !important;
}

.info-card.highlight p {
    color: rgba(255, 255, 255, 0.95) !important;
}

.info-card.highlight .card-link {
    color: white !important;
}

.info-card.highlight .info-icon {
    color: white !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* On hover, change to normal colors */
.info-card.highlight:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 20px 40px rgba(14, 165, 233, 0.15),
        0 0 0 1px rgba(14, 165, 233, 0.1);
}

.info-card.highlight:hover h3 {
    color: #0F172A !important;
}

.info-card.highlight:hover p {
    color: #64748B !important;
}

.info-card.highlight:hover .card-link {
    color: #0EA5E9 !important;
}

.info-card.highlight:hover .info-icon {
    color: #0EA5E9 !important;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 186, 199, 0.08)) !important;
    border-color: rgba(14, 165, 233, 0.15) !important;
}

/* ========================================
   Icon Styling
   ======================================== */

.info-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    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);
}

.info-icon svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover .info-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);
}

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

/* Removed special highlight icon styling - now matches other cards */

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

.info-card h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.info-card p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    color: #64748B;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Removed highlight text color - now matches other cards */

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

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

.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);
}

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

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

/* Removed highlight link styling - now matches other cards */

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

@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding-top: 100px;
    }

    .quick-info {
        padding: 0 0 5rem;
        margin-top: -40px;
    }
}

@media (max-width: 768px) {
    .quick-info {
        padding: 2rem 0 4rem;
        margin-top: 0;
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 1) 100%
        );
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-top: 0;
    }

    .info-card {
        padding: 2rem 1.5rem;
    }

    .info-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1.25rem;
    }

    .info-card h3 {
        font-size: 1.125rem;
    }

    .info-card p {
        font-size: 0.875rem;
    }

    /* Reduce animation intensity on mobile */
    .info-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
}

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

    .info-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .info-card h3 {
        font-size: 1rem;
    }

    .info-card p {
        font-size: 0.8125rem;
        margin-bottom: 1.25rem;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .info-card,
    .info-card.highlight,
    .info-icon,
    .info-icon svg,
    .card-link {
        animation: none !important;
        transition: none;
    }
}
