/*
 * DOCTOR DISCUSSION GUIDE PAGE - STANDALONE CSS
 * Complete styles for doctor-discussion-guide/index.html with NO dependencies
 * Purple-Blue Gradient Design System | Flat Card Design | Print-Optimized
 */

/* ========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================== */
:root {
    /* Primary Purple Colors */
    --primary-purple-light: #A78BFA;
    --primary-purple-mid: #7C3AED;
    --primary-purple-dark: #5B21B6;
    
    /* Accent Blue Colors */
    --accent-blue-light: #60A5FA;
    --accent-blue-mid: #3B82F6;
    --accent-blue-dark: #2563EB;
    
    /* Supporting Colors */
    --mint-green: #6EE7B7;
    --lavender-soft: #C4B5FD;
    --green-success: #10B981;
    --orange-warning: #F59E0B;
    --pink-accent: #EC4899;
    
    /* Background Colors */
    --bg-dark-primary: #050621;
    --bg-dark-secondary: #1E1B4B;
    --bg-dark-tertiary: #334155;
    
    /* Text Colors */
    --text-light: #F1F5F9;
    --text-muted: #CBD5E1;
    
    /* Gradients */
    --gradient-purple-blue: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
    
    /* Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark-primary);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style-position: inside;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-purple-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--lavender-soft);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
/* ========================================
   HERO SECTION ANIMATED
   ======================================== */
.hero {
 min-height: 100vh;
 display: flex;
 align-items: center;
 justify-content: center;
 position: relative;
 overflow: hidden;
 background: #0a0e1a;
 padding: var(--space-lg) var(--space-md);
}

.hero::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: 
     radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
     radial-gradient(circle at 80% 80%, rgba(8, 145, 178, 0.15) 0%, transparent 50%),
     radial-gradient(circle at 40% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
 z-index: 1;
}

.hero-canvas {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 z-index: 2;
}

/* Hero Content */
.hero-content {
 position: relative;
 z-index: 3;
 max-width: 1200px;
 text-align: center;
 color: var(--primary-light);
}

.hero-title {
 font-family: var(--font-serif);
 font-size: clamp(2.5rem, 7vw, 6rem);
 margin-bottom: var(--space-md);
 line-height: 1.05;
 font-weight: 900;
 background: linear-gradient(135deg, #ffffff 0%, #60a5fa 50%, #0891b2 100%);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
 text-shadow: none;
 animation: fadeInUp 1s var(--transition-smooth), shimmer 3s ease-in-out infinite;
 letter-spacing: -0.02em;
}

@keyframes shimmer {
 0%, 100% {
     background-position: 0% 50%;
 }
 50% {
     background-position: 100% 50%;
 }
}

.hero-subtitle {
 font-size: clamp(1.2rem, 2.5vw, 2rem);
 margin-bottom: var(--space-lg);
 opacity: 0.95;
 animation: fadeInUp 1s var(--transition-smooth) 0.2s both;
 font-weight: 400;
 line-height: 1.5;
 max-width: 900px;
 margin-left: auto;
 margin-right: auto;
 color: #e2e8f0;
}

.hero-cta {
 display: inline-block;
 padding: 1.2rem 3rem;
 background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
 color: white;
 font-weight: 700;
 font-size: 1.1rem;
 border-radius: 50px;
 transition: all 0.4s var(--transition-smooth);
 animation: fadeInUp 1s var(--transition-smooth) 0.4s both, pulse 2s ease-in-out infinite;
 border: none;
 cursor: pointer;
 box-shadow: 0 10px 40px rgba(37, 99, 235, 0.4);
 position: relative;
 overflow: hidden;
}

.hero-cta::before {
 content: '';
 position: absolute;
 top: 0;
 left: -100%;
 width: 100%;
 height: 100%;
 background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
 transition: left 0.5s;
}

.hero-cta:hover::before {
 left: 100%;
}

.hero-cta:hover {
 transform: translateY(-4px) scale(1.05);
 box-shadow: 0 20px 60px rgba(37, 99, 235, 0.6);
 border-bottom-color: transparent;
}

@keyframes pulse {
 0%, 100% {
     box-shadow: 0 10px 40px rgba(37, 99, 235, 0.4);
 }
 50% {
     box-shadow: 0 10px 60px rgba(37, 99, 235, 0.6);
 }
}

@keyframes fadeInUp {
 from {
     opacity: 0;
     transform: translateY(30px);
 }
 to {
     opacity: 1;
     transform: translateY(0);
 }
}


/* ========================================
   CARD STYLES
   ======================================== */
.card {
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all var(--transition-medium);
}

.card:hover {
    border-color: var(--accent-blue-light);
    transform: translateY(-3px);
}

/* ========================================
   TOOLS GRID
   ======================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.tool-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.tool-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple-light);
    margin-bottom: 1rem;
}

.tool-description {
    color: var(--lavender-soft);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue-light);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.tool-link:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateX(5px);
}

/* ========================================
   CHECKLIST STYLES
   ======================================== */
.checklist-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.checklist-section {
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.checklist-section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-purple-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.checklist-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.checklist-item.checked {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--mint-green);
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.checklist-item label {
    cursor: pointer;
    flex-grow: 1;
    color: var(--text-light);
    line-height: 1.5;
}

.checklist-item.checked label {
    color: var(--mint-green);
    text-decoration: line-through;
}

/* ========================================
   FORM STYLES
   ======================================== */
.template-card,
.worksheet-card {
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.template-intro,
.worksheet-intro {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--accent-blue-light);
    border-radius: var(--radius-sm);
}

.benefits-list,
.instructions-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.benefits-list li,
.instructions-list li {
    margin: 0.5rem 0;
    color: var(--lavender-soft);
}

.form-section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-purple-light);
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
}

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

.form-group label {
    display: block;
    color: var(--accent-blue-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue-light);
    background: rgba(0, 0, 0, 0.4);
}

.form-textarea {
    resize: vertical;
    line-height: 1.6;
}

.section-note {
    color: var(--lavender-soft);
    font-size: 0.9375rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* ========================================
   SEVERITY SCALE
   ======================================== */
.severity-scale {
    margin-top: 0.5rem;
}

.severity-slider {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(to right, var(--mint-green), var(--orange-warning), var(--pink-accent));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.severity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.severity-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

#severityValue {
    font-weight: 700;
    color: var(--accent-blue-light);
    font-size: 1.125rem;
}

/* ========================================
   QUESTIONS GRID
   ======================================== */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.questions-card {
    padding: var(--spacing-md);
}

.questions-category {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-purple-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.questions-list {
    list-style: none;
    padding: 0;
}

.questions-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.questions-list li:hover {
    color: var(--accent-blue-light);
    padding-left: 2rem;
}

.questions-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-blue-light);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.questions-list li:last-child {
    border-bottom: none;
}

/* ========================================
   COMPARISON & PRIORITIES
   ======================================== */
.comparison-section,
.priorities-section {
    margin-top: var(--spacing-lg);
}

.treatment-option {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.treatment-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue-light);
    margin-bottom: 1rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.comparison-item {
    display: flex;
    flex-direction: column;
}

.priorities-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.priority-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    gap: 1rem;
    flex-wrap: wrap;
}

.priority-item label {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.rating-buttons {
    display: flex;
    gap: 0.5rem;
}

.rating-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.rating-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue-light);
    transform: scale(1.1);
}

