/**
 * Singular Journey Host - Main Stylesheet
 * PHP 8.4 + HTMX + Bulma CSS
 */

* {
    font-family: 'Inter', sans-serif;
}

/* Theme Variables */
:root {
    --primary: #673AB7;
    --primary-dark: #512DA8;
    --primary-light: #9575CD;
    --accent: #FF6D00;
    --success: #00C853;
    --info: #2196F3;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9ff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #475569;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #1e293b;
    --bg-secondary: #0f172a;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    overflow-x: hidden;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 8px var(--shadow-color);
    background: var(--bg-primary) !important;
    transition: background-color 0.3s ease;
}

.navbar-brand .brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-item {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.navbar-item.cta-button {
    background: var(--gradient-1);
    color: white !important;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.navbar-item.cta-button:hover {
    transform: scale(1.05);
}

.theme-toggle {
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
}

/* Hero Section */
.hero-gradient {
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    color: var(--primary);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 4rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Products Section */
.products-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.product-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(103, 58, 183, 0.15);
    border-color: var(--primary-light);
}

.product-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    color: white;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.product-description {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-tertiary);
}

/* Feature Cards */
.features-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(103, 58, 183, 0.15);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 8px 16px rgba(103, 58, 183, 0.2);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Form Section */
.form-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 5rem 0;
}

.form-container {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.form-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.field label.label {
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.input, .select select, .textarea {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.input:focus, .select select:focus, .textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.1);
}

.radio-label {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.75rem;
    background: var(--bg-primary);
}

.radio-label:hover {
    border-color: var(--primary-light);
    background: var(--bg-secondary);
}

.radio-label input:checked ~ span {
    font-weight: 600;
    color: var(--primary);
}

.dns-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #0c4a6e;
}

.dns-box div {
    padding: 0.5rem 0;
}

.instruction-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 5px solid var(--info);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 12px;
}

.submit-button {
    background: var(--gradient-1);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(103, 58, 183, 0.3);
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(103, 58, 183, 0.4);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Boxes */
.box {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.box.has-background-light {
    background-color: var(--bg-secondary);
}

/* Notification Messages */
.notification.is-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 5px solid var(--success);
    color: #065f46;
    border-radius: 12px;
}

.notification.is-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 5px solid #ef4444;
    color: #991b1b;
    border-radius: 12px;
}

.notification.is-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 5px solid var(--info);
    color: #1e40af;
    border-radius: 12px;
}

/* Content */
.content {
    color: var(--text-primary);
}

.content h2,
.content h3,
.content h4 {
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #cbd5e1;
    padding: 4rem 1.5rem 2rem;
}

.footer-title {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: #cbd5e1;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: white;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* HTMX Loading */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-icon,
    .product-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}
