/* Nexdesk Features Page Styles */
/* Version: 1.0 */

:root {
    --nex-blue-500: #3b82f6;
    --nex-blue-600: #2563eb;
    --nex-purple-500: #8b5cf6;
    --nex-purple-600: #7c3aed;
    --nex-green-500: #22c55e;
    --nex-yellow-500: #eab308;
    --nex-foreground: #0f172a;
    --nex-muted: #f1f5f9;
    --nex-muted-foreground: #64748b;
    --nex-border: #e2e8f0;
    --nex-card-bg: #ffffff;
    --nex-background: #ffffff;
}

/* Container */
.nexdesk-features-page .container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nexdesk-features-page .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nexdesk-features-page .container {
        padding: 0 2rem;
    }
}
/* Force centering against Astra/child overrides on this template */
body.page-template-page-features .nexdesk-features-page .container {
    max-width: 76rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Hero Section */
.features-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.hero-gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--nex-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

.gradient-text {
    background: linear-gradient(to right, var(--nex-blue-500), var(--nex-purple-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--nex-muted-foreground);
    line-height: 1.75;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.badge-secondary {
    background-color: var(--nex-muted);
    color: var(--nex-foreground);
}

.badge-outline {
    background-color: transparent;
    border: 1px solid var(--nex-border);
    color: var(--nex-muted-foreground);
}

.badge-sm {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
}

.badge .icon-zap {
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.25rem;
}

/* Icons */
.icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--nex-blue-500);
}

.icon-sm {
    width: 1rem;
    height: 1rem;
    color: var(--nex-muted-foreground);
}

/* Main Features Section */
.main-features {
    padding: 5rem 0;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .feature-row {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-row-reverse .feature-content {
    order: 1;
}

.feature-row-reverse .feature-visual {
    order: 2;
}

@media (min-width: 1024px) {
    .feature-row-reverse .feature-content {
        order: 2;
    }
    
    .feature-row-reverse .feature-visual {
        order: 1;
    }
}

/* Feature Content */
.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nex-foreground);
    margin: 0;
}

.feature-description {
    color: var(--nex-muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background-color: rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon svg {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--nex-green-500);
}

.benefits-list span {
    color: var(--nex-foreground);
}

/* Cards */
.card {
    background-color: var(--nex-card-bg);
    border: 1px solid var(--nex-border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.card-content {
    padding: 1.5rem;
}

/* Visual Header */
.visual-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nex-muted-foreground);
    margin-bottom: 1rem;
}

/* Ticket List (Forum Visual) */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background-color: var(--nex-muted);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.ticket-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
}

.status-active {
    background-color: var(--nex-green-500);
}

.status-pending {
    background-color: var(--nex-yellow-500);
}

.status-resolved {
    background-color: var(--nex-blue-500);
}

.ticket-num {
    font-size: 0.875rem;
    font-weight: 500;
}

.ticket-user {
    font-size: 0.875rem;
    color: var(--nex-muted-foreground);
}

/* Modes Visual */
.modes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mode-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mode-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--nex-muted-foreground);
}

.mode-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--nex-muted);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.mode-avatar {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.mode-avatar.blue {
    background-color: var(--nex-blue-500);
}

.mode-avatar.purple {
    background-color: var(--nex-purple-500);
}

.mode-name {
    font-size: 0.75rem;
    font-weight: 500;
}

.mode-message {
    font-size: 0.75rem;
    color: var(--nex-muted-foreground);
    margin: 0;
    padding: 0 0.75rem;
}

/* Analytics Visual */
.analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.analytics-title {
    font-size: 0.875rem;
    font-weight: 500;
}

.period-badges {
    display: flex;
    gap: 0.5rem;
}

.chart-bars {
    height: 8rem;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--nex-blue-500), var(--nex-purple-600));
    border-radius: 0.25rem 0.25rem 0 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nex-foreground);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--nex-muted-foreground);
}

/* Transcripts Visual */
.filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.transcript-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.transcript-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background-color: var(--nex-muted);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.transcript-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transcript-id {
    font-size: 0.875rem;
    font-weight: 500;
}

