/**
 * Custom Styles for Wand & Shine Theme
 *
 * @package Wand_Shine
 * @since 1.0.0
 */

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

.container {
    max-width: var(--ws-spacing-container, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ws-spacing-md);
    padding-right: var(--ws-spacing-md);
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(90deg, var(--ws-color-primary) 0%, var(--ws-color-secondary) 50%, var(--ws-color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
    background-size: 200% auto;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

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

/* Base button styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--ws-radius-md);
    transition: all var(--ws-transition-normal);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Primary button (Green CTA - matches hero-btn-primary) */
.btn-primary {
    font-family: var(--ws-font-button);
    padding: 10px 24px;
    background-color: var(--ws-color-secondary);
    color: var(--ws-color-dark);
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    line-height: 1.5;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(216, 255, 99, 0.3);
}

/* Border only for buttons in #szolgaltatasok section */
#szolgaltatasok .btn-primary,
#szolgaltatasok .card .btn-primary,
.szolgaltatasok-section .btn-primary {
    border: 1px solid #dcdcdc;
}

.btn-primary:hover {
    background-color: #C3F70F !important;
    color: #131415 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 25px rgba(216, 255, 99, 0.4) !important;
}

/* Secondary button (Outline Pink - matches hero-btn-secondary) */
.btn-secondary {
    font-family: var(--ws-font-button);
    padding: 10px 24px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid var(--ws-color-primary);
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    line-height: 1.5;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background-color: #FF4FF3 !important;
    color: #FFFFFF !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 25px rgba(255, 79, 243, 0.4) !important;
}

/* Outline button (White bg with pink border - matches vp-cta-button) */
.btn-outline {
    font-family: 'Zalando Sans Expanded', sans-serif;
    background-color: #fff;
    border: 1px solid #FF4FF3;
    border-radius: 2px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #ff4ff3;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    line-height: 1.5;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(255, 79, 243, 0.2);
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background-color: #FF4FF3 !important;
    color: #FFFFFF !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 25px rgba(255, 79, 243, 0.4) !important;
}

/* =============================
   TYPOGRAPHY - GLOBAL HEADINGS
   ============================= */

/* Global heading styles - consistent typography across all headings */
h1, h2, h3, h4, h5, h6 {
    font-family: "Miamo", sans-serif;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
}

/* Heading size scale with responsive clamp */
h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem); /* 36px - 56px */
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem); /* 32px - 48px */
}

h3 {
    font-size: clamp(1.7rem, 4vw, 2.25rem); /* 24px - 36px */
}

h4 {
    font-size: clamp(1rem, 2vw, 1.25rem); /* 16px - 20px */
}

h5 {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem); /* 14px - 18px */
}

h6 {
    font-size: clamp(0.75rem, 1.25vw, 1rem); /* 12px - 16px */
}

/* Global paragraph styles */
p {
    font-family: "Figtree", sans-serif;
}

/* =============================
   TYPOGRAPHY - TEXT ELEMENTS
   ============================= */

