/* ===================================
   HERO SECTION - MOBILE FIRST DESIGN
   =================================== */

/* ===================================
   BASE STYLES (MOBILE)
   =================================== */
.hero {
    position: relative;
    padding: 80px 1rem 20px;
    overflow: hidden;
    background: #f8fafc;
    min-height: auto;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ===================================
   SYSTEM STATUS BAR
   =================================== */
.system-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    gap: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    flex-shrink: 0;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.status-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.status-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* ===================================
   DASHBOARD PREVIEW HEADER
   =================================== */
.dashboard-preview-header {
    text-align: center;
    margin-bottom: 2rem;
}

.preview-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.875rem;
    line-height: 1.2;
}

.title-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.preview-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================================
   QUICK STATS CARDS (MOBILE FIRST)
   =================================== */
.quick-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: var(--card-border);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--card-gap);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:active {
    transform: scale(0.98);
}

.stat-icon {
    width: var(--icon-box-size);
    height: var(--icon-box-size);
    background: var(--gradient-primary);
    border-radius: var(--icon-box-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.375rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-trend {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===================================
   LIVE PREVIEW SECTION
   =================================== */
.live-preview {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.live-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-secondary);
    gap: 1rem;
    flex-wrap: wrap;
}

.live-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
    flex-shrink: 0;
}

@keyframes pulse-red {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.live-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* ===================================
   OPPORTUNITIES LIST
   =================================== */
.opportunities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.opportunity-item {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.opportunity-item:active {
    transform: scale(0.98);
    background: white;
}

.opportunity-main {
    flex: 1;
    min-width: 0;
}

.opportunity-brand {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.opportunity-details {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-weight: 500;
    line-height: 1.4;
}

.opportunity-price-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.opportunity-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.opportunity-discount {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    white-space: nowrap;
}

/* ===================================
   LOADING STATE
   =================================== */
.opportunities-loading {
    text-align: center;
    padding: 2.5rem 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.opportunities-loading p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ===================================
   PREVIEW CTA BUTTON
   =================================== */
.preview-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 1.125rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.preview-cta:active {
    transform: scale(0.98);
}

.preview-cta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===================================
   TRUST INDICATORS
   =================================== */
.trust-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-icon {
    color: #10b981;
    font-weight: 700;
    font-size: 1rem;
}

/* ===================================
   TABLET BREAKPOINT (640px+)
   =================================== */
@media (min-width: 640px) {
    .hero {
        padding: 100px 1.5rem 30px;
    }

    .system-status {
        padding: 1.125rem 1.5rem;
    }

    .preview-title {
        font-size: 2.25rem;
    }

    .title-icon {
        font-size: 2.5rem;
    }

    .preview-subtitle {
        font-size: 1rem;
        max-width: 550px;
    }

    /* Stats in 3 columns on tablet */
    .quick-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--card-gap);
    }

    .stat-card {
        padding: 1.5rem var(--card-padding);
    }

    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--card-shadow-hover);
        border-color: #d1d5db;
    }

    .stat-card:hover::before {
        transform: scaleX(1);
    }

    .stat-card:hover .stat-icon {
        transform: scale(1.05);
    }

    .stat-icon {
        width: 52px;
        height: 52px;
        font-size: 1.625rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 16px;
    }

    .stat-trend {
        font-size: 14px;
    }

    /* Opportunities back to row layout */
    .opportunity-item {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
        padding: 1.25rem 1.5rem;
    }

    .opportunity-item:hover {
        background: white;
        border-color: var(--color-primary);
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    }

    .opportunity-brand {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .opportunity-details {
        font-size: 0.8125rem;
    }

    .opportunity-price-info {
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        gap: 0.5rem;
    }

    .opportunity-price {
        font-size: 1.125rem;
    }

    .preview-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    }
}

/* ===================================
   DESKTOP BREAKPOINT (1024px+)
   =================================== */
@media (min-width: 1024px) {
    .hero {
        padding: 120px 2rem 40px;
    }

    .system-status {
        padding: 1.25rem 1.75rem;
        border-radius: 16px;
    }

    .preview-title {
        font-size: 3rem;
    }

    .title-icon {
        font-size: 3rem;
    }

    .preview-subtitle {
        font-size: 1.125rem;
        max-width: 650px;
    }

    .quick-stats {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
        gap: var(--card-gap);
    }

    .stat-card {
        padding: 1.5rem;
        border-radius: var(--card-radius);
    }

    .stat-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
        border-radius: var(--icon-box-radius);
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 17px;
    }

    .live-preview {
        padding: 2rem;
        border-radius: 24px;
    }

    .live-title {
        font-size: 1.5rem;
    }

    .opportunities-list {
        gap: 1.25rem;
    }

    .opportunity-item {
        padding: 1.5rem 1.75rem;
        border-radius: 18px;
    }

    .opportunity-brand {
        font-size: 1.0625rem;
    }

    .opportunity-price {
        font-size: 1.25rem;
    }

    .opportunity-discount {
        font-size: 0.875rem;
    }

    .preview-cta {
        padding: 1.25rem 2rem;
        font-size: 1.0625rem;
        border-radius: 16px;
    }

    .trust-indicators {
        gap: 2rem;
    }

    .trust-item {
        font-size: 0.9375rem;
    }
}
