/**
 * Component Styles
 * VerbaCall Landing Theme
 */

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-in-out);
    text-decoration: none;
    border: none;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
    background-color: #000000;
    color: #ffffff;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button - Try for Free */
.btn-secondary {
    background-color: #ffffff;
    color: #000318;
    border: 3px solid rgba(95, 194, 228, 0.3);
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    position: relative;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

/* Underglow - blurred shadow that follows the glow */
.btn-underglow {
    position: absolute;
    inset: -8px;
    border-radius: 20px;
    pointer-events: none;
    z-index: -2;
    filter: blur(15px);
    opacity: 0.9;
}

/* Border glow element */
.btn-border-glow {
    position: absolute;
    inset: -3px;
    border-radius: 15px;
    pointer-events: none;
    z-index: -1;
}

/* Mask to show only the border (cuts out the center) */
.btn-glow-mask {
    position: absolute;
    inset: 3px;
    background: #ffffff;
    border-radius: 12px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0px 0px 25px 8px rgba(95, 194, 228, 0.8);
    border-color: #5FC2E4;
}

.btn-secondary:hover .btn-glow-effect {
    opacity: 0 !important;
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn-glow-effect {
        display: none;
    }
    .btn-secondary {
        border-color: #5FC2E4;
    }
}

/* Button Group */
.btn-group {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    justify-content: center;
}

@media (max-width: 639px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
    }
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--duration-slow) var(--ease-out);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Benefit Card */
.benefit-card {
    display: flex;
    gap: 38px;
    align-items: flex-start;
    justify-content: center;
    padding: 48px;
    width: 100%;
}

.benefit-card__content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1;
    min-width: 0;
}

.benefit-card__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.2;
    color: #110229;
    border: 1px solid #ebedf1;
    border-radius: 100px;
    width: fit-content;
}

.benefit-card__description {
    font-size: 28px;
    line-height: 1.2;
    font-weight: var(--font-weight-semibold);
    color: #828282;
}

.benefit-card__description strong,
.benefit-card__description b {
    color: #000318;
    font-weight: var(--font-weight-semibold);
}

.benefit-card .btn-group {
    justify-content: flex-start;
}

.benefit-card__visual {
    position: relative;
    width: 516px;
    height: 342px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F9FEFF;
    border-radius: 16px;
}

.benefit-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 1023px) {
    .benefit-card {
        flex-direction: column;
        gap: 24px;
        padding: 32px;
    }

    .benefit-card__visual {
        width: 100%;
        max-width: 100%;
        height: 280px;
    }

    .benefit-card__content {
        gap: 24px;
    }

    .benefit-card__description {
        font-size: 22px;
    }
}

@media (max-width: 639px) {
    .benefit-card {
        padding: 24px 20px;
    }

    .benefit-card__visual {
        height: 220px;
    }

    .benefit-card__description {
        font-size: 18px;
    }
}

/* Feature Card */
.feature-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    padding: var(--space-2xl) var(--space-3xl);
}

.feature-card__title {
    font-size: 28px;
    line-height: 1.17;
    font-weight: var(--font-weight-normal);
    letter-spacing: -1.4px;
    color: var(--color-dark);
    margin-bottom: var(--space-base);
    text-align: center;
}

