/**
 * Universal Directory Builder - Hero & Landing Page Styles
 * Extracted from legacy hero_shortcode.php with zero external font bloat.
 * Fully customizable via CSS Custom Properties.
 */

:root {
    --udb-hero-primary: #3b82f6;
    --udb-hero-secondary: #8b5cf6;
    --udb-hero-accent: #d946ef;
    --udb-hero-bg: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    --udb-hero-text: #020617;
    --udb-hero-muted: #64748b;
    --udb-hero-radius: 16px;
    --udb-hero-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ai-landing-wrapper,
.udb-hero-wrapper {
    font-family: var(--udb-hero-font-family);
    color: var(--udb-hero-text);
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* --- HERO SECTION --- */
.ai-hero-section,
.udb-hero-section {
    position: relative;
    width: 100%;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--udb-hero-bg);
    padding: 6rem 2rem;
    box-sizing: border-box;
}

.ai-hero-section::before,
.udb-hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 1;
}

.ai-bg-glow,
.udb-bg-glow {
    position: absolute;
    width: 80vw; height: 80vw;
    max-width: 800px; max-height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    top: -20%; left: -10%;
    z-index: 0;
    animation: udbFloatGlow1 20s infinite alternate ease-in-out;
    pointer-events: none;
    filter: blur(60px);
}

.ai-bg-glow-2,
.udb-bg-glow-2 {
    position: absolute;
    width: 70vw; height: 70vw;
    max-width: 700px; max-height: 700px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    bottom: -10%; right: -10%;
    z-index: 0;
    animation: udbFloatGlow2 25s infinite alternate ease-in-out;
    pointer-events: none;
    filter: blur(60px);
}

@keyframes udbFloatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15%, 15%) scale(1.1); }
}

@keyframes udbFloatGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10%, -15%) scale(1.15); }
}

.ai-hero-badge,
.udb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 100px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: all 0.4s ease;
    z-index: 2;
    text-decoration: none;
    animation: udbSlideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ai-hero-badge:hover,
.udb-hero-badge:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
}

.ai-hero-title,
.udb-hero-title {
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 800;
    color: var(--udb-hero-text);
    line-height: 1.1;
    max-width: 1000px;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.04em;
    z-index: 2;
    position: relative;
    animation: udbSlideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.15s;
}

.ai-gradient-text,
.udb-gradient-text {
    background: linear-gradient(to right, var(--udb-hero-primary), var(--udb-hero-secondary), var(--udb-hero-accent), var(--udb-hero-primary));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
    animation: udbGradientMove 8s linear infinite;
}

@keyframes udbGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ai-hero-subtitle,
.udb-hero-subtitle {
    font-size: clamp(17px, 2.2vw, 21px);
    color: var(--udb-hero-muted);
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 3rem;
    z-index: 2;
    position: relative;
    animation: udbSlideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.ai-btn-group,
.udb-btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 2;
    position: relative;
    animation: udbSlideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.45s;
}

.ai-btn,
.udb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 10px;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.ai-btn-primary,
.udb-btn-primary {
    background: linear-gradient(135deg, var(--udb-hero-primary) 0%, var(--udb-hero-secondary) 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ai-btn-primary:hover,
.udb-btn-primary:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.ai-btn-secondary,
.udb-btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--udb-hero-text) !important;
    border: 1px solid rgba(203, 213, 225, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.ai-btn-secondary:hover,
.udb-btn-secondary:hover {
    background: #ffffff;
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.ai-arrow-icon,
.udb-arrow-icon {
    transition: transform 0.3s ease;
}

.udb-btn-primary:hover .udb-arrow-icon,
.ai-btn-primary:hover .ai-arrow-icon {
    transform: translateX(5px);
}

/* Optional Particles */
.ai-particle,
.udb-particle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    animation: udbParticleFloat linear infinite;
}

@keyframes udbParticleFloat {
    0% { transform: translateY(0px) scale(0.8); opacity: 0; }
    15% { opacity: 0.5; }
    85% { opacity: 0.5; }
    100% { transform: translateY(-100vh) scale(1.2); opacity: 0; }
}

@keyframes udbSlideUpFade {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .ai-btn-group,
    .udb-btn-group { flex-direction: column; width: 100%; }
    .ai-btn,
    .udb-btn { width: 100%; }
    .ai-hero-section,
    .udb-hero-section { padding: 4rem 1.5rem; min-height: auto; }
}
