/* ========================================
   NEHA - Static Pages Shared Styles
   CSP-compliant external stylesheet
======================================== */

/* CSS Custom Properties */
:root {
    --primary-bg: #f8fafc;
    --secondary-bg: #f1f5f9;
    --tertiary-bg: #e2e8f0;
    --primary-text: #334155;
    --secondary-text: #64748b;
    --accent-primary: #7dd3fc;
    --accent-secondary: #a5f3fc;
    --border-soft: #cbd5e1;
    --border-lighter: #e2e8f0;
    --shadow-soft: rgba(148, 163, 184, 0.1);
    --gradient-primary: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
}

/* Base Reset */
* {
    font-family: 'Nunito', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: var(--primary-text);
    background: var(--gradient-primary);
    line-height: 1.6;
}

/* ========================================
   Layout Components
======================================== */

.container {
    width: 100%;
    max-width: min(1200px, 90vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
}

/* Header */
.header {
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-soft);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo - replaces inline style="display: flex; align-items: center; gap: 10px;" */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-text);
    text-decoration: none;
}

/* Logo image - replaces inline style="height: 40px; width: auto;" */
.logo-image {
    height: 40px;
    width: auto;
}

/* Navigation */
.nav a {
    color: var(--secondary-text);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--accent-primary);
}

/* Main Content */
.main {
    padding: 3rem 0;
    min-height: 60vh;
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-soft);
    padding: 2rem 0;
    text-align: center;
    color: var(--secondary-text);
    margin-top: 4rem;
}

.footer a {
    color: var(--secondary-text);
    text-decoration: none;
    margin: 0 1rem;
}

.footer a:hover {
    color: var(--accent-primary);
}

/* Footer links container - replaces inline style="margin-top: 0.5rem;" */
.footer-links {
    margin-top: 0.5rem;
}

/* ========================================
   Typography
======================================== */

.page-title {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem);
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--secondary-text);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ========================================
   Content Cards
======================================== */

.content-card {
    background: white;
    border: 1px solid var(--border-lighter);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px var(--shadow-soft);
}

.content-card h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.content-card h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--primary-text);
}

.content-card p {
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

.content-card ul,
.content-card ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--secondary-text);
}

.content-card li {
    margin-bottom: 0.5rem;
}

/* ========================================
   Alerts
======================================== */

.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e3a8a;
}

.alert-danger {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* ========================================
   Buttons
======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.2s;
    font-weight: 600;
}

.btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 211, 252, 0.3);
}

/* ========================================
   Utility Classes - Margins
======================================== */

/* Margin Top */
.mt-0 {
    margin-top: 0;
}

.mt-sm {
    margin-top: 0.5rem;
}

.mt-md {
    margin-top: 0.75rem;
}

.mt-lg {
    margin-top: 1rem;
}

.mt-xl {
    margin-top: 1.5rem;
}

.mt-2xl {
    margin-top: 2rem;
}

/* Margin Bottom */
.mb-0 {
    margin-bottom: 0;
}

.mb-sm {
    margin-bottom: 0.5rem;
}

.mb-md {
    margin-bottom: 0.75rem;
}

.mb-lg {
    margin-bottom: 1rem;
}

.mb-xl {
    margin-bottom: 1.5rem;
}

.mb-2xl {
    margin-bottom: 2rem;
}

/* Clearfix */
.clearfix {
    clear: both;
}

/* ========================================
   Utility Classes - Text
======================================== */

.text-secondary {
    color: var(--secondary-text);
}

.text-accent {
    color: var(--accent-primary);
}

.text-uppercase {
    text-transform: uppercase;
}

.text-sm {
    font-size: 0.9rem;
}

.text-md {
    font-size: 0.95rem;
}

.font-bold {
    font-weight: 700;
}

/* Accent link - replaces inline style="color: var(--accent-primary);" */
.accent-link {
    color: var(--accent-primary);
}

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

/* ========================================
   Tables (for Terms, Privacy pages)
======================================== */

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-lighter);
}

.data-table th {
    background: var(--secondary-bg);
    font-weight: 600;
}

/* ========================================
   Blog-specific Styles
======================================== */

.blog-meta {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--secondary-text);
    font-style: italic;
}

.blog-content code {
    background: var(--tertiary-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
}

/* ========================================
   Lists for Blog
======================================== */

.feature-list {
    margin-top: 0;
}

/* ========================================
   Blog Article Styles
======================================== */

.container-narrow {
    max-width: min(800px, 90vw);
}

.breadcrumb {
    padding: 1.5rem 0;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--accent-primary);
    text-decoration: none;
}

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

.article-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-lighter);
}

.article-title {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2rem, 1.5rem + 1.5vw, 2.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.article-excerpt {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-top: 1rem;
}

.article-content {
    padding: 3rem 0;
}

.article-content h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--primary-text);
}

.article-content h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
    color: var(--primary-text);
}

.article-content p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.article-content ul,
.article-content ol {
    margin: 1.25rem 0 1.25rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

/* Info Boxes */
.info-box {
    background: white;
    border: 1px solid var(--border-lighter);
    border-radius: 1rem;
    padding: 1.75rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px var(--shadow-soft);
}

.info-box h3 {
    margin-top: 0;
    color: var(--accent-primary);
}

/* Highlight Box */
.highlight {
    background: var(--tertiary-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-primary);
}

/* Process Steps */
.process-step {
    background: var(--secondary-bg);
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin: 1rem 0;
    border-left: 3px solid var(--accent-primary);
}

.process-step strong {
    color: var(--accent-primary);
}

/* Limitation Box */
.limitation-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cta-box .btn {
    background: white;
    color: var(--primary-text);
}

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 0.1rem;
    }

    .nav {
        display: none;
    }

    .content-card {
        padding: 1.5rem;
    }

    .article-content {
        padding: 2rem 0;
    }
}