/**
 * Analytics & Reports Feature Page Styles
 * CreativAI Main Website - Professional Styling
 */

/* ===== HERO SECTION ===== */
.analytics-hero {
    background: linear-gradient(135deg, #0ea5e9 0%, #1e293b 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.analytics-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: #ffffff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #ffffff;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
}

.metric-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.metric-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

/* Hero Visual - Dashboard Preview */
.hero-visual {
    position: relative;
}

.dashboard-preview {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.3s ease;
    position: relative;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3);
}

.dashboard-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(14, 165, 233, 0.05), rgba(2, 132, 199, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.dashboard-preview:hover::before {
    opacity: 1;
}

.dashboard-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.dashboard-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.dashboard-controls {
    display: flex;
    gap: 8px;
}

.control-item {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.control-item.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.dashboard-content {
    padding: 24px;
    position: relative;
    z-index: 2;
}

.chart-container {
    margin-bottom: 24px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.chart-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.trend-indicator {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.trend-indicator.positive {
    background: #dcfce7;
    color: #16a34a;
}

.chart-area {
    height: 200px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.metric-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.metric-card .metric-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.metric-card .metric-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.metric-change {
    font-size: 12px;
    font-weight: 600;
}

.metric-change.positive {
    color: #16a34a;
}

.metric-change.negative {
    color: #dc2626;
}

/* ===== ANALYTICS FEATURES SECTION ===== */
.analytics-features {
    padding: 100px 0;
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.feature-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-metrics {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-metrics li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 14px;
    margin-bottom: 8px;
}

.feature-metrics i {
    color: #16a34a;
    font-size: 12px;
}

/* ===== REPORTING TOOLS SECTION ===== */
.reporting-tools {
    padding: 100px 0;
    background: #f8fafc;
}

.tools-showcase {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    margin-top: 64px;
    align-items: start;
}

.tools-navigation {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tool-tab {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tool-tab:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.tool-tab.active {
    border-color: #3b82f6;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    flex-shrink: 0;
}

.tool-tab.active .tool-icon {
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
}

.tool-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.tool-info p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.tools-preview {
    position: relative;
    min-height: 400px;
}

.tool-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.tool-preview.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.report-mockup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.report-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.report-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.report-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.report-content {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.report-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.report-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.report-section li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #475569;
}

.report-section i {
    color: #16a34a;
    font-size: 12px;
}

.chart-placeholder {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
}

.chart-placeholder i {
    font-size: 32px;
}

/* ===== DATA INSIGHTS SECTION ===== */
.data-insights {
    padding: 100px 0;
    background: #ffffff;
}

.insights-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.insights-features {
    margin: 32px 0;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.insight-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    flex-shrink: 0;
}

.insight-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.insight-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.insights-cta {
    margin-top: 32px;
}

.insights-visual {
    position: relative;
}

.insights-dashboard {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.dashboard-card .card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #dcfce7;
    color: #16a34a;
}

.insights-list {
    padding: 24px;
}

.insight-alert {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #f8fafc;
    border-left: 4px solid #e2e8f0;
}

.alert-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ffffff;
    flex-shrink: 0;
}

.alert-icon.positive {
    background: #16a34a;
}

.alert-icon.warning {
    background: #f59e0b;
}

.alert-icon.info {
    background: #3b82f6;
}

.alert-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.alert-content p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.alert-time {
    font-size: 12px;
    color: #94a3b8;
}

/* ===== INTEGRATIONS SECTION ===== */
.integrations-section {
    padding: 100px 0;
    background: #f8fafc;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.integration-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.integration-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.1);
    transform: translateY(-4px);
}

.integration-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-logo img {
    max-width: 100%;
    max-height: 100%;
}

.integration-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .tools-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .insights-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .demo-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .analytics-hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-metrics {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .report-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .integrations-grid {
        grid-template-columns: 1fr;
    }
}
