/**
 * SML Hero Section Widget CSS
 * Clinical Precision Design - 연구소/바이오텍 스타일
 * 
 * 이 파일은 PHP에서 동적으로 생성되는 스타일이 많아
 * 기본 스타일만 포함합니다.
 */

/* ============================================
   SML Hero Section - Precision Bio-Elegance
   Premium Dark Theme v2.0
   ============================================ */

/* CSS Variables */
.sml-hero-section {
    --sml-primary-dark: #0B1426;
    --sml-primary: #0A2540;
    --sml-primary-light: #243B5C;
    --sml-secondary: #00C9A7;
    --sml-accent: #00D4FF;
    --sml-text-light: #FFFFFF;
    --sml-text-muted: rgba(255, 255, 255, 0.7);
    --sml-border: rgba(0, 201, 167, 0.2);
    --sml-glass-bg: rgba(26, 43, 74, 0.6);
    --sml-glass-border: rgba(0, 201, 167, 0.15);
    --sml-glow-primary: rgba(0, 201, 167, 0.4);
    --sml-glow-accent: rgba(0, 212, 255, 0.3);
    --sml-font-display: var(--sml-font-display, 'Plus Jakarta Sans', sans-serif);
    --sml-font-body: var(--sml-font-body, 'DM Sans', sans-serif);
    --sml-font-mono: var(--sml-font-mono, 'JetBrains Mono', monospace);
}

.sml-hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    overflow: hidden;
    background: var(--hero-bg, linear-gradient(180deg, var(--sml-primary-dark) 0%, var(--sml-primary) 50%, var(--sml-primary-dark) 100%));
}

/* Dynamic CSS Variable Support */
.sml-hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: var(--hero-bg-size, cover);
    background-position: var(--hero-bg-position, center center);
    background-repeat: no-repeat;
    z-index: 1;
}

/* Parallax Support */
.sml-hero-parallax .sml-hero-bg-image {
    background-attachment: fixed;
}

.sml-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hero-overlay-color, rgba(0, 0, 0, 0.5));
    opacity: var(--hero-overlay-opacity, 0.5);
    z-index: 2;
}

/* Video Background */
.sml-hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* DNA Helix Pattern Background */
.sml-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 100% 50% at 20% 30%, rgba(0, 201, 167, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80% 40% at 80% 70%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 150px,
            rgba(0, 201, 167, 0.03) 150px,
            rgba(0, 201, 167, 0.03) 151px
        );
    pointer-events: none;
    z-index: 1;
}

/* Decorative Elements - Bio Style */
.sml-hero-decoration {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

.sml-hero-decoration-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.08) 0%, transparent 70%);
    animation: sml-hero-float-slow 20s ease-in-out infinite;
}

.sml-hero-decoration-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    animation: sml-hero-float-slow 25s ease-in-out infinite reverse;
}

.sml-hero-decoration-3 {
    width: 200px;
    height: 200px;
    top: 30%;
    right: 15%;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.1) 0%, transparent 70%);
    animation: sml-hero-pulse-soft 4s ease-in-out infinite;
}

/* Molecular Grid Dots */
.sml-hero-dots {
    position: absolute;
    top: 20%;
    left: 5%;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, var(--sml-secondary) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    opacity: 0.15;
    z-index: 2;
}

@keyframes sml-hero-float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

@keyframes sml-hero-pulse-soft {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.sml-hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.sml-hero-content {
    max-width: 900px;
}

/* Layout variations - applied to section */
.sml-hero-section.sml-hero-center .sml-hero-content {
    margin: 0 auto;
    text-align: center;
}

.sml-hero-section.sml-hero-left .sml-hero-content {
    text-align: left;
}

.sml-hero-section.sml-hero-split .sml-hero-content {
    max-width: 55%;
    text-align: left;
}

.sml-hero-section.sml-hero-center .sml-hero-breadcrumb {
    justify-content: center;
}

.sml-hero-section.sml-hero-center .sml-hero-buttons {
    justify-content: center;
}

.sml-hero-breadcrumb {
    font-family: var(--sml-font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--sml-secondary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sml-hero-breadcrumb::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--sml-secondary), var(--sml-accent));
    border-radius: 1px;
}

.sml-hero-title {
    font-family: var(--sml-font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    color: var(--sml-text-light);
    line-height: 1.15;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
}

.sml-hero-subtitle {
    font-family: var(--sml-font-body);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    color: var(--sml-text-muted);
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.sml-hero-description {
    font-family: var(--sml-font-body);
    font-size: 16px;
    color: var(--sml-text-muted);
    line-height: 1.8;
    margin: 0 0 40px 0;
}

.sml-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.sml-hero-buttons.sml-hero-center {
    justify-content: center;
}

.sml-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sml-font-display);
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sml-hero-btn.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
}

.sml-hero-btn.btn-md {
    padding: 14px 32px;
    font-size: 15px;
}

.sml-hero-btn.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

.sml-hero-btn-primary {
    background: var(--sml-secondary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 201, 167, 0.25);
}

.sml-hero-btn-primary:hover {
    background: #00b896;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 201, 167, 0.35);
}

.sml-hero-btn-secondary {
    background-color: transparent;
    color: var(--sml-text-light);
    border: 2px solid var(--sml-border);
}

.sml-hero-btn-secondary:hover {
    background-color: rgba(0, 201, 167, 0.1);
    border-color: var(--sml-secondary);
    color: var(--sml-secondary);
}

.sml-hero-btn svg,
.sml-hero-btn i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sml-hero-btn:hover svg,
.sml-hero-btn:hover i {
    transform: translateX(4px);
}

/* Animation */
.sml-hero-animate .sml-hero-breadcrumb {
    opacity: 0;
    animation: sml-fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.1s;
}

.sml-hero-animate .sml-hero-title {
    opacity: 0;
    animation: sml-fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

.sml-hero-animate .sml-hero-subtitle {
    opacity: 0;
    animation: sml-fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.sml-hero-animate .sml-hero-description {
    opacity: 0;
    animation: sml-fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.4s;
}

.sml-hero-animate .sml-hero-buttons {
    opacity: 0;
    animation: sml-fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes sml-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .sml-hero-container {
        padding: 0 24px;
    }

    .sml-hero-content.sml-hero-split {
        max-width: 65%;
    }

    .sml-hero-decoration-3 {
        display: none;
    }
}

@media (max-width: 768px) {
    .sml-hero-section {
        min-height: auto;
        padding: 80px 20px !important;
    }

    .sml-hero-content,
    .sml-hero-content.sml-hero-split {
        max-width: 100%;
        text-align: center;
    }

    .sml-hero-breadcrumb {
        justify-content: center;
    }

    .sml-hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .sml-hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .sml-hero-decoration,
    .sml-hero-dots {
        display: none;
    }
}
