/*
 * Calculator-specific styles for pepguide.ai
 * Reconstitution calculator, syringe visualization, compound presets
 */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Compound Presets */
.presets-section {
    background: #f8fafc;
    padding: 3rem 0;
}

.presets-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.preset-pill {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #4b5563;
    text-decoration: none;
    display: inline-block;
}

.preset-pill:hover,
.preset-pill.active {
    border-color: #0ea5e9;
    background: #0ea5e9;
    color: white;
}

.more-dropdown {
    position: relative;
}

.more-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    z-index: 10;
}

.more-menu.show {
    display: block;
}

.more-menu-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
    color: #4b5563;
}

.more-menu-item:hover {
    background: #f8fafc;
}

/* Calculator Grid */
.calculator-section {
    background: #f8fafc;
    padding: 0 0 3rem 0;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-left {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calculator-right {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Input Styling */
.input-group {
    margin-bottom: 2rem;
}

.input-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.vial-presets {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.preset-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #4b5563;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.preset-btn:hover,
.preset-btn.active {
    border-color: #0ea5e9;
    background: #0ea5e9;
    color: white;
}

.input-field {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.input-field:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.custom-input {
    margin-top: 0.5rem;
}

/* Slider Styling */
.slider-container {
    margin: 1.5rem 0;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0ea5e9;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
    transition: all 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0ea5e9;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.slider-value {
    text-align: center;
    font-weight: 600;
    color: #0ea5e9;
    margin-top: 1rem;
    font-size: 1.125rem;
}

/* Dose Input with Toggle */
.dose-input-group {
    position: relative;
}

.dose-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
}

.dose-toggle.active {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
}

/* Frequency Select */
.frequency-select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.frequency-select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Syringe Visualization */
.syringe-container {
    text-align: center;
    margin: 2rem 0;
}

.syringe {
    width: 250px;
    height: 350px;
    margin: 0 auto;
}

.fill-level {
    transition: height 0.3s ease, y 0.3s ease;
}

.draw-arrow {
    transition: all 0.3s ease;
}

/* Syringe SVG Styles */
.syringe svg {
    width: 100%;
    height: 100%;
}

.syringe-body {
    fill: #f8fafc;
    stroke: #1f2937;
    stroke-width: 2;
}

.syringe-plunger {
    fill: #e2e8f0;
    stroke: #1f2937;
    stroke-width: 2;
}

.syringe-needle {
    fill: #9ca3af;
    stroke: #1f2937;
    stroke-width: 1;
}

.syringe-liquid {
    fill: #0ea5e9;
    opacity: 0.8;
}

.syringe-markings {
    fill: none;
    stroke: #6b7280;
    stroke-width: 1;
}

.syringe-numbers {
    fill: #6b7280;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    text-anchor: middle;
}

/* Results Cards */
.results-section {
    padding: 3rem 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.result-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-card.primary {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: white;
}

.result-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-card.primary .result-label {
    color: rgba(255, 255, 255, 0.8);
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.result-card.primary .result-value {
    color: white;
    font-size: 3.5rem;
}

.result-unit {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.result-card.primary .result-unit {
    color: rgba(255, 255, 255, 0.8);
}

/* Educational Content */
.education-section {
    background: white;
    padding: 4rem 0;
}

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

.education-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 3rem;
}

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

.step-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid #0ea5e9;
}

.step-number {
    display: inline-block;
    background: #0ea5e9;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    text-align: center;
    line-height: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #6b7280;
}

.faq-section {
    margin-top: 4rem;
}

.faq-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    background: #f8fafc;
    padding: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 1.5rem;
    color: #6b7280;
    display: none;
}

.faq-answer.show {
    display: block;
}

.faq-icon {
    transition: transform 0.2s;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* Disclaimer */
.disclaimer {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
}

.disclaimer h4 {
    color: #dc2626;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.disclaimer p {
    color: #7f1d1d;
    margin: 0;
}

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

    .presets-pills {
        flex-wrap: wrap;
        justify-content: center;
    }

    .preset-pill {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .syringe {
        width: 180px;
        height: 250px;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .result-card.primary .result-value {
        font-size: 2.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .calculator-left,
    .calculator-right {
        padding: 1.5rem;
    }

    .hero {
        padding: 3rem 0 1.5rem;
    }

    .presets-section {
        padding: 2rem 0;
    }
}