/* ===== HARNESS KNOWLEDGE CENTER STYLES ===== */

/* Knowledge Center Container */
.knowledge-center {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.kc-header {
    text-align: center;
    margin-bottom: 40px;
}

.kc-header h1 {
    font-family: 'Bree Serif', serif;
    font-size: 2.5em;
    color: #00BDBD;
    margin-bottom: 10px;
}

.kc-subtitle {
    font-size: 1.2em;
    color: #666;
}

/* Section Styling */
.kc-section {
    margin-bottom: 60px;
}

.kc-section-title {
    font-family: 'Bree Serif', serif;
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 3px solid #F6CC00;
    padding-bottom: 10px;
}

/* Grid Layout */
.kc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Card Styling */
.kc-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #00BDBD;
}

.kc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left-color: #F6CC00;
}

.kc-card-accent {
    background: linear-gradient(135deg, rgba(0,189,189,0.1), rgba(246,204,0,0.1));
    border-left-color: #DD0E6E;
}

.kc-card-accent:hover {
    border-left-color: #00BDBD;
}

.kc-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.kc-card h3 {
    font-family: 'Bree Serif', serif;
    font-size: 1.3em;
    color: #333;
    margin-bottom: 10px;
}

.kc-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.kc-btn {
    display: inline-block;
    background: linear-gradient(135deg, #00BDBD, #F6CC00);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kc-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,189,189,0.3);
}

/* Resources Section */
.kc-resources {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kc-resource-link {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid #00BDBD;
}

.kc-resource-link:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.kc-resource-icon {
    font-size: 2.5em;
    margin-right: 20px;
}

.kc-resource-content {
    flex: 1;
}

.kc-resource-content h4 {
    font-family: 'Bree Serif', serif;
    color: #333;
    margin-bottom: 5px;
}

.kc-resource-content p {
    color: #666;
    margin: 0;
    font-size: 0.9em;
}

.kc-resource-arrow {
    font-size: 2em;
    color: #00BDBD;
}

/* Toolkit Preview Section */
.kc-toolkit-preview {
    background: linear-gradient(135deg, rgba(0,189,189,0.05), rgba(246,204,0,0.05));
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.toolkit-header {
    margin-bottom: 30px;
}

.toolkit-subtitle {
    font-size: 1.1em;
    color: #666;
    margin-top: 10px;
}

.toolkit-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.toolkit-stat {
    text-align: center;
}

.stat-number {
    font-family: 'Bree Serif', serif;
    font-size: 3em;
    color: #00BDBD;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

.toolkit-samples h3 {
    font-family: 'Bree Serif', serif;
    color: #333;
    margin-bottom: 20px;
}

.sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sample-card {
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.sample-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.sample-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.sample-watermark {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(221, 14, 110, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8em;
}

.sample-card p {
    padding: 15px;
    background: white;
    margin: 0;
    font-weight: 600;
    color: #333;
}

.toolkit-cta {
    margin-top: 40px;
}

.toolkit-btn-large {
    display: inline-block;
    background: linear-gradient(135deg, #DD0E6E, #F6CC00);
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(221,14,110,0.3);
}

.toolkit-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(221,14,110,0.5);
}

.toolkit-features {
    color: #666;
    margin-top: 15px;
    font-size: 0.9em;
}

/* Modal Styles */
.guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.guide-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.guide-close {
    position: sticky;
    top: 10px;
    right: 10px;
    float: right;
    background: #DD0E6E;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.guide-close:hover {
    background: #00BDBD;
    transform: rotate(90deg);
}

.guide-body {
    padding: 40px;
}

.guide-body h2 {
    font-family: 'Bree Serif', serif;
    color: #00BDBD;
    margin-bottom: 10px;
}

.guide-body h3 {
    font-family: 'Bree Serif', serif;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.guide-body h4 {
    color: #DD0E6E;
    margin-top: 20px;
    margin-bottom: 10px;
}

.guide-body ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.guide-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.guide-section {
    margin-bottom: 30px;
}

.guide-note {
    background: linear-gradient(135deg, rgba(0,189,189,0.1), rgba(246,204,0,0.1));
    border-left: 4px solid #F6CC00;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.guide-footer {
    padding: 20px 40px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.comparison-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #00BDBD;
}

.comparison-card:last-child {
    border-left-color: #DD0E6E;
}

.comparison-card h3 {
    color: #00BDBD;
    margin-bottom: 20px;
}

.comparison-card:last-child h3 {
    color: #DD0E6E;
}

.decision-flow {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.decision-flow p {
    margin-bottom: 10px;
    font-weight: 600;
}

/* Consent FRIES */
.consent-fries {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.consent-fries h4 {
    margin-bottom: 15px;
}

.consent-examples p {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Test Windows */
.test-windows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.test-window-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.test-window-card h4 {
    color: #00BDBD;
    margin-bottom: 15px;
}

/* Condom Types */
.condom-type {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.condom-type h4 {
    color: #00BDBD;
    margin-bottom: 10px;
}

/* Calculator Form */
.calculator-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-select, .form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: #00BDBD;
}

/* Calculator Results */
.calc-result-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #00BDBD;
}

.result-frequency {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(0,189,189,0.1), rgba(246,204,0,0.1));
    padding: 20px;
    border-radius: 15px;
}

.result-icon {
    font-size: 3em;
    margin-right: 20px;
}

.result-text strong {
    font-size: 1.5em;
    color: #00BDBD;
    display: block;
    margin-bottom: 5px;
}

.result-notes {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.result-notes h4 {
    margin-bottom: 10px;
    color: #333;
}

.result-cta {
    text-align: center;
    margin-top: 25px;
}

.window-status {
    background: linear-gradient(135deg, rgba(0,189,189,0.1), rgba(246,204,0,0.1));
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-size: 1.2em;
    text-align: center;
}

.window-status p {
    margin-top: 10px;
}

.window-too-early {
    border-left: 4px solid #DD0E6E;
}

.window-can-test {
    border-left: 4px solid #F6CC00;
}

.window-optimal {
    border-left: 4px solid #00BDBD;
}

.window-timeline {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item strong {
    color: #333;
}

.timeline-item span {
    color: #00BDBD;
    font-weight: 600;
}

.window-alert {
    background: #fff3cd;
    border-left: 4px solid #DD0E6E;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Script Sections */
.script-section {
    margin-bottom: 30px;
}

.script-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.script-card h4 {
    color: #00BDBD;
    margin-bottom: 10px;
}

.script-text {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #00BDBD;
    font-style: italic;
    line-height: 1.6;
}

.script-tips, .boundary-tips {
    background: linear-gradient(135deg, rgba(0,189,189,0.1), rgba(246,204,0,0.1));
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #F6CC00;
}

/* Boundary Cards */
.boundary-section {
    margin-bottom: 30px;
}

.boundary-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.boundary-card h4 {
    color: #DD0E6E;
    margin-bottom: 10px;
}

/* Toolkit Sample Modal */
.toolkit-sample-modal .guide-body {
    text-align: center;
}

.sample-watermark-large {
    background: rgba(221, 14, 110, 0.9);
    color: white;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.sample-image-container {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.sample-preview-large {
    width: 100%;
    height: auto;
    display: block;
}

.sample-cta-section {
    margin-top: 30px;
}

.sample-features {
    color: #666;
    margin-top: 15px;
    font-size: 0.9em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .kc-header h1 {
        font-size: 2em;
    }
    
    .kc-section-title {
        font-size: 1.5em;
    }
    
    .kc-grid {
        grid-template-columns: 1fr;
    }
    
    .toolkit-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .sample-grid {
        grid-template-columns: 1fr;
    }
    
    .toolkit-btn-large {
        font-size: 1.1em;
        padding: 15px 30px;
    }
    
    .guide-body {
        padding: 20px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .result-frequency {
        flex-direction: column;
        text-align: center;
    }
    
    .result-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