.rating-btn.active {
    background: var(--gradient-purple-blue);
    border-color: transparent;
    color: white;
    transform: scale(1.15);
}

/* ========================================
   TIPS GRID
   ======================================== */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.tip-card {
    text-align: center;
    padding: var(--spacing-md);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tip-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-purple-light);
    margin-bottom: 0.75rem;
}

.tip-description {
    color: var(--lavender-soft);
    line-height: 1.6;
}

/* ========================================
   BUTTONS
   ======================================== */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary-purple-light);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.btn-secondary:hover {
    background: rgba(124, 58, 237, 0.3);
    border-color: var(--primary-purple-light);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark-secondary);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--primary-purple-light);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: var(--lavender-soft);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-blue-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--accent-blue-light);
}

.footer-bottom a:hover {
    color: var(--primary-purple-light);
}

.footer-sep {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .hero,
    .nav,
    .footer,
    .action-buttons,
    .tool-link {
        display: none;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .section-title {
        color: #7C3AED;
        -webkit-text-fill-color: initial;
        background: none;
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        color: #64748B;
        font-size: 1rem;
    }
    
    .card,
    .template-card,
    .worksheet-card,
    .checklist-section,
    .questions-card,
    .treatment-option {
        border: 1px solid #E2E8F0;
        background: #F8FAFC;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .checklist-item {
        background: white;
        border: 1px solid #E2E8F0;
    }
    
    .form-input,
    .form-textarea {
        border: 1px solid #CBD5E1;
        background: white;
        color: black;
    }
    
    .priority-item {
        background: white;
        border: 1px solid #E2E8F0;
    }
    
    .rating-btn {
        border: 1px solid #CBD5E1;
        background: white;
        color: black;
    }
    
    .rating-btn.active {
        background: #7C3AED;
        color: white;
    }
    
    .questions-list li,
    .benefits-list li,
    .instructions-list li {
        color: black;
    }
    
    .tool-name,
    .checklist-section-title,
    .form-section-title,
    .questions-category,
    .treatment-title,
    .tip-title {
        color: #7C3AED;
    }
    
    .form-group label {
        color: #475569;
    }
    
    .section-note,
    .tool-description,
    .tip-description {
        color: #64748B;
    }
    
    /* Ensure checkboxes are visible in print */
    input[type="checkbox"] {
        -webkit-appearance: checkbox;
        appearance: checkbox;
    }
    
    /* Add page breaks between major sections */
    #checklist,
    #symptom-template,
    #questions,
    #treatment-worksheet {
        page-break-before: always;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tools-grid,
    .checklist-container,
    .questions-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .priority-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .tool-icon,
    .tip-icon {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
