/**
 * FluxDB Professional Product Brochure Styles
 * Designed for print and PDF export
 */

:root {
    --flux-primary: #6366f1;
    --flux-secondary: #8b5cf6;
    --flux-accent: #ec4899;
    --flux-success: #10b981;
    --flux-warning: #f59e0b;
    --flux-dark: #0f172a;
    --flux-gray: #64748b;
    --flux-light: #f8fafc;
}

/* Print-optimized styles */
@media print {
    body { margin: 0; padding: 0; }
    .page-break { page-break-after: always; }
    a { text-decoration: none; color: inherit; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: white;
}

.brochure-page {
    max-width: 8.5in;
    margin: 0 auto;
    padding: 0.75in;
    background: white;
    min-height: 11in;
}

/* Cover Page */
.cover-page {
    background: linear-gradient(135deg, var(--flux-primary) 0%, var(--flux-secondary) 100%);
    color: white;
    text-align: center;
    padding: 2in 0.75in;
    min-height: 11in;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cover-logo {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cover-tagline {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cover-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cover-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.cover-feature {
    background: rgba(255,255,255,0.15);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.cover-feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cover-feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cover-feature-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Headers */
h1 {
    font-size: 2.5rem;
    color: var(--flux-primary);
    margin-bottom: 1.5rem;
    border-bottom: 4px solid var(--flux-primary);
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 1.75rem;
    color: var(--flux-secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    color: var(--flux-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Content Sections */
.section {
    margin-bottom: 2rem;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-left: 4px solid var(--flux-primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-box {
    background: white;
    border: 2px solid var(--flux-primary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--flux-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--flux-gray);
    font-weight: 500;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--flux-primary);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--flux-dark);
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--flux-gray);
    line-height: 1.6;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    margin: 1.5rem 0;
}

.benefits-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--flux-success);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Performance Table */
.performance-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.performance-table th {
    background: linear-gradient(135deg, var(--flux-primary), var(--flux-secondary));
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.performance-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.performance-table tr:nth-child(even) {
    background: #f8fafc;
}

.performance-table tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* Code Blocks */
.code-example {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.code-example code {
    color: #94a3b8;
}

/* Use Case Cards */
.usecase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.usecase-card {
    background: white;
    border: 2px solid var(--flux-accent);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}

.usecase-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--flux-accent);
    margin-bottom: 1rem;
}

.usecase-description {
    color: var(--flux-gray);
    line-height: 1.7;
}

/* Callout Boxes */
.callout {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-left: 4px solid var(--flux-success);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.callout-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--flux-success);
    margin-bottom: 0.75rem;
}

.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border-left-color: var(--flux-warning);
}

.warning .callout-title {
    color: var(--flux-warning);
}

/* Architecture Diagram Container */
.diagram-container {
    margin: 2rem 0;
    text-align: center;
    page-break-inside: avoid;
}

.diagram-container img {
    max-width: 100%;
    height: auto;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.diagram-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--flux-gray);
    font-style: italic;
}

/* Footer */
.brochure-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--flux-primary);
    text-align: center;
}

.contact-info {
    background: linear-gradient(135deg, var(--flux-primary), var(--flux-secondary));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.contact-info h3 {
    color: white;
    margin-top: 0;
}

.contact-details {
    font-size: 1.1rem;
    margin-top: 1rem;
}

.contact-details a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* Table of Contents */
.toc {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.toc h2 {
    margin-top: 0;
}

.toc ul {
    list-style: none;
}

.toc li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.toc a {
    color: var(--flux-primary);
    text-decoration: none;
    font-weight: 500;
}

.toc a:hover {
    text-decoration: underline;
}

/* Page Numbers */
.page-number {
    text-align: center;
    color: var(--flux-gray);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cover-features {
        grid-template-columns: 1fr;
    }
}
