/* ====================================================================
   TRABify - Dynamic Color System & Custom Landing Page Showcase Styles
   Adaptive to Vuexy Theme Customizer & Dynamic Primary Color Variables
   ==================================================================== */

:root {
    --rab-primary: var(--bs-primary, #7367f0);
    --rab-primary-rgb: var(--bs-primary-rgb, 115, 103, 240);
    --rab-primary-gradient: linear-gradient(135deg, var(--bs-primary, #7367f0) 0%, rgba(var(--bs-primary-rgb, 115, 103, 240), 0.78) 100%);
    --rab-success-gradient: linear-gradient(135deg, #28c76f 0%, #48da89 100%);
    --rab-info-gradient: linear-gradient(135deg, #00bad1 0%, #2bd0e4 100%);
    --rab-warning-gradient: linear-gradient(135deg, #ff9f43 0%, #ffb66e 100%);
    --rab-danger-gradient: linear-gradient(135deg, #ea5455 0%, #f07b7b 100%);
    --rab-dark-gradient: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Smooth Scrolling & Section Layouts */
html {
    scroll-behavior: smooth;
}

body.landing-page-body {
    background-color: var(--bs-body-bg, #f8f7fa);
    overflow-x: hidden;
}

/* Modern Navbar */
.landing-navbar-custom {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background-color: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(var(--bs-primary-rgb, 115, 103, 240), 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    margin-top: 0.75rem;
}

[data-bs-theme="dark"] .landing-navbar-custom,
html.dark-style .landing-navbar-custom {
    background-color: rgba(47, 51, 73, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.landing-navbar-custom.navbar-active {
    box-shadow: 0 12px 32px -8px rgba(var(--bs-primary-rgb, 115, 103, 240), 0.22);
}

/* Brand Logo */
.rab-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--bs-heading-color, #2f3349);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.rab-brand-logo svg path[data-brand-shape="primary"] {
    fill: var(--bs-primary, #7367f0);
    transition: fill 0.3s ease;
}

.rab-brand-logo .brand-badge {
    background: var(--rab-primary-gradient);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb, 115, 103, 240), 0.35);
}

/* Hero Section */
.hero-wrapper-custom {
    position: relative;
    padding: 8.5rem 0 5rem;
    background: radial-gradient(100% 100% at 50% 0%, rgba(var(--bs-primary-rgb, 115, 103, 240), 0.14) 0%, rgba(var(--bs-primary-rgb, 115, 103, 240), 0) 100%);
    overflow: hidden;
}

[data-bs-theme="dark"] .hero-wrapper-custom,
html.dark-style .hero-wrapper-custom {
    background: radial-gradient(100% 100% at 50% 0%, rgba(var(--bs-primary-rgb, 115, 103, 240), 0.2) 0%, rgba(47, 51, 73, 0) 100%);
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.15rem;
    background: rgba(var(--bs-primary-rgb, 115, 103, 240), 0.1);
    color: var(--bs-primary, #7367f0);
    border: 1px solid rgba(var(--bs-primary-rgb, 115, 103, 240), 0.28);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.hero-pill-badge:hover {
    background: rgba(var(--bs-primary-rgb, 115, 103, 240), 0.16);
    border-color: var(--bs-primary, #7367f0);
    transform: translateY(-2px);
}

.hero-main-title {
    font-size: calc(1.8rem + 1.6vw);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: var(--bs-heading-color, #2f3349);
    margin-bottom: 1.25rem;
}

.hero-main-title .gradient-text {
    background: linear-gradient(135deg, var(--bs-primary, #7367f0) 0%, #00bad1 50%, #28c76f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--bs-secondary-color, #64748b);
    max-width: 680px;
    margin: 0 auto 2.25rem;
}

/* Floating Stats & Showcase Cards */
.hero-mockup-frame {
    position: relative;
    max-width: 1100px;
    margin: 3rem auto 0;
    background: var(--bs-card-bg, #ffffff);
    border-radius: 24px;
    border: 1px solid rgba(var(--bs-primary-rgb, 115, 103, 240), 0.22);
    box-shadow: 0 30px 70px -15px rgba(var(--bs-primary-rgb, 115, 103, 240), 0.24);
    padding: 1rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

[data-bs-theme="dark"] .hero-mockup-frame,
html.dark-style .hero-mockup-frame {
    background: #2f3349;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.6);
}

.hero-mockup-inner {
    border-radius: 16px;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Feature Cards */
.rab-feature-card {
    background: var(--bs-card-bg, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

[data-bs-theme="dark"] .rab-feature-card,
html.dark-style .rab-feature-card {
    background-color: #2f3349;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
}

.rab-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(var(--bs-primary-rgb, 115, 103, 240), 0.25);
    border-color: rgba(var(--bs-primary-rgb, 115, 103, 240), 0.5);
}

.feature-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.rab-feature-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(3deg);
}

/* Workflow Step Box */
.workflow-step-card {
    background: var(--bs-card-bg, #ffffff);
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.75rem 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

[data-bs-theme="dark"] .workflow-step-card,
html.dark-style .workflow-step-card {
    background: #2f3349;
    border-color: rgba(255, 255, 255, 0.08);
}

.workflow-step-card:hover {
    transform: translateY(-6px);
    border-color: var(--bs-primary, #7367f0);
}

.workflow-number {
    position: absolute;
    top: -14px;
    left: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rab-primary-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(var(--bs-primary-rgb, 115, 103, 240), 0.4);
}

/* CTA Banner */
.rab-cta-banner {
    background: linear-gradient(135deg, var(--bs-primary, #7367f0) 0%, rgba(var(--bs-primary-rgb, 115, 103, 240), 0.85) 50%, #1e293b 100%);
    border-radius: 28px;
    padding: 4rem 2.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(var(--bs-primary-rgb, 115, 103, 240), 0.4);
    transition: all 0.3s ease;
}

.rab-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

/* Stats Counter Badge */
.stat-box-item {
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(var(--bs-primary-rgb, 115, 103, 240), 0.05);
    border: 1px solid rgba(var(--bs-primary-rgb, 115, 103, 240), 0.15);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box-item:hover {
    background: rgba(var(--bs-primary-rgb, 115, 103, 240), 0.12);
    border-color: var(--bs-primary, #7367f0);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(var(--bs-primary-rgb, 115, 103, 240), 0.2);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--bs-primary, #7367f0);
    line-height: 1.1;
    margin-bottom: 0.35rem;
    transition: color 0.3s ease;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-secondary-color, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Color Picker Dropdown in Navbar */
.theme-color-palette-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.theme-color-palette-btn:hover {
    transform: scale(1.2);
}

.theme-color-palette-btn.active {
    outline: 2px solid var(--bs-primary, #7367f0);
    outline-offset: 2px;
}

/* Footer Custom */
.landing-footer-custom {
    background-color: var(--bs-card-bg, #ffffff);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 4.5rem 0 2.5rem;
}

[data-bs-theme="dark"] .landing-footer-custom,
html.dark-style .landing-footer-custom {
    background-color: #23263b;
    border-top-color: rgba(255, 255, 255, 0.06);
}
