/* ============================================================
   jshook.online — Custom Dark Tech Theme
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
    --color-bg-primary: #0a0a0f;
    --color-bg-card: #12121a;
    --color-bg-elevated: #1a1a2e;
    --color-bg-surface: #22223a;
    --color-accent-cyan: #00d4ff;
    --color-accent-purple: #7c3aed;
    --color-accent-green: #10b981;
    --color-text-primary: #e4e4e7;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #52525b;
    --color-border: #27272a;
    --color-code-bg: #1e1e2e;
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-purple: 0 0 20px rgba(124, 58, 237, 0.3);
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* ── Base ──────────────────────────────────────────────── */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* ── Dot Grid Background Pattern ──────────────────────── */
.dot-grid-bg {
    background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ── Navigation Links ─────────────────────────────────── */
.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a1a1aa;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}
.nav-link:hover {
    color: #e4e4e7;
    background: rgba(255,255,255,0.05);
}
.nav-active {
    color: var(--color-accent-cyan) !important;
    background: rgba(0, 212, 255, 0.08);
}

/* ── Dropdown Links ───────────────────────────────────── */
.dropdown-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #a1a1aa;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    text-decoration: none;
}
.dropdown-link:hover {
    color: #e4e4e7;
    background: rgba(0, 212, 255, 0.08);
}

/* ── Mobile Nav Links ─────────────────────────────────── */
.mobile-nav-link {
    display: block;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #a1a1aa;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    text-decoration: none;
}
.mobile-nav-link:hover {
    color: #e4e4e7;
    background: rgba(255,255,255,0.05);
}

/* ── Footer Links ─────────────────────────────────────── */
.footer-link {
    color: #71717a;
    transition: color 0.2s ease;
    text-decoration: none;
}
.footer-link:hover {
    color: var(--color-accent-cyan);
}
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.05);
    color: #71717a;
    transition: all 0.2s ease;
    text-decoration: none;
}
.footer-social:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--color-accent-cyan);
}

