/* ================================================================
   DataPulseX — Segmented Landing Pages Extension
   Specific styles for E-commerce and Real Estate Verticals
   ================================================================ */

:root {
    --ecom-primary: #F59E0B;
    --ecom-grad: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --ecom-shadow: 0 10px 40px rgba(245, 158, 11, 0.25);
    
    --imob-primary: #10B981;
    --imob-grad: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --imob-shadow: 0 10px 40px rgba(16, 185, 129, 0.25);
}

/* ── Specific Themes (DO NOT target .hero alone) ── */
.ecom-theme .hero, .imob-theme .hero {
    padding-top: 180px;
}

/* Hero Content for subpages */
.ecom-theme .hero-content, .imob-theme .hero-content {
    flex-direction: row !important;
    text-align: left !important;
    align-items: center !important;
    gap: 60px;
    max-width: 1240px;
    padding: 0 40px;
}

.ecom-theme .hero-copy, .imob-theme .hero-copy {
    text-align: left !important;
    max-width: 650px;
}

@media (max-width: 1024px) {
    .ecom-theme .hero-content, .imob-theme .hero-content {
        flex-direction: column !important;
        text-align: center !important;
    }
}

/* Sub-page elements */
.ecom-theme .hero-proof-row, .imob-theme .hero-proof-row {
    display: flex;
    gap: 20px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.hero-proof-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--r-lg);
    flex: 1;
    min-width: 160px;
    backdrop-filter: blur(10px);
}

.hero-proof-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Segment Hub (Home) - Keeping it safe */
.segment-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    margin-top: 46px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .segment-hub-grid { grid-template-columns: 1fr; }
}

.segment-card {
    background: linear-gradient(180deg, rgba(19, 20, 26, 0.96) 0%, rgba(12, 13, 18, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-2xl);
    padding: 0;
    display: grid;
    grid-template-rows: 190px auto;
    transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.segment-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, transparent 52%);
    opacity: 0;
    transition: opacity var(--t-mid);
    pointer-events: none;
}

.segment-card:hover {
    border-color: rgba(0, 212, 255, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 212, 255, 0.1);
}

.segment-card:hover::before {
    opacity: 1;
}

.segment-card-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 24px 22px;
}

.segment-card .module-tag {
    margin-bottom: 4px;
}

.segment-card .module-title {
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.15;
    margin-bottom: 0;
}

.segment-card .module-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-2);
    margin-bottom: 2px;
}

.segment-card-actions {
    margin-top: 6px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.segment-card .btn-hero-primary,
.segment-card .btn-hero-ghost {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 12px;
}

.segment-card .btn-hero-primary {
    width: 100%;
    justify-content: center;
}

.segment-card-visual {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    height: 190px;
}

.segment-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.02);
    transition: transform 0.45s ease;
}

.segment-card:hover .segment-card-visual img {
    transform: scale(1.07);
}

/* Proof Band (Subpages) */
.proof-band {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .proof-band { grid-template-columns: 1fr; padding: 40px 24px; }
}

/* FAQ */
.segment-faq {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
}

@media (max-width: 900px) {
    .segment-faq { grid-template-columns: 1fr; gap: 40px; }
}

/* Themes and generic but safe sub-page helpers */
.ecom-theme .grad-text { background: var(--ecom-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.imob-theme .grad-text { background: var(--imob-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Modules only used in subpages */
.ecom-theme .hero-side-stack, .imob-theme .hero-side-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.insight-card {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--r-lg);
    padding: 24px;
}
