/* ================================================
   COFA Technical Documentation Styles
   - TDS (Technical Data Sheets)
   - Whitepapers
   - Product Catalogs
   - IR Presentations
   Inspired by Namics, Henkel, Shin-Etsu
   ================================================ */

:root {
    --cofa-blue: #0d63a5;
    --cofa-dark-blue: #09498a;
    --cofa-light-blue: #e3f2fd;
    --cofa-accent: #1976d2;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-gray: #718096;
    --border-light: #e2e8f0;
    --bg-section: #f7fafc;
    --success-green: #48bb78;
    --warning-orange: #ed8936;
}

/* ===== Document Layout ===== */
.doc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.doc-hero {
    background: linear-gradient(135deg, var(--cofa-blue) 0%, var(--cofa-dark-blue) 100%);
    color: white;
    padding: 80px 20px 60px;
    margin-top: 80px;
}

.doc-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.doc-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.doc-hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.doc-hero .product-code {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 500;
}

.doc-hero-summary {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.95;
    margin: 30px 0;
    max-width: 800px;
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.doc-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-meta-item i {
    font-size: 18px;
    opacity: 0.8;
}

.doc-meta-item span {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== Quick Actions Bar ===== */
.quick-actions {
    background: white;
    border-bottom: 2px solid var(--border-light);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quick-actions-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.quick-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.quick-nav a:hover {
    color: var(--cofa-blue);
    border-bottom-color: var(--cofa-blue);
}

.quick-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-quick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-quick-primary:hover {
    background: var(--cofa-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 99, 165, 0.3);
}

.btn-quick-secondary {
    background: white;
    color: var(--cofa-blue);
    border: 2px solid var(--cofa-blue);
}

.btn-quick-secondary:hover {
    background: var(--cofa-light-blue);
}

/* ===== Table of Contents ===== */
.toc-container {
    background: var(--bg-section);
    padding: 40px 0;
}

.toc-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.toc-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.toc-item {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--cofa-blue);
    transition: all 0.3s ease;
}

.toc-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.toc-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-item a i {
    color: var(--cofa-blue);
    font-size: 14px;
}

/* ===== Content Sections ===== */
.doc-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.doc-section:nth-child(even) {
    background: var(--bg-section);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: var(--cofa-blue);
    font-size: 28px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* ===== Feature Cards ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--cofa-blue), var(--cofa-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 28px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== Technical Specifications Table ===== */
.spec-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.spec-table thead {
    background: linear-gradient(135deg, var(--cofa-blue), var(--cofa-dark-blue));
    color: white;
}

.spec-table th {
    padding: 18px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
}

.spec-table tbody tr:hover {
    background: var(--bg-section);
}

.spec-table tbody tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 18px 20px;
    font-size: 15px;
    color: var(--text-primary);
}

.spec-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 35%;
}

.spec-table td:nth-child(2) {
    color: var(--text-secondary);
    width: 20%;
}

.spec-table td:nth-child(3) {
    font-weight: 600;
    color: var(--cofa-blue);
}

/* ===== Highlight Boxes ===== */
.highlight-box {
    background: var(--cofa-light-blue);
    border-left: 4px solid var(--cofa-blue);
    padding: 25px 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.highlight-box.success {
    background: #f0fff4;
    border-left-color: var(--success-green);
}

.highlight-box.warning {
    background: #fffaf0;
    border-left-color: var(--warning-orange);
}

.highlight-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-box h4 i {
    color: var(--cofa-blue);
    font-size: 20px;
}

.highlight-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight-box ul li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.highlight-box ul li i {
    color: var(--cofa-blue);
    margin-top: 4px;
    font-size: 14px;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--cofa-blue) 0%, var(--cofa-dark-blue) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.cta-btn-primary:hover {
    background: var(--cofa-light-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ===== Related Products ===== */
.related-section {
    padding: 60px 20px;
    background: var(--bg-section);
}

.related-content {
    max-width: 1200px;
    margin: 0 auto;
}

.related-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.related-card-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--cofa-light-blue), #e0f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-card-image i {
    font-size: 48px;
    color: var(--cofa-blue);
}

.related-card-content {
    padding: 25px;
}

.related-card-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cofa-blue);
    margin-bottom: 10px;
}

.related-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.related-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.related-card-link {
    color: var(--cofa-blue);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.related-card-link i {
    transition: transform 0.3s ease;
}

.related-card:hover .related-card-link i {
    transform: translateX(5px);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 20px 0;
    background: white;
    border-bottom: 1px solid var(--border-light);
    margin-top: 80px;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--cofa-blue);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-gray);
    font-size: 12px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .doc-hero {
        padding: 60px 20px 40px;
        margin-top: 60px;
    }
    
    .doc-hero h1 {
        font-size: 32px;
    }
    
    .doc-hero-summary {
        font-size: 16px;
    }
    
    .quick-actions {
        top: 60px;
    }
    
    .quick-actions-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .quick-cta {
        justify-content: stretch;
    }
    
    .btn-quick {
        flex: 1;
        justify-content: center;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .feature-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .doc-hero h1 {
        font-size: 26px;
    }
    
    .spec-table th,
    .spec-table td {
        padding: 12px 15px;
        font-size: 13px;
    }
}
