/**
 * Reusable Component Styles
 * Use these classes in ACF blocks and Gutenberg for consistent styling
 *
 * @package Astra-Child
 */

/* ==========================================================================
   BUTTONS - Shared styles for ACF blocks and Gutenberg
   ========================================================================== */

/* Base button styles */
.btn,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 0.75rem !important;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-md,
.wp-block-button__link {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Primary Button - Uses Astra primary color */
.btn-primary,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background: var(--color-primary) !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    filter: brightness(0.9);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    color: white !important;
}

/* Secondary Button */
.btn-secondary,
.wp-block-button.is-style-secondary .wp-block-button__link {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover,
.wp-block-button.is-style-secondary .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Outline Button - Uses Astra primary color */
.btn-outline,
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary) !important;
}

.btn-outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--color-primary) !important;
    color: white !important;
}

/* White Button */
.btn-white {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: #f8fafc;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Gutenberg button wrapper - remove default margin */
.wp-block-button {
    margin: 0;
}

.wp-block-buttons {
    gap: 1rem;
}

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

.card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-primary {
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
}

.badge-amber {
    background: rgba(251, 191, 36, 0.2);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.heading-xl {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
}

.heading-lg {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.heading-md {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
}

.text-gradient {
    color: var(--color-primary);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
    padding: 4rem 0;
}

.section-lg {
    padding: 6rem 0;
}

.section-dark {
    background: linear-gradient(-45deg, #1e293b, #0f172a, #134e4a, #1e3a5f);
    color: white;
}

.section-light {
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.container-narrow {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.shadow-primary {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
