/* Analytics & Reporting Page Styles */

/* Hero Section */
.analytics-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.analytics-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.analytics-hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    margin-bottom: 3rem;
}

.hero-actions .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Analytics Dashboard */
.hero-visual {
    position: relative;
    padding: 2rem 0;
}

.analytics-dashboard {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: transform 0.3s ease;
    color: #333;
}

.analytics-dashboard:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.dashboard-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.dashboard-title i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.dashboard-period {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.dashboard-metrics {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    border-left: 4px solid;
}

.metric-card.primary {
    border-left-color: #6366f1;
}

.metric-card.success {
    border-left-color: #10b981;
}

.metric-card.warning {
    border-left-color: #f59e0b;
}

.metric-card.info {
    border-left-color: #06b6d4;
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    color: white;
}

.metric-card.primary .metric-icon {
    background: #6366f1;
}

.metric-card.success .metric-icon {
    background: #10b981;
}

.metric-card.warning .metric-icon {
    background: #f59e0b;
}

.metric-card.info .metric-icon {
    background: #06b6d4;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.metric-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0.25rem 0;
}

.metric-change {
    font-size: 0.75rem;
    font-weight: 600;
}

.metric-change.positive {
    color: #10b981;
}

.metric-change.negative {
    color: #ef4444;
}

.dashboard-chart {
    padding: 0 1.5rem 1.5rem;
}

.chart-header {
    margin-bottom: 1rem;
}

.chart-header h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.chart-area {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

/* Floating Analytics Icons */
.floating-analytics-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.floating-icon:nth-child(odd) {
    animation-delay: -1.5s;
}

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

/* Section Headers */
.section-badge {
    display: inline-block;
    background: linear-gradient(45deg, #dc3545, #6366f1);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f8f9fa;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(45deg, #dc3545, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #495057;
}

.service-features i {
    color: #28a745;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* Feature Card Modern */
.feature-card-modern {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.feature-card-modern .feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: white;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.feature-card-modern .feature-icon-wrapper.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.feature-card-modern .feature-icon-wrapper.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.feature-card-modern .feature-icon-wrapper.orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feature-card-modern .feature-icon-wrapper.pink {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.feature-card-modern h5 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.feature-card-modern p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Tool Cards */
.tool-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.tool-icon.google {
    background: linear-gradient(45deg, #4285f4, #34a853);
}

.tool-icon.facebook {
    background: #1877f2;
}

.tool-icon.hotjar {
    background: linear-gradient(45deg, #fd3a69, #ffa726);
}

.tool-icon.semrush {
    background: linear-gradient(45deg, #ff642d, #ff8f47);
}

.tool-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.tool-card p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Result Cards */
.result-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.result-header i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.result-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.result-metrics {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.metric-item {
    text-align: center;
}

.metric-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #dc3545, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.metric-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.result-description {
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions .btn {
    margin-bottom: 1rem;
}

/* Responsive Design */

/* Large Screens and Tablets */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .cta-title {
        font-size: 2.25rem;
    }
    
    .service-card {
        padding: 1.75rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .floating-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .dashboard-metrics {
        gap: 1rem;
    }
    
    .result-metrics {
        gap: 1.5rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Make floating elements responsive */
    .floating-analytics-icons {
        position: relative;
        display: none;
    }
    
    .dashboard-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .result-metrics {
        gap: 1.25rem;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 768px) {
    .analytics-hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .cta-title {
        font-size: 1.875rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        text-align: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto 0.75rem auto;
        touch-action: manipulation;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        flex: 0 0 auto;
        margin-bottom: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .analytics-dashboard {
        transform: none;
        margin-top: 2rem;
        padding: 1rem;
    }
    
    .dashboard-metrics {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .metric-card {
        padding: 1rem;
        touch-action: manipulation;
    }
    
    .metric-card:active {
        transform: scale(0.98);
    }
    
    .metric-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 0.75rem;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .result-metrics {
        gap: 1rem;
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
        touch-action: manipulation;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .chart-container {
        touch-action: manipulation;
    }
    
    /* Prevent zoom on inputs */
    input, textarea, select, button {
        font-size: 16px;
    }
    
    /* Better touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    /* Improve text readability */
    .service-card p {
        line-height: 1.6;
        font-size: 0.95rem;
    }
    
    /* Analytics tools grid */
    .analytics-tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Data visualization */
    .chart-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Metrics overview */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .analytics-hero {
        min-height: 60vh;
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    .cta-title {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .service-card {
        padding: 1.25rem 0.75rem;
    }
    
    .analytics-dashboard {
        padding: 0.75rem;
    }
    
    .metric-card {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .metric-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }
    
    .metric-value {
        font-size: 1.1rem;
    }
    
    .metric-label {
        font-size: 0.8rem;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .section-spacing {
        padding: 3rem 0;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1rem 0.5rem;
    }
    
    .analytics-dashboard {
        padding: 0.5rem;
    }
    
    .metric-card {
        padding: 0.5rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-badge,
    .section-badge {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
    
    .metric-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .metric-value {
        font-size: 1rem;
    }
    
    .chart-container {
        height: 200px;
    }
}

/* Touch Improvements */
@media (max-width: 768px) {
    .btn:active {
        transform: scale(0.95);
    }
    
    .btn:focus {
        outline: 3px solid rgba(99, 102, 241, 0.5);
        outline-offset: 2px;
    }
    
    .service-card:focus,
    .metric-card:focus {
        outline: 2px solid rgba(99, 102, 241, 0.5);
        outline-offset: 2px;
    }
    
    /* Better scrolling for dashboards */
    .analytics-dashboard {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .chart-container {
        overflow-x: auto;
    }
    
    /* Horizontal scroll for wide tables */
    .data-table-container {
        overflow-x: auto;
        margin-bottom: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .chart-image,
    .graph-visualization {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .floating-icon {
        animation: none !important;
    }
    
    .analytics-dashboard {
        transform: none;
    }
    
    .analytics-dashboard:hover {
        transform: none;
    }
    
    .service-card:hover,
    .metric-card:hover {
        transform: none;
    }
    
    .progress-indicator {
        animation: none;
    }
    
    .chart-animation {
        animation: none;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .analytics-hero {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .section-spacing {
        padding: 2rem 0;
    }
    
    .chart-container {
        height: 200px;
    }
}

/* Print Styles */
@media print {
    .floating-analytics-icons,
    .floating-icon {
        display: none;
    }
    
    .analytics-hero,
    .cta-section {
        background: white !important;
        color: black !important;
    }
    
    .service-card,
    .metric-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .btn {
        background: transparent !important;
        color: black !important;
        border: 1px solid black !important;
    }
    
    .chart-container {
        background: white;
        border: 1px solid #ddd;
    }
    
    .progress-indicator {
        background: #ddd !important;
    }
}
