/* ============================================================
   HERO STYLES — Nexus AI
   ============================================================ */

/* ---- Page Hero (used across all pages) ---- */
.page-hero {
    position: relative;
    padding: calc(var(--navbar-height) + var(--space-16)) 0 var(--space-16);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero__title {
    margin-bottom: var(--space-4);
}

.page-hero__desc {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.page-hero__breadcrumb {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.page-hero__breadcrumb a {
    color: var(--color-text-secondary);
}

.page-hero__breadcrumb a:hover {
    color: var(--color-neon-primary);
}

/* ---- Home Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--navbar-height);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero__grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 99, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    opacity: 0.5;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 640px;
}

.hero__badge {
    margin-bottom: var(--space-6);
}

.hero__title {
    font-size: clamp(var(--text-4xl), 5.5vw, var(--text-7xl));
    font-weight: var(--font-black);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.03em;
    direction: ltr;          /* headline is English — prevent RTL body from mirroring */
    unicode-bidi: embed;
}

.hero__desc {
    font-size: clamp(var(--text-base), 1.5vw, var(--text-xl));
    line-height: 1.8;
    margin-bottom: var(--space-8);
    color: var(--color-text-secondary);
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

.hero__stats {
    display: flex;
    gap: var(--space-10);
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: var(--space-1);
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Hero Visual */
.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__visual-orb {
    width: clamp(300px, 30vw, 500px);
    height: clamp(300px, 30vw, 500px);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__visual-orb::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.2) 0%, rgba(0, 212, 255, 0.08) 50%, transparent 70%);
    animation: pulse-orb 4s ease-in-out infinite;
}

.hero__visual-orb::after {
    content: '';
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    border: 1px solid rgba(108, 99, 255, 0.2);
    animation: spin 25s linear infinite;
}

@keyframes pulse-orb {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.05); opacity: 0.8; }
}

.hero__visual-rings {
    position: absolute;
    inset: -20px;
}

.hero__visual-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.hero__visual-ring:nth-child(1) { inset: 0; animation: spin 30s linear infinite; }
.hero__visual-ring:nth-child(2) { inset: 20px; animation: spin 20s linear infinite reverse; border-style: dashed; }
.hero__visual-ring:nth-child(3) { inset: 40px; animation: spin 15s linear infinite; border-color: rgba(0, 212, 255, 0.1); }

.hero__visual-icon {
    font-size: clamp(4rem, 8vw, 6rem);
    color: var(--color-neon-primary);
    text-shadow: 0 0 40px rgba(108, 99, 255, 0.5);
    animation: float-glow 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Hero floating cards */
.hero__float-card {
    position: absolute;
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    z-index: 3;
    animation: float-card 8s ease-in-out infinite;
    white-space: nowrap;
}

.hero__float-card i {
    color: var(--color-neon-primary);
}

.hero__float-card:nth-child(1) {
    top: 15%;
    left: -10%;
    animation-delay: 0s;
}

.hero__float-card:nth-child(2) {
    bottom: 25%;
    right: -5%;
    animation-delay: 2s;
}

.hero__float-card:nth-child(3) {
    bottom: 10%;
    left: 5%;
    animation-delay: 4s;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ---- Single Post Hero ---- */
.single-post__hero {
    position: relative;
    padding: calc(var(--navbar-height) + var(--space-12)) 0 var(--space-8);
    overflow: hidden;
}

.single-post__hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.single-post__categories {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.single-post__title {
    margin-bottom: var(--space-6);
}

.single-post__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.single-post__author-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.single-post__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
}

.single-post__author-name {
    display: block;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
}

.single-post__date {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.single-post__share {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.single-post__share span {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.single-post__share a,
.single-post__share button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.single-post__share a:hover,
.single-post__share button:hover {
    background: rgba(108, 99, 255, 0.15);
    color: var(--color-neon-primary);
    transform: translateY(-2px);
}

/* Featured Image */
.single-post__featured {
    margin-top: var(--space-10);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.single-post__featured-img {
    width: 100%;
    border-radius: var(--radius-2xl);
    aspect-ratio: 16/7;
    object-fit: cover;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__content {
        max-width: 100%;
    }
    .hero__actions {
        justify-content: center;
    }
    .hero__stats {
        justify-content: center;
    }
    .hero__visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero__stats {
        gap: var(--space-6);
    }
    .hero__stat-number {
        font-size: var(--text-2xl);
    }
    .single-post__meta {
        flex-direction: column;
    }
}
