/* ================================================
   BaMa Pro – Components v2.0 – Glassmorphism Blue
   ================================================ */

/* ── Buttons ──────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 15px 34px;
    font-family: var(--font-heading);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base) var(--ease-in-out);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    border: 2px solid transparent;
    z-index: 1;
}

/* Shimmer sweep effect */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    transition: left 0.5s var(--ease-out-expo);
    z-index: -1;
}

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-accent);
    background-size: 200% 200%;
    color: var(--color-white);
    border-color: transparent;
    box-shadow: var(--shadow-glow-sm);
}

.btn-primary:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: var(--color-white);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border-color: var(--glass-border-light);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-sm);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-dark {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--glass-border);
}

.btn-dark:hover {
    background: var(--color-primary-light);
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-sm);
}

.btn-glass {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: var(--color-white);
    border-color: var(--glass-border);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-cyan);
    box-shadow: var(--shadow-glow-cyan);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 18px 44px;
    font-size: var(--fs-body-lg);
    border-radius: var(--radius-xl);
}

.btn-sm {
    padding: 10px 24px;
    font-size: var(--fs-body-sm);
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base) var(--ease-elastic);
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

/* ── Section Titles ───────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--fs-micro);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-bottom: var(--space-lg);
    position: relative;
}

.section-label::before {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-lg);
    color: var(--color-white);
}

.section-title .highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: var(--fs-body-lg);
    color: var(--color-mid-gray);
    max-width: 640px;
    line-height: var(--lh-body);
}

/* ── Glass Card ───────────────────────────────── */
.card {
    background: var(--gradient-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow) var(--ease-out-expo);
    cursor: pointer;
    position: relative;
}

/* Animated border glow on hover */
.card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    background: var(--gradient-accent);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-xl) - 1px);
    background: var(--color-primary);
    z-index: -1;
    transition: background var(--transition-base);
}

.card:hover::after {
    background: var(--color-primary-light);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow-sm);
}

.card__image-wrapper {
    overflow: hidden;
    position: relative;
}

.card__image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--color-primary), transparent);
    pointer-events: none;
    z-index: 1;
}

.card__image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform var(--transition-slower), filter var(--transition-slow);
    filter: brightness(0.8) saturate(1.1);
}

.card:hover .card__image {
    transform: scale(1.08);
    filter: brightness(0.9) saturate(1.3);
}

.card__content {
    padding: var(--space-xl) var(--space-xl) var(--space-3xl);
    position: relative;
    z-index: 2;
}

.card__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-md);
    color: var(--color-white);
    transition: color var(--transition-fast);
}

.card:hover .card__title {
    color: var(--color-cyan);
}

.card__description {
    font-size: var(--fs-body-sm);
    color: var(--color-mid-gray);
    line-height: var(--lh-body);
    margin-bottom: 0;
    padding-right: var(--space-3xl);
}

.card__arrow {
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base) var(--ease-elastic);
    color: var(--color-accent);
    z-index: 2;
}

.card:hover .card__arrow {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    transform: translateX(5px) scale(1.1);
    box-shadow: var(--shadow-glow-sm);
}

/* ── FAQ Accordion ────────────────────────────── */
.faq-item {
    border-bottom: 1px solid var(--glass-border);
    transition: background var(--transition-base);
}

.faq-item:first-child {
    border-top: 1px solid var(--glass-border);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-md);
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    color: var(--color-white);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
    background: none;
    border: none;
}

.faq-question:hover {
    color: var(--color-cyan);
}

.faq-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base) var(--ease-elastic);
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--color-mid-gray);
    transition: all var(--transition-base) var(--ease-elastic);
}

.faq-icon::before {
    width: 14px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 14px;
}

.faq-item.active .faq-icon {
    border-color: var(--color-accent);
    background: var(--gradient-accent);
    transform: rotate(180deg);
    box-shadow: var(--shadow-glow-sm);
}

.faq-item.active .faq-icon::before {
    background: var(--color-white);
}

.faq-item.active .faq-icon::after {
    background: var(--color-white);
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow) var(--ease-out-expo);
}

.faq-answer__inner {
    padding: 0 var(--space-md) var(--space-xl);
    font-size: var(--fs-body);
    color: var(--color-mid-gray);
    line-height: var(--lh-body);
    max-width: 800px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-question {
    color: var(--color-accent);
}

/* ── Stats / Numbers ──────────────────────────── */
.stat-item {
    text-align: center;
    padding: var(--space-xl);
    position: relative;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--fw-extrabold);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-family: var(--font-heading);
    font-size: var(--fs-body);
    font-weight: var(--fw-medium);
    color: var(--color-white);
    letter-spacing: var(--ls-wide);
}

