/* Common styles for the ORB Project website */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #0ea5e9;
    --accent: #06b6d4;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero .tagline {
    font-size: 1.75rem;
    font-weight: 600;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.nav-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Highlight Boxes */
.highlight-box {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin: 2rem 0;
    border-left: 4px solid var(--primary);
}

.highlight-box.info {
    border-left: 4px solid var(--primary);
}

.highlight-box.success {
    border-left: 4px solid var(--success);
}

.highlight-box.warning {
    border-left: 4px solid var(--warning);
}

.highlight-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.highlight-box p {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
}

.highlight-box ul {
    margin-left: 1.5rem;
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
}

.highlight-box li {
    margin-bottom: 0.5rem;
}

/* Deployment Cards (index.html) */
.deployment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.deployment-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}

.deployment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.deployment-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.deployment-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.deployment-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.deployment-card .spec-note {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    font-style: italic;
}

/* Benefit Cards */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Benefit Lists */
.benefit-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.benefit-list li {
    padding: 1rem;
    background: var(--bg);
    margin-bottom: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--success);
}

.benefit-list li strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.25rem;
}

/* Drawback Lists (docker-comparison.html) */
.drawback-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.drawback-list li {
    padding: 1rem;
    background: var(--bg);
    margin-bottom: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--danger);
}

.drawback-list li strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.25rem;
}

/* Collapsible Sections (index.html) */
.collapsible {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.collapsible-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.2s;
}

.collapsible-header:hover {
    background: rgba(37, 99, 235, 0.05);
}

.collapsible-header::after {
    content: '▼';
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.collapsible-header.active::after {
    transform: rotate(-180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.active {
    max-height: 1000px;
}

.collapsible-inner {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Code Blocks */
pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 1rem 0;
}

code {
    font-family: 'Monaco', 'Courier New', monospace;
}

/* Tools Section */
.tools-section {
    background: var(--bg);
    padding: 3rem 0;
    margin-top: 4rem;
}

.tools-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-compact {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.tool-compact h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.tool-compact p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Comparison Grids (docker-comparison.html) */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.comparison-header {
    padding: 1.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
}

.docker-header {
    background: linear-gradient(135deg, #2496ed, #0db7ed);
    color: white;
}

.rpm-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.comparison-content {
    padding: 2rem;
}

.stats-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.stat-lines {
    background: #fef3c7;
    color: #92400e;
}

.stat-complexity {
    background: #fee2e2;
    color: #991b1b;
}

.stat-good {
    background: #d1fae5;
    color: #065f46;
}

.scenario-box {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.scenario-box h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.scenario-box p {
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Two-column layout (portable-applications.html) */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.column-box {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.column-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.column-box p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.column-box ul {
    margin-left: 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

.column-box li {
    margin-bottom: 0.5rem;
}

/* Example boxes (portable-applications.html) */
.example-box {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.example-box h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.example-box p {
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Badges (portable-applications.html) */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.25rem;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Footer */
footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    text-align: center;
}

.footer-link {
    color: var(--secondary);
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .deployment-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}
