/* ==========================================================================
   LinkShort Reference Design System
   Matches image style: Clean Light Mode, Gradient Text, Feature Options Grid,
   Vibrant Purple-Blue accents, Rounded Card UI & Trust Badges.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Brand Color Palette - KlikO Colors */
    --brand-blue: #0052fe;
    --brand-cyan: #00d2ff;
    --brand-navy: #030f26;
    --brand-gradient: linear-gradient(135deg, #0052fe 0%, #00d2ff 100%);
    --brand-gradient-hover: linear-gradient(135deg, #0043d4 0%, #00bce6 100%);
    
    --primary: #0052fe;
    --primary-hover: #0043d4;
    --primary-light: rgba(0, 82, 254, 0.1);
    --bg-body-light: #f8fafc;
    --bg-card-light: #ffffff;
    --border-light: #e2e8f0;
    
    --text-dark: #0f172a;
    --text-muted: #64748b;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;
    --radius-pill: 9999px;

    --shadow-widget: 0 20px 45px -12px rgba(37, 99, 235, 0.12);
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.04);
}

[data-bs-theme="dark"] {
    --bg-body-light: #0b0f19;
    --bg-card-light: #161f30;
    --border-light: rgba(255, 255, 255, 0.08);
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --shadow-widget: 0 20px 50px rgba(0, 0, 0, 0.5);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body-light);
    color: var(--text-dark);
    transition: background-color 0.25s ease, color 0.25s ease;
    letter-spacing: -0.01em;
}

/* Background Floating Links Pattern Overlay */
.pattern-bg {
    background-image: radial-gradient(rgba(37, 99, 235, 0.06) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
}

/* Brand Navigation Bar - Floating Glassmorphic Header */
.navbar-linkshort {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-base);
}

.brand-icon-link {
    width: 40px;
    height: 40px;
    background: var(--brand-gradient);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
    transition: transform var(--transition-bounce);
}

.navbar-brand:hover .brand-icon-link {
    transform: rotate(-8deg) scale(1.08);
}

/* Nav Link Capsule Pills */
.nav-link-custom {
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.1rem !important;
    border-radius: var(--radius-pill);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link-custom:hover {
    color: var(--brand-blue) !important;
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.nav-link-custom.active {
    color: var(--brand-blue) !important;
    background: rgba(37, 99, 235, 0.12);
}

/* Theme Toggle Button Glass Capsule */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-bounce), border-color 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--brand-blue);
}

/* User Dropdown Capsule Button */
.user-dropdown-btn {
    background: var(--brand-gradient);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0.5rem 1.25rem;
    border: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-dropdown-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
}


/* Main Hero Typography */
.hero-title-strong {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .hero-title-strong {
        font-size: 2.2rem;
    }
}

/* Central Shortener Card Widget */
.shortener-widget-card {
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-widget);
    padding: 2rem;
}

.input-pill-wrapper {
    background-color: rgba(241, 245, 249, 0.8);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-bs-theme="dark"] .input-pill-wrapper {
    background-color: rgba(15, 23, 42, 0.6);
}

.input-pill-wrapper:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-paste {
    background: rgba(37, 99, 235, 0.08);
    color: var(--brand-blue);
    font-size: 0.825rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem;
    border: none;
    transition: background 0.2s ease;
}

.btn-paste:hover {
    background: rgba(37, 99, 235, 0.15);
    color: var(--brand-blue);
}

.btn-shorten-brand {
    background: var(--brand-gradient);
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.85rem 1.75rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-shorten-brand:hover {
    background: var(--brand-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
}

/* 4 Feature Option Cards inside Widget */
.feature-option-card {
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.1rem 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-option-card:hover, .feature-option-card.active {
    border-color: var(--brand-purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.12);
}

.option-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    font-size: 1.2rem;
}

.icon-circle-blue {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.icon-circle-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.icon-circle-purple {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.icon-circle-gold {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.option-title {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* CTA Pill Buttons below widget */
.btn-pill-brand {
    background: var(--brand-gradient);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.5rem;
    border: none;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.25);
}

.btn-pill-outline {
    background: #ffffff;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-light);
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.5rem;
    box-shadow: var(--shadow-subtle);
}

[data-bs-theme="dark"] .btn-pill-outline {
    background: #1e293b;
    color: #f8fafc !important;
}

/* Trust Badges */
.trust-badge-item {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Promo Banner Footer */
.promo-banner-bar {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    border-radius: var(--radius-lg);
    color: #ffffff;
    padding: 1.25rem 2rem;
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.3);
}

/* Stats Counter Grid */
.stat-counter-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

/* Fix Bootstrap Modal Backdrop z-index stacking conflict */
.modal {
    z-index: 1065 !important;
}

.modal-backdrop {
    z-index: 1055 !important;
}

