/**
 * Premium Button - Dedicated Styles
 * This file is loaded specifically by the Premium Button Elementor widget.
 */

/* CSS Variables (fallback if not in theme) */
:root {
    --color-primary-start: #72BE44;
    --color-primary-end: #8BDF58;
    --color-deep-blue: #0E1B2D;
    --font-heading: 'Geologica', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PREMIUM BUTTON BASE
   ═══════════════════════════════════════════════════════════════════════════════ */

.btn-premium-wrapper {
    display: block;
}

.btn-premium {
    /* Base Styling */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-heading), sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;

    /* Default Colors (Primary) */
    background: linear-gradient(135deg, #72BE44 0%, #8BDF58 100%);
    color: #0E1B2D !important;
    box-shadow:
        0 4px 15px rgba(114, 190, 68, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);

    /* Smooth Transitions */
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease,
        color 0.3s ease;
}

/* Icon inside button */
.btn-premium i,
.btn-premium svg {
    font-size: 1.1em;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-premium span {
    position: relative;
    z-index: 2;
}

/* Shimmer/Glow Effect Layer */
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

/* Inner Glow/Gradient Shift Layer */
.btn-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HOVER STATE
   ───────────────────────────────────────────────────────────────────────────── */
.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(114, 190, 68, 0.45),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover::after {
    opacity: 1;
}

.btn-premium:hover i,
.btn-premium:hover svg {
    transform: translateX(4px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ACTIVE/PRESSED STATE
   ───────────────────────────────────────────────────────────────────────────── */
.btn-premium:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow:
        0 2px 10px rgba(114, 190, 68, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
    transition-duration: 0.1s;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOCUS STATE (Accessibility)
   ───────────────────────────────────────────────────────────────────────────── */
.btn-premium:focus {
    outline: none;
}

.btn-premium:focus-visible {
    outline: 3px solid rgba(114, 190, 68, 0.5);
    outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BUTTON VARIANTS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Secondary Variant - Deep Blue */
.btn-premium.btn-secondary {
    background: linear-gradient(135deg, #0E1B2D 0%, #1a3a5f 100%);
    color: #fff !important;
    box-shadow:
        0 4px 15px rgba(14, 27, 45, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-premium.btn-secondary:hover {
    box-shadow:
        0 8px 25px rgba(14, 27, 45, 0.45),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Outline Variant - Transparent with Border */
.btn-premium.btn-outline {
    background: transparent;
    color: #72BE44 !important;
    border: 2px solid #72BE44;
    box-shadow:
        0 2px 10px rgba(114, 190, 68, 0.1),
        inset 0 0 0 0 #72BE44;
}

.btn-premium.btn-outline::before {
    background: linear-gradient(90deg,
            transparent,
            rgba(114, 190, 68, 0.3),
            transparent);
}

.btn-premium.btn-outline:hover {
    background: linear-gradient(135deg, #72BE44 0%, #8BDF58 100%);
    color: #0E1B2D !important;
    border-color: transparent;
    box-shadow:
        0 8px 25px rgba(114, 190, 68, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Dark Variant */
.btn-premium.btn-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff !important;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-premium.btn-dark:hover {
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Light Variant */
.btn-premium.btn-light {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    color: #0E1B2D !important;
    box-shadow:
        0 4px 15px rgba(255, 255, 255, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-premium.btn-light:hover {
    box-shadow:
        0 8px 25px rgba(255, 255, 255, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BUTTON SIZES
   ═══════════════════════════════════════════════════════════════════════════════ */

.btn-premium.btn-sm {
    padding: 10px 24px;
    font-size: 12px;
    gap: 8px;
}

.btn-premium.btn-lg {
    padding: 20px 48px;
    font-size: 17px;
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BUTTON WITH ICON EFFECTS
   ═══════════════════════════════════════════════════════════════════════════════ */

.btn-premium.btn-icon-left i,
.btn-premium.btn-icon-left svg {
    order: -1;
}

.btn-premium.btn-icon-left:hover i,
.btn-premium.btn-icon-left:hover svg {
    transform: translateX(-4px);
}

/* Full Width */
.btn-premium.btn-full-width {
    width: 100%;
    display: flex;
}

/* Disable Shimmer */
.btn-premium.no-shimmer::before {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .btn-premium {
        padding: 14px 28px;
        font-size: 14px;
    }

    .btn-premium.btn-lg {
        padding: 16px 36px;
        font-size: 15px;
    }
}