/* Tagline/Label (Zalando Sans Expanded, uppercase) */
.tagline {
    font-family: var(--ws-font-button);
    font-size: clamp(10px, 1.5vw, 12px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ws-color-accent);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* Subtitle (Figtree, larger body text) */
.subtitle {
    font-family: var(--ws-font-primary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: rgba(19, 20, 21, 0.8);
    line-height: 1.6;
    margin-bottom: var(--ws-spacing-sm);
}

/* Body text - Large */
.text-large {
    font-family: var(--ws-font-primary);
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 400;
    color: var(--ws-color-dark);
    line-height: 1.7;
}

/* Body text - Small */
.text-small {
    font-family: var(--ws-font-primary);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 400;
    color: rgba(19, 20, 21, 0.7);
    line-height: 1.6;
}

/* =============================
   CARDS & CONTAINERS
   ============================= */

/* Base card style */
.card {
    background: var(--ws-color-white);
    border-radius: var(--ws-radius-md);
    padding: var(--ws-spacing-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--ws-transition-normal);
}

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

/* Card with border */
.card-bordered {
    background: var(--ws-color-white);
    border: 1px solid rgba(180, 164, 255, 0.2);
    border-radius: var(--ws-radius-md);
    padding: var(--ws-spacing-md);
    transition: all var(--ws-transition-normal);
}

.card-bordered:hover {
    border-color: var(--ws-color-accent);
    box-shadow: 0 4px 16px rgba(180, 164, 255, 0.15);
}

/* Section wrapper */
.section {
    padding: var(--ws-spacing-xl) var(--ws-spacing-md);
    max-width: 1280px;
    margin: 0 auto;
}

.section-wide {
    padding: var(--ws-spacing-xl) var(--ws-spacing-md);
    max-width: 100%;
}

/* =============================
   UTILITY CLASSES - EXTENDED
   ============================= */

/* Spacing utilities */
.mt-xs { margin-top: var(--ws-spacing-xs); }
.mt-sm { margin-top: var(--ws-spacing-sm); }
.mt-md { margin-top: var(--ws-spacing-md); }
.mt-lg { margin-top: var(--ws-spacing-lg); }
.mt-xl { margin-top: var(--ws-spacing-xl); }

.mb-xs { margin-bottom: var(--ws-spacing-xs); }
.mb-sm { margin-bottom: var(--ws-spacing-sm); }
.mb-md { margin-bottom: var(--ws-spacing-md); }
.mb-lg { margin-bottom: var(--ws-spacing-lg); }
.mb-xl { margin-bottom: var(--ws-spacing-xl); }

.p-xs { padding: var(--ws-spacing-xs); }
.p-sm { padding: var(--ws-spacing-sm); }
.p-md { padding: var(--ws-spacing-md); }
.p-lg { padding: var(--ws-spacing-lg); }
.p-xl { padding: var(--ws-spacing-xl); }

/* Text alignment */
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text transform */
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

/* Text colors */
.text-primary { color: var(--ws-color-primary); }
.text-secondary { color: var(--ws-color-secondary); }
.text-accent { color: var(--ws-color-accent); }
.text-dark { color: var(--ws-color-dark); }
.text-light { color: rgba(19, 20, 21, 0.6); }
.text-white { color: var(--ws-color-white); }

/* Background colors */
.bg-primary { background-color: var(--ws-color-primary); }
.bg-secondary { background-color: var(--ws-color-secondary); }
.bg-accent { background-color: var(--ws-color-accent); }
.bg-dark { background-color: var(--ws-color-dark); }
.bg-light { background-color: var(--ws-color-light); }
.bg-white { background-color: var(--ws-color-white); }

/* Display utilities */
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-none { display: none; }

/* Flex utilities */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

/* Gap utilities */
.gap-xs { gap: var(--ws-spacing-xs); }
.gap-sm { gap: var(--ws-spacing-sm); }
.gap-md { gap: var(--ws-spacing-md); }
.gap-lg { gap: var(--ws-spacing-lg); }

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-xs { max-width: 320px; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 800px; }
.max-w-xl { max-width: 1024px; }

/* Border radius */
.rounded-sm { border-radius: var(--ws-radius-sm); }
.rounded-md { border-radius: var(--ws-radius-md); }
.rounded-lg { border-radius: var(--ws-radius-lg); }
.rounded-full { border-radius: 9999px; }

/* Shadow utilities */
.shadow-sm { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-90 { opacity: 0.9; }

/* =============================
   MOBILE MENU
   ============================= */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--ws-color-white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right var(--ws-transition-normal);
        z-index: 1000;
        overflow-y: auto;
    }

    .mobile-menu.active {
        right: 0;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* =============================
   SCROLL TO TOP BUTTON - Removed (now in blocks/footer/style.css)
   ============================= */

/* =============================
   FAQ ACCORDION - LEGACY (Replaced by blocks/faq/style.css)
   ============================= */

/* Legacy FAQ styles removed - now handled by custom FAQ block */

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

.expandable-section {
    position: relative;
}

.expandable-content {
    max-height: 200px;
    overflow: hidden;
    position: relative;
    transition: max-height var(--ws-transition-normal);
}

.expandable-section.expanded .expandable-content {
    max-height: 9999px;
}

.expandable-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--ws-color-white));
    pointer-events: none;
    transition: opacity var(--ws-transition-normal);
}

.expandable-section.expanded .expandable-content::after {
    opacity: 0;
}

/* =============================
   PORTFOLIO LIGHTBOX
   ============================= */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--ws-transition-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: var(--ws-color-white);
    color: var(--ws-color-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--ws-transition-fast);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--ws-color-primary);
    color: var(--ws-color-white);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

/* =============================
   DISCOUNT POPUP
   ============================= */

.discount-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 500px;
    width: 90%;
    background: var(--ws-color-white);
    border-radius: var(--ws-radius-xl);
    padding: var(--ws-spacing-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--ws-transition-normal);
}

.discount-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.discount-popup::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--ws-color-dark);
}

/* =============================
   FORM STYLES
   ============================= */

.form-group {
    margin-bottom: var(--ws-spacing-sm);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--ws-color-light);
    border-radius: var(--ws-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--ws-transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--ws-color-primary);
}

.form-control.error {
    border-color: #ff0000;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

.sparkle {
    animation: sparkle-float 3s ease-in-out infinite;
}

@keyframes sparkle-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* =============================
   RESPONSIVE
   ============================= */

@media (max-width: 1024px) {
    :root {
        --ws-spacing-md: 1.5rem;
        --ws-spacing-lg: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --ws-spacing-sm: 0.75rem;
        --ws-spacing-md: 1rem;
        --ws-spacing-lg: 2rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 1rem;
        right: 1rem;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
}
