/* GLYVIA Website - Common Page Styles */
/* Medical-Grade Design System for Content Pages */

/* CSS Variables - GLYVIA Official Colors */
:root {
    --glyvia-blue: #1C53AC;
    --glyvia-cyan: #55C3E7;
    --glyvia-green: #5EAC54;
    --glyvia-white: #FDFDFD;
    --glyvia-surface: #EEF4FA;
    --glyvia-gray: #6B7280;
    --glyvia-dark: #1F2937;
    --glyvia-border: #D1D5DB;
    --glyvia-error: #DC2626;
}

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

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

/* Header */
.glyvia-header {
    background: var(--glyvia-white);
    border-bottom: 2px solid var(--glyvia-surface);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.glyvia-logo img {
    height: 45px;
    width: auto;
}

/* Navigation Links */
.glyvia-nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.glyvia-nav-links a {
    text-decoration: none;
    color: var(--glyvia-gray);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.glyvia-nav-links a:hover {
    color: var(--glyvia-blue);
}

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

/* Page Wrapper */
.glyvia-page {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--glyvia-blue) 0%, #2563EB 100%);
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 32px rgba(28, 83, 172, 0.15);
}

.page-header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-header .subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

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

.content-section h2 {
    font-size: 1.875rem;
    color: var(--glyvia-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-left: 4px solid var(--glyvia-cyan);
    padding-left: 1rem;
}

.content-section h3 {
    font-size: 1.375rem;
    color: var(--glyvia-dark);
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 600;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul, .content-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

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

/* Step Cards */
.step-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(28, 83, 172, 0.12);
    border-color: var(--glyvia-cyan);
}

.step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--glyvia-blue) 0%, #2563EB 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(28, 83, 172, 0.2);
}

.step-content h3 {
    margin-top: 0;
    color: var(--glyvia-blue);
}

/* Info Boxes */
.info-box, .highlight-box {
    background: linear-gradient(135deg, #EEF4FA 0%, #FFFFFF 100%);
    border-left: 4px solid var(--glyvia-cyan);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(28, 83, 172, 0.08);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(28, 83, 172, 0.12);
}

.warning-box {
    background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
    border-left: 4px solid #F59E0B;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1);
}

.warning-box.critical {
    background: linear-gradient(135deg, #FEE2E2 0%, #FEF2F2 100%);
    border-left: 4px solid var(--glyvia-error);
}

.emergency-box {
    background: var(--glyvia-error);
    color: white;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.success {
    color: var(--glyvia-green);
    font-weight: 600;
}

.note {
    color: var(--glyvia-gray);
    font-size: 0.9rem;
    font-style: italic;
}

/* Lists */
.check-list {
    list-style: none;
    margin-left: 0;
}

.check-list li::before {
    content: "✓ ";
    color: var(--glyvia-green);
    font-weight: bold;
    margin-right: 0.5rem;
}

.cross-list {
    list-style: none;
    margin-left: 0;
}

.cross-list li::before {
    content: "✗ ";
    color: var(--glyvia-error);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* FAQ Items */
.faq-item {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glyvia-border);
}

.faq-item h3 {
    color: var(--glyvia-blue);
    margin-top: 0;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.data-table th {
    background: var(--glyvia-blue);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glyvia-border);
}

.data-table tr:hover {
    background: var(--glyvia-surface);
}

/* Buttons */
.glyvia-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.glyvia-btn-primary {
    background: var(--glyvia-blue);
    color: white;
}

.glyvia-btn-primary:hover {
    background: #153D7F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 83, 172, 0.3);
}

.glyvia-btn-success {
    background: var(--glyvia-green);
    color: white;
}

.glyvia-btn-success:hover {
    background: #4A8F44;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 172, 84, 0.3);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--glyvia-blue), var(--glyvia-cyan));
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    color: white;
    margin-top: 0;
}

.cta-box p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Legal Page Styles */
.legal-page {
    font-size: 1rem;
    line-height: 1.8;
}

.legal-page h2 {
    margin-top: 3rem;
}

.legal-page h3 {
    margin-top: 2rem;
}

/* Knowledge Base Styles */
.kb-category {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kb-article {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kb-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--glyvia-cyan) 0%, var(--glyvia-blue) 100%);
    transition: width 0.3s ease;
}

.kb-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(28, 83, 172, 0.15);
}

.kb-article:hover::before {
    width: 6px;
}

.kb-article h3 {
    margin-top: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.kb-article h3 a {
    color: var(--glyvia-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.kb-article h3 a:hover {
    color: var(--glyvia-cyan);
}

.kb-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--glyvia-cyan) 0%, var(--glyvia-blue) 100%);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(85, 195, 231, 0.2);
}
    margin-top: 0.5rem;
}

/* Support Form Styles */
.support-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--glyvia-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--glyvia-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--glyvia-blue);
}

.form-note {
    display: block;
    font-size: 0.875rem;
    color: var(--glyvia-gray);
    margin-top: 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.link-card {
    background: var(--glyvia-surface);
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--glyvia-dark);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.link-card:hover {
    border-color: var(--glyvia-cyan);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.link-card h3 {
    color: var(--glyvia-blue);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-card {
    background: var(--glyvia-surface);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--glyvia-blue);
}

.contact-card h3 {
    margin-top: 0;
    color: var(--glyvia-blue);
}

/* Footer */
.glyvia-footer {
    background: var(--glyvia-dark);
    color: var(--glyvia-surface);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .step-card {
        flex-direction: column;
    }
    
    .kb-category {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem;
    }
}
