/* ============================================================
   iXress — Custom Styles
   Tailwind CDN ile birlikte çalışır; sadece özel tanımlar burada.
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────── */
body             { font-family: 'Inter', sans-serif; }
.font-display    { font-family: 'Barlow', sans-serif; }
.lang-zh,
.lang-zh body    { font-family: 'Noto Sans SC', sans-serif; }

/* ── Glass Effect ───────────────────────────────────────── */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.dark .glass {
    background: rgba(17, 24, 39, 0.7);
}

/* ── Gradient Text ──────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Mesh Background ────────────────────────────────────── */
.mesh-bg {
    background-image:
        radial-gradient(at 40% 20%, hsla(217,91%,60%,0.1)  0px, transparent 50%),
        radial-gradient(at 80%  0%, hsla(189,100%,56%,0.1) 0px, transparent 50%),
        radial-gradient(at  0% 50%, hsla(271,91%,65%,0.1)  0px, transparent 50%);
}
.dark .mesh-bg {
    background-image:
        radial-gradient(at 40% 20%, hsla(217,91%,60%,0.15)  0px, transparent 50%),
        radial-gradient(at 80%  0%, hsla(189,100%,56%,0.15) 0px, transparent 50%),
        radial-gradient(at  0% 50%, hsla(271,91%,65%,0.15)  0px, transparent 50%);
}

/* ── Feature Cards ──────────────────────────────────────── */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}
.dark .feature-card:hover {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* ── Counter ────────────────────────────────────────────── */
.counter-value {
    transition: all 0.5s ease-out;
}

/* ── Scroll-to-Top Button ───────────────────────────────── */
#scrollTopBtn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}
#scrollTopBtn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ── Currency Switcher ──────────────────────────────────── */
.currency-switcher-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.currency-switcher-wrapper select {
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.dark .currency-switcher-wrapper select {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}
.currency-switcher-wrapper select:focus {
    border-color: #2563eb;
}

.currency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #22c55e;
    margin-top: 0.5rem;
    justify-content: center;
}
.dark .currency-badge { color: #4ade80; }
.currency-badge .dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ── Price transition ───────────────────────────────────── */
[data-price-value] {
    transition: opacity 0.3s ease;
}

/* ── RTL: ok ikonları ───────────────────────────────────── */
[dir="rtl"] .fa-arrow-right   { transform: scaleX(-1); }
[dir="rtl"] .fa-arrow-left    { transform: scaleX(-1); }
[dir="rtl"] .fa-chevron-right { transform: scaleX(-1); }
[dir="rtl"] .fa-chevron-left  { transform: scaleX(-1); }

/* ============================================================
   Navbar — Products / Solutions Dropdowns + Mobile Menu
   ============================================================ */

.nav-link {
    font-size: .875rem;
    font-weight: 500;
    color: #374151;
    transition: color .2s;
    padding: .5rem .25rem;
}
.nav-link:hover { color: #2563eb; }
.dark .nav-link { color: #d1d5db; }
.dark .nav-link:hover { color: #60a5fa; }

.nav-dropdown { position: relative; }

.nav-drop-btn {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .875rem;
    font-weight: 500;
    color: #374151;
    padding: .5rem .8rem;
    border-radius: .75rem;
    transition: all .2s;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-drop-btn:hover { background: rgba(37, 99, 235, .08); color: #2563eb; }
.dark .nav-drop-btn { color: #d1d5db; }
.dark .nav-drop-btn:hover { background: rgba(96, 165, 250, .12); color: #60a5fa; }
.nav-drop-btn .fa-chevron-down { transition: transform .25s; font-size: .6rem; }
.nav-dropdown.open .nav-drop-btn .fa-chevron-down { transform: rotate(180deg); }
.nav-dropdown.open .nav-drop-btn { color: #2563eb; }
.dark .nav-dropdown.open .nav-drop-btn { color: #60a5fa; }

.nav-drop-menu {
    position: absolute;
    top: calc(100% + .4rem);
    left: 50%;
    transform: translate(-50%, .5rem);
    min-width: 17rem;
    padding: .5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 60;
}
/* Invisible bridge over the button→menu gap: keeps :hover alive
   while the cursor travels down to the items. */
.nav-drop-menu::before {
    content: '';
    position: absolute;
    top: -0.8rem;
    left: -0.5rem;
    right: -0.5rem;
    height: 0.8rem;
}
.dark .nav-drop-menu {
    background: #0f172a;
    border-color: #1f2937;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .65);
}
.nav-drop-menu-wide { min-width: 23rem; }

.nav-dropdown.open .nav-drop-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
@media (min-width: 1024px) and (hover: hover) {
    .nav-dropdown:hover .nav-drop-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }
}

.nav-drop-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .65rem .75rem;
    border-radius: .75rem;
    transition: background .15s;
}
.nav-drop-item:hover { background: #eff6ff; }
.dark .nav-drop-item:hover { background: #1e293b; }
.nav-drop-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.nav-drop-title { font-weight: 700; font-size: .9rem; color: #111827; line-height: 1.3; }
.dark .nav-drop-title { color: #f9fafb; }
.nav-drop-desc { font-size: .72rem; color: #6b7280; line-height: 1.35; margin-top: .1rem; }
.dark .nav-drop-desc { color: #9ca3af; }

.nav-drop-sep { height: 1px; background: #e5e7eb; margin: .4rem .5rem; }
.dark .nav-drop-sep { background: #1f2937; }

/* Mobile menü grupları */
.mobile-group-btn .fa-chevron-down { transition: transform .25s; font-size: .7rem; }
.mobile-group-btn.open .fa-chevron-down { transform: rotate(180deg); }
#mobileMenu { max-height: calc(100vh - 5rem); overflow-y: auto; }

/* Plan "hediye" rozeti */
.gift-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #047857;
    border-radius: .75rem;
    padding: .5rem .9rem;
    color: #fef3c7;
    font-weight: 700;
}