/**
 * HyzenPro Landing Page - Design System (Base Only)
 * 
 * Core styles for Elementor widgets.
 * Widget-specific styles moved to dedicated files:
 * - hyzen-hero.css
 * - hyzen-categories.css
 * - hyzen-slider.css
 * - hyzen-featured.css
 * - hyzen-stats.css
 * - hyzen-articles.css
 */

/* ========================================
   0. ELEMENTOR OVERRIDES - FORCE FULL WIDTH
   ======================================== */

/* Elementor Sections - Full Width */
.elementor-section.elementor-section-boxed>.elementor-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Elementor Container (newer versions) */
.e-con,
.e-con-inner,
.e-con-boxed {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    --container-max-width: 100% !important;
}

/* Elementor Section - Remove Gap */
.elementor-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Elementor Column Gap Override */
.elementor-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Force widget wrapper full width */
.elementor-widget-wrap,
.elementor-widget {
    width: 100% !important;
}

/* ========================================
   0b. WIDTH UTILITY CLASSES
   ======================================== */

.hyzen-width-full {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.hyzen-width-boxed {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hyzen-width-narrow {
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hyzen-width-custom {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ========================================
   1. CSS CUSTOM PROPERTIES
   ======================================== */
:root {
    /* Colors */
    --hyzen-bg: 0 0% 100%;
    --hyzen-fg: 0 0% 9%;
    --hyzen-card: 0 0% 100%;
    --hyzen-card-fg: 0 0% 9%;
    --hyzen-primary: 0 0% 9%;
    --hyzen-primary-fg: 0 0% 100%;
    --hyzen-secondary: 0 0% 96%;
    --hyzen-secondary-fg: 0 0% 9%;
    --hyzen-muted: 0 0% 96%;
    --hyzen-muted-fg: 0 0% 40%;
    --hyzen-border: 0 0% 85%;
    --hyzen-accent: 38 92% 50%;
    --hyzen-radius: 0.75rem;

    /* Shadows */
    --hyzen-shadow-soft: 0 4px 20px -2px hsl(0 0% 0% / 0.06);
    --hyzen-shadow-card: 0 2px 12px -2px hsl(0 0% 0% / 0.08);
    --hyzen-shadow-hover: 0 8px 30px -4px hsl(0 0% 0% / 0.12);

    /* Fonts */
    --hyzen-font-heading: 'Playfair Display', Georgia, serif;
    --hyzen-font-body: 'Inter', system-ui, sans-serif;
}

/* ========================================
   2. BASE STYLES
   ======================================== */
.hyzen-landing {
    font-family: var(--hyzen-font-body);
    color: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hyzen-landing h1,
.hyzen-landing h2,
.hyzen-landing h3,
.hyzen-landing h4,
.hyzen-landing h5,
.hyzen-landing h6 {
    font-family: var(--hyzen-font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

/* Container */
.hyzen-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hyzen-container-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .hyzen-container-inner {
        padding: 0 1rem;
    }
}

/* ========================================
   3. BUTTONS
   ======================================== */
.hyzen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--hyzen-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.hyzen-btn-primary {
    background: hsl(var(--hyzen-primary));
    color: hsl(var(--hyzen-primary-fg));
    box-shadow: var(--hyzen-shadow-soft);
}

.hyzen-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--hyzen-shadow-hover);
}

.hyzen-btn-outline {
    background: transparent;
    color: hsl(var(--hyzen-fg));
    border: 2px solid hsl(var(--hyzen-fg));
}

.hyzen-btn-outline:hover {
    background: hsl(var(--hyzen-fg));
    color: hsl(var(--hyzen-bg));
}

.hyzen-btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ========================================
   4. PLATFORM LOGOS MARQUEE
   ======================================== */
.hyzen-marquee-section {
    padding: 2rem 0;
    border-top: 1px solid hsl(var(--hyzen-border));
    border-bottom: 1px solid hsl(var(--hyzen-border));
    background: transparent;
    overflow: hidden;
}

.hyzen-marquee-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--hyzen-muted-fg));
    margin-bottom: 1rem;
}

.hyzen-marquee-track {
    display: flex;
    animation: hyzen-marquee 30s linear infinite;
}

.hyzen-marquee-track:hover {
    animation-play-state: paused;
}

.hyzen-marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 0.5rem 2rem;
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.5s ease;
    cursor: pointer;
}

.hyzen-marquee-item:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.hyzen-marquee-item img {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

/* ========================================
   5. FEATURED TOOL CARD (Single Card Widget)
   ======================================== */
.hyzen-tool-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--hyzen-shadow-card);
    position: relative;
}

@media (min-width: 768px) {
    .hyzen-tool-card {
        flex-direction: row;
        align-items: center;
        padding: 1.5rem 2rem;
    }
}

.hyzen-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hyzen-shadow-hover);
}

.hyzen-tool-icon {
    width: 4rem;
    height: 4rem;
    background: #f5f5f5;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.hyzen-tool-icon img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.hyzen-tool-info {
    flex: 1;
    min-width: 0;
}

.hyzen-tool-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.hyzen-tool-name {
    font-family: var(--hyzen-font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #171717;
}

.hyzen-tool-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #f5f5f5;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.hyzen-tool-rating svg {
    width: 0.75rem;
    height: 0.75rem;
    fill: #f59e0b;
}

.hyzen-tool-desc {
    font-size: 0.875rem;
    color: #525252;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.hyzen-tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hyzen-tag {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background: #171717;
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hyzen-tag:hover {
    transform: translateY(-2px);
}

.hyzen-tool-stats {
    text-align: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .hyzen-tool-stats {
        text-align: right;
    }
}

.hyzen-tool-votes {
    font-family: var(--hyzen-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hyzen-tool-visit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #171717;
    color: #ffffff;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hyzen-tool-visit:hover {
    background: #262626;
    gap: 0.75rem;
}

.hyzen-tool-visit svg {
    width: 1rem;
    height: 1rem;
}

/* ========================================
   6. SEARCH RESULTS
   ======================================== */
.hyzen-search-form {
    position: relative;
    width: 100%;
}

.hyzen-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: #171717;
    border-radius: 1rem;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hyzen-search-results.active {
    display: block;
}

.hyzen-search-result-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid #262626;
}

.hyzen-search-result-item:last-child {
    border-bottom: none;
}

.hyzen-search-result-item:hover {
    background: #262626;
}

.hyzen-search-result-item img {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.hyzen-search-no-results {
    padding: 1rem;
    color: #a3a3a3;
    text-align: center;
}

/* ========================================
   7. HERO BADGE (Used by multiple widgets)
   ======================================== */
.hyzen-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #171717;
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hyzen-hero-badge svg {
    width: 1rem;
    height: 1rem;
}

/* ========================================
   8. GLOBAL KEYFRAMES
   ======================================== */
@keyframes hyzen-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

/* GPU-composited morph animation */
@keyframes hyzen-morph {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.05, 0.95) rotate(1deg);
    }
}

@keyframes hyzen-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.95);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes hyzen-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   9. UTILITY CLASSES
   ======================================== */
.hyzen-animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hyzen-animate-slide-up.hyzen-visible {
    opacity: 1;
    transform: translateY(0);
}

.hyzen-animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hyzen-animate-scale-in.hyzen-visible {
    opacity: 1;
    transform: scale(1);
}

.hyzen-stagger-1 {
    transition-delay: 0.1s;
}

.hyzen-stagger-2 {
    transition-delay: 0.2s;
}

.hyzen-stagger-3 {
    transition-delay: 0.3s;
}

.hyzen-stagger-4 {
    transition-delay: 0.4s;
}