/**
 * WooLogger Main CSS
 * Optimized & Modular Styles
 */

/* =========================================
   1. CSS CUSTOM PROPERTIES
   ========================================= */
:root {
    --c-bg: #fff;
    --c-surface: #fff;
    --c-surface-alt: #f9fafb;
    --c-text: #111827;
    --c-text-muted: #6b7280;
    --c-border: #e5e7eb;
    --c-success: #10b981;
    --c-error: #ef4444;
    --c-info: #3b82f6;
    --c-warning: #eab308;
    --c-verified: #1d9bf0;
    --c-white: #fff;
    --c-black: #000;
    --c-error-light: rgba(239, 68, 68, 0.1);
    --c-error-medium: rgba(239, 68, 68, 0.2);
    --c-success-light: rgba(16, 185, 129, 0.1);
    --c-info-light: rgba(59, 130, 246, 0.1);
    --c-warning-light: rgba(234, 179, 8, 0.1);
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --text-xs: 0.6875rem;
    --text-sm: 0.75rem;
    --text-base: 0.8125rem;
    --container-lg: 1216px;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-overlay: 900;
    --z-modal: 1000;
    --z-header: 1001;
    --z-tooltip: 1100;
    --input-height-sm: 28px;
    --input-height-md: 36px;
    --input-height-lg: 44px;
    --bp-desktop: 1441px;
    --bp-tablet: 1024px;
    --bp-mobile: 768px;
    --bp-mobile-sm: 480px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-block-start: 54px;
}

a {
    color: inherit;
    text-decoration: none;
}

img, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
}

input, textarea, select {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--c-text);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

/* =========================================
   3. UTILITIES
   ========================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-lg);
    margin-inline: auto;
    padding-inline: var(--sp-4);
}

.py-16 {
    padding-block: 4rem;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--c-text-muted);
}

/* =========================================
   4. TYPOGRAPHY
   ========================================= */
h1 {
    font-size: 2rem;
    font-weight: 700;
}

article h1, aside h1, nav h1, section h1 {
    font-size: 2rem;
}

.prose {
    line-height: 1.75;
}

.prose p {
    margin-block-end: 1.25rem;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-block: 2rem 1rem;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-block: 1.5rem 0.75rem;
}

.prose ul, .prose ol {
    margin-block-end: 1.25rem;
    padding-inline-start: 1.5rem;
}

.prose li {
    margin-block-end: var(--sp-2);
}

.prose a {
    color: var(--c-text);
    text-decoration: underline;
}

.prose img {
    border-radius: var(--radius-md);
    margin-block: 1.5rem;
}

/* =========================================
   5. COMPONENTS
   ========================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-6);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: all var(--transition-fast);
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--c-text);
    color: var(--c-bg);
}

.btn-primary:hover {
    opacity: 0.85;
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 1px solid var(--c-border);
    background-color: var(--c-surface);
    color: var(--c-text);
}

.btn-outline:hover {
    background-color: var(--c-surface-alt);
}

.btn-danger {
    background-color: var(--c-error);
    color: var(--c-white);
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-sm {
    height: var(--input-height-sm);
    padding: 0 var(--sp-2);
    font-size: var(--text-xs);
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--c-border);
    background-color: var(--c-surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--c-text-muted);
    transition: all var(--transition-fast);
    flex-shrink: 0;
    text-decoration: none;
}

.btn-icon:hover {
    background-color: var(--c-surface-alt);
    color: var(--c-text);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

/* Form Messages */
.form-message {
    margin-top: var(--sp-3);
    padding: var(--sp-3);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.form-message-success {
    background-color: var(--c-success-light);
    color: var(--c-success);
    border: 1px solid var(--c-success);
}

.form-message-error {
    background-color: var(--c-error-light);
    color: var(--c-error);
    border: 1px solid var(--c-error);
}

/* Cards */
.dashboard-card {
    background-color: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.dashboard-card .card-header {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
}

.dashboard-card .card-title {
    font-weight: 600;
    font-size: 13px;
    margin: 0;
    color: var(--c-text);
}

.dashboard-card .card-subtitle {
    font-size: 11px;
    color: var(--c-text-muted);
    margin-top: 2px;
}

.dashboard-card .card-body {
    padding: var(--sp-4);
}

/* Forms */
.dashboard-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}

.dashboard-form .form-row.full,
.dashboard-form .form-row:has(.form-group:only-child) {
    grid-template-columns: 1fr;
}

.dashboard-form .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    width: 100%;
}

