/**
 * Safety & Side Effects Page - Enhanced Styles
 * Modern, user-friendly design with card-based layout
 */

/* Safety Area Enhanced */
.safety-area-enhanced {
    background: #f8f9fa;
    padding: 80px 0;
}

/* Safety Header */
.safety-header {
    text-align: center;
}

.safety-header .section-title h2 {
    color: #333;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.safety-header .section-title p {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
}

/* Safety Cards */
.safety-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.safety-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Card Header */
.safety-card .card-header {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.safety-card .card-header i {
    font-size: 28px;
    flex-shrink: 0;
}

.safety-card .card-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

/* Common Side Effects Card */
.safety-card-common .card-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f1ff 100%);
}

.safety-card-common .card-header i {
    color: #0066cc;
}

.safety-card-common .card-header h3 {
    color: #0066cc;
}

/* Serious Side Effects Card */
.safety-card-serious .card-header {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8e0 100%);
}

.safety-card-serious .card-header i {
    color: #e74c3c;
}

.safety-card-serious .card-header h3 {
    color: #e74c3c;
}

/* Contraindications Card */
.safety-card-contraindications .card-header {
    background: linear-gradient(135deg, #f0fff5 0%, #e8ffe8 100%);
}

.safety-card-contraindications .card-header i {
    color: #27ae60;
}

.safety-card-contraindications .card-header h3 {
    color: #27ae60;
}

/* Interactions Card */
.safety-card-interactions .card-header {
    background: linear-gradient(135deg, #fff9f0 0%, #ffe8d0 100%);
}

.safety-card-interactions .card-header i {
    color: #f39c12;
}

.safety-card-interactions .card-header h3 {
    color: #f39c12;
}

/* Populations Card */
.safety-card-populations .card-header {
    background: linear-gradient(135deg, #f5f0ff 0%, #ede8ff 100%);
}

.safety-card-populations .card-header i {
    color: #9b59b6;
}

.safety-card-populations .card-header h3 {
    color: #9b59b6;
}

/* Card Body */
.safety-card .card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-intro {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Safety List */
.safety-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.safety-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.safety-list i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.safety-card-common .safety-list i {
    color: #0066cc;
}

.safety-card-serious .safety-list i {
    color: #e74c3c;
}

.safety-card-contraindications .safety-list i {
    color: #27ae60;
}

/* Card Note */
.card-note {
    background: #f9f9f9;
    border-left: 4px solid #0066cc;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.card-note i {
    font-size: 20px;
    color: #0066cc;
    flex-shrink: 0;
}

.card-note p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.card-note.emergency {
    border-left-color: #e74c3c;
    background: #fff5f5;
}

.card-note.emergency i {
    color: #e74c3c;
}

/* Subsection Title */
.subsection-title {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
}

/* Interaction List */
.interaction-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.interaction-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #f39c12;
}

.interaction-item strong {
    color: #333;
    font-size: 15px;
    display: block;
    margin-bottom: 5px;
}

.interaction-item p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Population Items */
.population-item {
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.population-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.population-item h5 {
    color: #333;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.population-item h5 i {
    font-size: 18px;
    color: #9b59b6;
}

.population-item p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Safety Alert */
.safety-alert {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 2px solid #e74c3c;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.alert-icon {
    flex-shrink: 0;
}

.alert-icon i {
    font-size: 40px;
    color: #e74c3c;
}

.alert-content h4 {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.alert-content p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .safety-area-enhanced {
        padding: 60px 0;
    }

    .safety-header .section-title h2 {
        font-size: 36px;
    }

    .safety-header .section-title p {
        font-size: 16px;
    }

    .safety-card .card-header {
        padding: 20px;
    }

    .safety-card .card-body {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .safety-area-enhanced {
        padding: 40px 0;
    }

    .safety-header .section-title h2 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .safety-header .section-title p {
        font-size: 15px;
    }

    .safety-card .card-header {
        padding: 18px;
        gap: 12px;
    }

    .safety-card .card-header i {
        font-size: 24px;
    }

    .safety-card .card-header h3 {
        font-size: 18px;
    }

    .safety-card .card-body {
        padding: 18px;
    }

    .card-intro {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .safety-list li {
        font-size: 14px;
    }

    .interaction-item {
        padding: 12px;
    }

    .interaction-item strong {
        font-size: 14px;
    }

    .interaction-item p {
        font-size: 13px;
    }

    .population-item h5 {
        font-size: 14px;
    }

    .population-item p {
        font-size: 13px;
    }

    .safety-alert {
        padding: 20px;
        gap: 15px;
        flex-direction: column;
    }

    .alert-icon i {
        font-size: 32px;
    }

    .alert-content h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .alert-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .safety-area-enhanced {
        padding: 30px 0;
    }

    .safety-header .section-title h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .safety-header .section-title p {
        font-size: 14px;
    }

    .safety-card .card-header {
        padding: 15px;
        gap: 10px;
    }

    .safety-card .card-header i {
        font-size: 20px;
    }

    .safety-card .card-header h3 {
        font-size: 16px;
    }

    .safety-card .card-body {
        padding: 15px;
    }

    .card-intro {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .safety-list li {
        font-size: 13px;
        gap: 10px;
    }

    .safety-list i {
        font-size: 16px;
    }

    .card-note {
        padding: 12px;
        gap: 10px;
        margin-top: 15px;
    }

    .card-note i {
        font-size: 18px;
    }

    .card-note p {
        font-size: 13px;
    }

    .subsection-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .interaction-item {
        padding: 10px;
    }

    .interaction-item strong {
        font-size: 13px;
    }

    .interaction-item p {
        font-size: 12px;
    }

    .population-item {
        padding-bottom: 15px;
    }

    .population-item h5 {
        font-size: 13px;
        gap: 8px;
    }

    .population-item h5 i {
        font-size: 16px;
    }

    .population-item p {
        font-size: 12px;
    }

    .safety-alert {
        padding: 15px;
        gap: 12px;
    }

    .alert-icon i {
        font-size: 28px;
    }

    .alert-content h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .alert-content p {
        font-size: 13px;
    }
}