/* ── Glassmorphism Card ───────────────────────────────── */
.glass-card {
    background: rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

/* ── Glow Effect ──────────────────────────────────────── */
.glow-cyan {
    box-shadow: var(--glow-cyan);
}
.glow-purple {
    box-shadow: var(--glow-purple);
}
.glow-green {
    box-shadow: var(--glow-green);
}

/* ── Gradient Text ─────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── CTA Button ───────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-accent-cyan), #0090b3);
    color: #0a0a0f;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--color-accent-cyan);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}
.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--color-accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* ── Badge ────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    border-radius: 9999px;
}
.badge-cyan {
    background: rgba(0, 212, 255, 0.1);
    color: var(--color-accent-cyan);
    border: 1px solid rgba(0, 212, 255, 0.2);
}
.badge-purple {
    background: rgba(124, 58, 237, 0.1);
    color: var(--color-accent-purple);
    border: 1px solid rgba(124, 58, 237, 0.2);
}
.badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ── Code Block ───────────────────────────────────────── */
.code-block {
    background: var(--color-code-bg);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    overflow-x: auto;
}

/* ── Terminal Style Section ───────────────────────────── */
.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    background: #1a1a2e;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0.75rem 0.75rem 0 0;
}
.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* ── Product Card ─────────────────────────────────────── */
.product-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}
.product-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
    transform: translateY(-4px);
}
.product-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── Stats Counter ────────────────────────────────────── */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Feature Card with Icon ───────────────────────────── */
.feature-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ── Process Timeline ─────────────────────────────────── */
.timeline-step {
    position: relative;
    padding-left: 3rem;
}
.timeline-step::before {
    content: '';
    position: absolute;
    left: 0.9375rem;
    top: 2.5rem;
    bottom: -1.5rem;
    width: 2px;
    background: var(--color-border);
}
.timeline-step:last-child::before {
    display: none;
}
.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-purple));
    color: #0a0a0f;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ── FAQ Accordion ────────────────────────────────────── */
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item.active {
    border-color: rgba(0, 212, 255, 0.3);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: var(--color-bg-card);
    transition: background 0.2s ease;
    width: 100%;
    border: none;
    color: var(--color-text-primary);
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 500;
}
.faq-question:hover {
    background: var(--color-bg-elevated);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.25rem 1rem;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ── Blog Article Styles ──────────────────────────────── */
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e4e4e7;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}
.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e4e4e7;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.article-content p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.article-content a {
    color: var(--color-accent-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-content a:hover {
    color: #fff;
}
.article-content ul,
.article-content ol {
    color: var(--color-text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.article-content li {
    margin-bottom: 0.375rem;
    line-height: 1.7;
}
.article-content pre {
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}
.article-content pre code {
    display: block;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
}
.article-content code:not(pre code) {
    background: rgba(0, 212, 255, 0.08);
    color: var(--color-accent-cyan);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.85em;
    font-family: 'JetBrains Mono', monospace;
}
.article-content blockquote {
    border-left: 3px solid var(--color-accent-cyan);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: rgba(0, 212, 255, 0.03);
    border-radius: 0 0.5rem 0.5rem 0;
    color: var(--color-text-secondary);
    font-style: italic;
}
.article-content img {
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    display: block;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.article-content th,
.article-content td {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-border);
    text-align: left;
    font-size: 0.875rem;
}
.article-content th {
    background: var(--color-bg-elevated);
    font-weight: 600;
    color: #e4e4e7;
}

/* ── Form Inputs ──────────────────────────────────────── */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    color: var(--color-text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    outline: none;
}
.form-input:focus {
    border-color: var(--color-accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.form-input::placeholder {
    color: var(--color-text-muted);
}
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 0.375rem;
}

/* ── GSAP Animation Helpers ───────────────────────────── */
.gsap-fade-up {
    opacity: 0;
    transform: translateY(30px);
}
.gsap-fade-left {
    opacity: 0;
    transform: translateX(-30px);
}
.gsap-fade-right {
    opacity: 0;
    transform: translateX(30px);
}
.gsap-scale-in {
    opacity: 0;
    transform: scale(0.9);
}

/* ── Shimmer / Skeleton Loading ────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--color-bg-card) 25%, var(--color-bg-elevated) 50%, var(--color-bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
    color: transparent !important;
}
.skeleton * { visibility: hidden; }

/* Shimmer text block placeholder */
.skeleton-text {
    background: linear-gradient(90deg, var(--color-bg-card) 25%, var(--color-bg-elevated) 50%, var(--color-bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 0.25rem;
    height: 0.875rem;
    margin-bottom: 0.5rem;
}
.skeleton-text.w-3\/4 { width: 75%; }
.skeleton-text.w-1\/2 { width: 50%; }
.skeleton-text.w-2\/3 { width: 66.6%; }
.skeleton-text.h-6 { height: 1.5rem; }
.skeleton-text.h-4 { height: 1rem; }

/* Shimmer image placeholder */
.skeleton-image {
    background: linear-gradient(90deg, var(--color-bg-card) 25%, var(--color-bg-elevated) 50%, var(--color-bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 0.75rem;
    width: 100%;
    aspect-ratio: 16/9;
}

/* Shimmer avatar */
.skeleton-avatar {
    background: linear-gradient(90deg, var(--color-bg-card) 25%, var(--color-bg-elevated) 50%, var(--color-bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
}

/* Shimmer button */
.skeleton-btn {
    background: linear-gradient(90deg, var(--color-bg-card) 25%, var(--color-bg-elevated) 50%, var(--color-bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
    height: 2.5rem;
    width: 8rem;
}

/* Card skeleton composite */
.skeleton-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
}
.skeleton-card .skeleton-image { border-radius: 0; }
.skeleton-card .skeleton-body { padding: 1rem; }

/* Shimmer animation */
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fade-in when content loads (SEO-friendly progressive enhancement) */
.shimmer-loaded {
    animation: fadeInContent 0.3s ease-out forwards;
}
@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive Utilities ─────────────────────────────── */
@media (max-width: 640px) {
    .stat-number {
        font-size: 2rem;
    }
    .article-content h2 {
        font-size: 1.25rem;
    }
    .article-content h3 {
        font-size: 1.125rem;
    }
}