.feature-card__description {
    font-size: 16px;
    line-height: 1.3;
    font-weight: var(--font-weight-normal);
    color: rgba(42, 50, 51, 0.7);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.feature-card__graphic {
    width: 100%;
    max-width: 472px;
    height: 438px;
    background-color: var(--color-gray-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   PATTERNS
   ======================================== */

/* Grid Pattern Background */
.pattern-grid {
    position: relative;
    background-image:
        repeating-linear-gradient(
            90deg,
            var(--color-border-light) 0px,
            var(--color-border-light) 1px,
            transparent 1px,
            transparent 23.18px
        ),
        repeating-linear-gradient(
            0deg,
            var(--color-border-light) 0px,
            var(--color-border-light) 1px,
            transparent 1px,
            transparent 22.11px
        );
}

/* Dot Pattern Background */
.pattern-dots {
    background-image: radial-gradient(
        circle,
        rgba(0, 0, 0, 0.1) 1.5px,
        transparent 1.5px
    );
    background-size: 17.54px 14px;
    background-position: 0 0;
}

/* ========================================
   RIPPLE ANIMATION
   ======================================== */

.ripple-container {
    position: absolute;
    width: 755px;
    height: 755px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.ripple-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 20px rgba(95, 194, 228, 0.4);
    opacity: 0;
    animation: ripple 3s ease-out infinite;
}

.ripple-circle:nth-child(1) {
    width: 314.58px;
    height: 314.58px;
    animation-delay: 0s;
}

.ripple-circle:nth-child(2) {
    width: 387.80px;
    height: 387.80px;
    animation-delay: 0.2s;
}

.ripple-circle:nth-child(3) {
    width: 458.72px;
    height: 458.72px;
    animation-delay: 0.4s;
}

.ripple-circle:nth-child(4) {
    width: 528.50px;
    height: 528.50px;
    animation-delay: 0.6s;
}

.ripple-circle:nth-child(5) {
    width: 595.99px;
    height: 595.99px;
    animation-delay: 0.8s;
}

.ripple-circle:nth-child(6) {
    width: 668.06px;
    height: 668.06px;
    animation-delay: 1s;
}

.ripple-circle:nth-child(7) {
    width: 755px;
    height: 755px;
    animation-delay: 1.2s;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .ripple-container {
        width: 500px;
        height: 500px;
    }

    .ripple-circle:nth-child(1) { width: 210px; height: 210px; }
    .ripple-circle:nth-child(2) { width: 260px; height: 260px; }
    .ripple-circle:nth-child(3) { width: 310px; height: 310px; }
    .ripple-circle:nth-child(4) { width: 360px; height: 360px; }
    .ripple-circle:nth-child(5) { width: 410px; height: 410px; }
    .ripple-circle:nth-child(6) { width: 460px; height: 460px; }
    .ripple-circle:nth-child(7) { width: 500px; height: 500px; }
}

/* ========================================
   DECORATIVE ELLIPSES
   ======================================== */

.decorative-ellipse {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(95, 194, 228, 0.05) 0%,
        rgba(95, 194, 228, 0.02) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: var(--z-background);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for sequential animations */
.scroll-animate.stagger-1 { transition-delay: 0.1s; }
.scroll-animate.stagger-2 { transition-delay: 0.2s; }
.scroll-animate.stagger-3 { transition-delay: 0.3s; }
.scroll-animate.stagger-4 { transition-delay: 0.4s; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   CAROUSEL
   ======================================== */

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel__track {
    display: flex;
    transition: transform var(--duration-slow) var(--ease-in-out);
}

.carousel__slide {
    min-width: 100%;
    opacity: 0.5;
    transition: opacity var(--duration-slow) var(--ease-in-out);
}

.carousel__slide.is-active {
    opacity: 1;
}

.carousel__controls {
    display: flex;
    gap: var(--space-3xl);
    justify-content: center;
    margin-top: var(--space-xl);
}

.carousel__btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border: var(--border-width) solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-in-out);
}

.carousel__btn:hover {
    transform: scale(1.1);
    border-color: var(--color-primary);
}

.carousel__btn:active {
    transform: scale(0.95);
}

.carousel__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel__btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-dark);
    stroke-width: 2;
}

/* ========================================
   NAVIGATION
   ======================================== */

.site-header {
    position: relative;
    z-index: var(--z-fixed);
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 120px;
    max-width: 100%;
    margin: 0;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo img {
    display: block;
    height: 28px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav a {
    color: var(--color-dark);
    font-size: var(--font-size-base);
    transition: color var(--duration-base) var(--ease-in-out);
}

.main-nav a:hover {
    color: var(--color-primary);
}

.header-login {
    color: var(--color-dark);
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: color var(--duration-base) var(--ease-in-out);
    margin-right: var(--space-lg);
}

.header-login:hover {
    color: var(--color-primary);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (max-width: 1023px) {
    .main-nav {
        display: none;
    }

    /* Mobile menu styles would go here */
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.focus-ring:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
