/*
   Inlinkfy Platform Custom Styling for Bootstrap RTL
   Compatible with Laravel Blade and Static Projects
*/

:root {
    --bg-dark: #030712;
    --bg-card: #0b0f19;
    --border-slate: #1f2937;
    --color-primary: #8b5cf6;
    --color-secondary: #d946ef;
    --color-accent: #f43f5e;
}

body {
    background-color: var(--bg-dark);
    color: #f3f4f6;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

/* Glassmorphism Navigation */
.glass-header {
    background: rgba(3, 7, 18, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1030 !important;
}

/* Gradients text & backgrounds */
.text-gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #f472b6 50%, #fde047 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-brand {
    background: linear-gradient(135deg, var(--color-primary) 0%, #6366f1 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
}

/* Cards & Sections */
.custom-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-slate);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.custom-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.08);
}

.sec-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Interactive elements */
.nav-link-custom {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link-custom.active {
    background-color: var(--color-primary);
}

/* Gaps and alignments */
.arabic-rtl {
    direction: rtl;
    text-align: right;
}

/* Styled Inputs */
.form-input-custom {
    background-color: rgba(3, 7, 18, 0.6) !important;
    border: 1px solid var(--border-slate) !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.form-input-custom:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
    background-color: rgba(3, 7, 18, 0.8) !important;
}

/* Ambient glows */
.glow-spot {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

/* FAQ Accordions Custom */
.faq-item-custom {
    background-color: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--border-slate);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.faq-trigger {
    padding: 20px;
    background: transparent;
    width: 100%;
    border: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-trigger:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.faq-body-content {
    padding: 0 20px 20px 20px;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.7;
    display: none;
}

/* Analytics Graph mockup styled */
.bar-chart-container {
    height: 192px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
    gap: 8px;
}

.chart-grid-line {
    position: absolute;
    left: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    cursor: pointer;
}

.bar-visual {
    width: 100%;
    background: linear-gradient(0deg, rgba(139, 92, 246, 0.5) 0%, var(--color-secondary) 100%);
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.bar-wrapper:hover .bar-visual {
    background: linear-gradient(0deg, var(--color-primary) 0%, #f472b6 100%);
    filter: brightness(1.2);
}

.bar-label {
    font-size: 9px;
    color: #6b7280;
    margin-top: 4px;
    font-family: monospace;
}

/* Buttons style override */
.btn-brand-primary {
    background: linear-gradient(135deg, var(--color-primary), #6366f1);
    color: white !important;
    font-weight: bold;
    border-radius: 14px;
    padding: 12px 28px;
    border: none;
    transition: all 0.2s ease;
}

.btn-brand-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

/* Mobile drawer — fixed overlay */
#mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1029;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    max-height: 100vh;
    background: rgba(3, 7, 18, 0.97) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}

#mobile-drawer.open {
    transform: translateY(0);
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    pointer-events: auto;
}

/* Mobile drawer backdrop overlay */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1028;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* Hide desktop navbar elements on mobile */
@media (max-width: 767.98px) {
    .glass-header .navbar-collapse {
        display: none !important;
    }
    .glass-header .container {
        flex-wrap: nowrap;
    }
}

/* --- Styled Branded Footer Tailwind utility overrides --- */
.bg-slate-950 {
    background-color: #020617 !important;
}
.border-slate-900 {
    border-color: #0f172a !important;
}
.border-t {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.py-12 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
.max-w-7xl {
    max-width: 80rem !important;
}
.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}
.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}
.gap-3 {
    gap: 0.75rem !important;
}
.gap-4 {
    gap: 1rem !important;
}
.gap-8 {
    gap: 2rem !important;
}
.space-y-2 > * + * {
    margin-top: 0.5rem !important;
}
.mb-4 {
    margin-bottom: 1rem !important;
}
.mb-12 {
    margin-bottom: 3rem !important;
}
.text-slate-400 {
    color: #94a3b8 !important;
}
.text-slate-500 {
    color: #64748b !important;
}
.text-slate-600 {
    color: #475569 !important;
}
.text-xs {
    font-size: 0.75rem !important;
}
.text-sm {
    font-size: 0.875rem !important;
}
.text-lg {
    font-size: 1.125rem !important;
}
.text-\[10px\] {
    font-size: 10px !important;
}
.hover\:text-violet-400:hover {
    color: #a78bfa !important;
}
.bg-gradient-to-tr {
    background: linear-gradient(135deg, var(--color-primary), #d946ef) !important;
}
.from-brand-primary {
    background-color: var(--color-primary) !important;
}
.to-brand-secondary {
    background-color: var(--color-secondary) !important;
}
.font-black {
    font-weight: 900 !important;
}
.tracking-tight {
    letter-spacing: -0.025em !important;
}
.leading-relaxed {
    line-height: 1.625 !important;
}
.grid {
    display: grid !important;
}
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    .sm\:px-8 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}
@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* ═══════════════════════════════════════════
   Language Switcher Dropdown
   ═══════════════════════════════════════════ */
.lang-flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.lang-dropdown-toggle:hover {
    background-color: rgba(139, 92, 246, 0.1) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.lang-dropdown-menu {
    min-width: 160px;
    border-radius: 12px;
    background-color: #0b0f19 !important;
}

.lang-dropdown-menu .dropdown-item {
    transition: all 0.2s ease;
}

.lang-dropdown-menu .dropdown-item:hover {
    background-color: rgba(139, 92, 246, 0.1);
}

.lang-dropdown-menu .dropdown-item.active {
    background-color: rgba(139, 92, 246, 0.08);
}