.dashboard-form .form-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--c-text-muted);
    text-transform: uppercase;
}

.dashboard-form .form-input,
.dashboard-form select.form-input,
.dashboard-form textarea.form-input {
    height: var(--input-height-md);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 0 var(--sp-3);
    font-size: var(--text-base);
    color: var(--c-text);
    background-color: var(--c-surface);
    transition: border-color var(--transition-fast);
    width: 100%;
}

.dashboard-form textarea.form-input {
    height: auto;
    min-height: 80px;
    padding: var(--sp-3);
}

.dashboard-form .form-input:focus {
    outline: none;
    border-color: var(--c-text);
}

.dashboard-form .form-input:disabled {
    background-color: var(--c-surface-alt);
    color: var(--c-text-muted);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    position: relative;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background-color: var(--c-surface-alt);
}

.hamburger {
    width: 18px;
    height: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--c-text);
    border-radius: 2px;
    left: 0;
    transition: all 0.2s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 5px; }
.hamburger span:nth-child(3) { top: 10px; }

.mobile-menu-btn.active .hamburger span:nth-child(1) {
    top: 5px;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    top: 5px;
    transform: rotate(-45deg);
}

/* Badge System */
.wl-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 1;
}

.wl-badge svg {
    display: block;
    flex-shrink: 0;
}

.wl-badge:hover svg {
    transform: scale(1.1);
    transition: transform 150ms ease;
}

.wl-badge--verified svg {
    fill: #1D9BF0 !important;
}

/* Email Verified Icon - Inside input field (like admin panel) */
.wl-email-verified {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.wl-email-verified svg {
    width: 16px;
    height: 16px;
    fill: #16a34a;
}

/* Email input wrapper for positioning */
.email-input-with-badge {
    position: relative;
    display: flex;
    align-items: center;
}

.email-input-with-badge input {
    padding-right: 40px;
}

.user-name-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    vertical-align: middle;
}

.social-provider-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.social-connect-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--sp-3) var(--sp-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    min-height: 56px;
    transition: all var(--transition-fast);
}

.social-connect-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* =========================================
   6. FRONT PAGE HERO
   ========================================= */
body.home,
body.home #main,
body.home .site-wrapper {
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
}

@media (min-width: 992px) {
    body.home .site-header {
        position: absolute;
        width: 100%;
        top: 0;
        z-index: 100;
        background: transparent !important;
        border: none !important;
    }
}

.integration-hero-wrapper {
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.integration-hero {
    position: relative;
    padding: 120px 0 60px;
    font-family: var(--font-sans);
    color: #1e293b;
    width: 100%;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.hero-title {
    font-size: clamp(32px, 7vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin: 0 0 24px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    color: #64748b;
    line-height: 1.6;
    margin: 0 auto 40px;
    max-width: 700px;
}

.hero-btn {
    background: #0f172a;
    color: #fff;
    border: 0;
    padding: 18px 40px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.hero-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.2);
}

.icon-carousel-wrap {
    margin-top: 80px;
    position: relative;
    padding: 20px 0;
    overflow: hidden;
    width: 100vw;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.icon-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    width: max-content;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.icon-card {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-card:hover {
    transform: scale(1.15) translate3d(0, 0, 0);
    z-index: 10;
    border-color: #3b82f6;
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.2);
}

.icon-card svg {
    width: 34px;
    height: 34px;
}

.scroll-left { animation: scrollL 50s linear infinite; }
.scroll-right { animation: scrollR 50s linear infinite; }

@keyframes scrollL {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes scrollR {
    0% { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

.fade-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    pointer-events: none;
    z-index: 5;
}

.fade-overlay.left {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
}

.fade-overlay.right {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
}

@media (max-width: 768px) {
    .container {
        padding-inline: var(--sp-3);
    }

    .integration-hero {
        padding: 40px 0;
    }

    .hero-title {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: clamp(28px, 6vw, 36px); }
    .icon-card { width: 56px; height: 56px; }
    .icon-card svg { width: 28px; height: 28px; }
}