.stat-label--sub {
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-regular);
    letter-spacing: var(--ls-normal);
    color: var(--color-mid-gray);
    margin-top: var(--space-xs);
}

/* ── Glass Panel ──────────────────────────────── */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-inset);
}

/* ── Icon Box ─────────────────────────────────── */
.icon-box {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--color-white);
    flex-shrink: 0;
    position: relative;
    box-shadow: var(--shadow-glow-sm);
}

.icon-box::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: calc(var(--radius-lg) + 4px);
    background: var(--gradient-accent);
    opacity: 0.2;
    z-index: -1;
    animation: glow-pulse 3s ease-in-out infinite;
}

.icon-box svg {
    width: 28px;
    height: 28px;
}

/* ── Divider ──────────────────────────────────── */
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border: none;
    margin: var(--space-lg) 0;
    border-radius: var(--radius-full);
}

/* ── Lines / Decorations ──────────────────────── */
.line-accent {
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

/* ── Floating Orbs (decoration) ───────────────── */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    animation: float-gentle 8s ease-in-out infinite;
}

.orb--blue {
    background: var(--color-accent-glow);
}

.orb--cyan {
    background: var(--color-cyan-glow);
}

/* ── Toast Notification ───────────────────────── */
.toast {
    position: fixed;
    bottom: var(--space-2xl);
    right: var(--space-2xl);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: var(--color-white);
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-medium);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border);
    z-index: var(--z-toast);
    transform: translateY(120%);
    opacity: 0;
    transition: all var(--transition-base) var(--ease-out-expo);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast--success {
    border-left: 4px solid var(--color-success);
}

.toast--error {
    border-left: 4px solid var(--color-error);
}

/* ── Particle Canvas ──────────────────────────── */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE - MOBILE OPTIMIZATIONS
   ══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .btn {
        padding: 14px 28px;
        font-size: var(--fs-body-sm);
    }
    
    .btn-lg {
        padding: 16px 36px;
        font-size: var(--fs-body);
    }
    
    .card__image {
        height: 240px;
    }
    
    .section-title {
        font-size: var(--fs-h3);
    }
}

@media (max-width: 768px) {
    /* Gombok mobilra optimalizálva */
    .btn {
        padding: 12px 24px;
        font-size: var(--fs-body-sm);
        min-height: 44px;
        width: 100%;
        max-width: 100%;
    }
    
    .btn-lg {
        padding: 15px 32px;
        font-size: var(--fs-body);
        min-height: 48px;
    }
    
    .btn-sm {
        padding: 10px 20px;
        font-size: var(--fs-caption);
        min-height: 40px;
    }
    
    /* Szekció címek kisebb méretben */
    .section-title {
        font-size: var(--fs-h3);
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: var(--fs-body);
    }
    
    /* Kártyák mobilon */
    .card {
        margin-bottom: var(--space-lg);
    }
    
    .card__image {
        height: 200px;
    }
    
    .card__content {
        padding: var(--space-lg);
    }
    
    .card__title {
        font-size: var(--fs-h4);
    }
    
    /* FAQ elemek mobilon */
    .faq-question {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--fs-body-sm);
        min-height: 44px;
    }
    
    .faq-answer__inner {
        padding: 0 var(--space-lg) var(--space-lg);
        font-size: var(--fs-body-sm);
    }
    
    /* Ikon dobozok kisebb méret */
    .icon-box {
        width: 52px;
        height: 52px;
    }
    
    .icon-box svg {
        width: 24px;
        height: 24px;
    }
    
    /* Toast notification mobilon */
    .toast {
        bottom: var(--space-lg);
        right: var(--space-lg);
        left: var(--space-lg);
        padding: var(--space-md) var(--space-lg);
        font-size: var(--fs-caption);
    }
}

@media (max-width: 480px) {
    /* Gombok kis mobilon */
    .btn {
        padding: 11px 20px;
        font-size: var(--fs-caption);
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: var(--fs-body-sm);
    }
    
    /* Címek még kisebb méretben */
    .section-title {
        font-size: var(--fs-h4);
    }
    
    .card__image {
        height: 180px;
    }
    
    .faq-question {
        padding: var(--space-sm) var(--space-md);
    }
}