.transcript-date {
    font-size: 0.75rem;
    color: var(--nex-muted-foreground);
}

.transcript-messages {
    font-size: 0.75rem;
    color: var(--nex-muted-foreground);
}

/* Categories Visual */
.templates-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nex-muted-foreground);
    margin-bottom: 0.5rem;
}

.templates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.template-item {
    background-color: var(--nex-muted);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.template-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
}

.template-count {
    display: block;
    font-size: 0.75rem;
    color: var(--nex-muted-foreground);
}

.templates-note {
    font-size: 0.75rem;
    color: var(--nex-muted-foreground);
    text-align: center;
    margin: 0;
}

/* Activation Visual */
.activation-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activation-step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--nex-green-500);
}

.step-title {
    font-size: 0.875rem;
    font-weight: 500;
}

.step-desc {
    font-size: 0.75rem;
    color: var(--nex-muted-foreground);
}

/* HQ Features Section */
.hq-features {
    padding: 5rem 0;
    background-color: rgba(241, 245, 249, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--nex-foreground);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--nex-muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

.hq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .hq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hq-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hq-card {
    background-color: var(--nex-card-bg);
    border: 1px solid var(--nex-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.hq-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.hq-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--nex-foreground);
    margin-bottom: 0.5rem;
}

.hq-card-desc {
    font-size: 0.875rem;
    color: var(--nex-muted-foreground);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
}

.cta-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--nex-foreground);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--nex-muted-foreground);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(to right, var(--nex-blue-500), var(--nex-purple-600));
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 2rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-button:hover {
    background: linear-gradient(to right, var(--nex-blue-600), var(--nex-purple-600));
    color: white;
}

.telegram-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.arrow-icon {
    width: 1rem;
    height: 1rem;
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .nexdesk-features-page {
        --nex-foreground: #f8fafc;
        --nex-muted: #1e293b;
        --nex-muted-foreground: #94a3b8;
        --nex-border: #334155;
        --nex-card-bg: #0f172a;
        --nex-background: #020617;
    }
    
    .hq-features {
        background-color: rgba(30, 41, 59, 0.5);
    }
}

body.page-template-page-features .nx-header .nx-container,
body.page-template-page-features .nx-footer .nx-container {
    max-width: 76rem !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

.nexdesk-features .nf-container {
    max-width: 76rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 1rem !important;
}

.nexdesk-features .nf-feature-stack { gap: 24px; }
.nexdesk-features .nf-feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: start;
}
.nexdesk-features .nf-feature.is-reverse {
    grid-template-columns: 1fr 1.1fr;
}
.nexdesk-features .nf-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 24px;
}
.nexdesk-features .nf-section { padding: 48px 0; }
.nexdesk-features .nf-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nexdesk-features .nf-max2 {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 1023px) {
    .nexdesk-features .nf-feature,
    .nexdesk-features .nf-feature.is-reverse {
        grid-template-columns: 1fr;
    }
}

body.page-template-page-features .site-content .ast-container,
body.page-template-page-features #content .ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.page-template-page-features #primary {
    margin: 0 !important;
    padding: 0 !important;
}
body.page-template-page-features .nexdesk-features {
    width: 100% !important;
}

/* Ensure all .container blocks on the Features template are centered */
body.page-template-page-features .container {
    max-width: 76rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Sync with global .container rule that uses --content-maxw */
body.page-template-page-features {
    --content-maxw: 76rem;
}

/* Robust Astra wrappers reset to full width on features template */
body.page-template-page-features .site-content,
body.page-template-page-features #content,
body.page-template-page-features .content-area,
body.page-template-page-features .entry-content,
body.page-template-page-features .inside-article {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* FEATURES: force Astra into 1-column (no sidebar spacing) */
body.page-template-page-features .site-content .ast-container {
  display: block !important;
}

body.page-template-page-features #primary,
body.page-template-page-features .content-area,
body.page-template-page-features .site-main {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

body.page-template-page-features #secondary {
  display: none !important;
}
