/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f0f0f5; /* Classic light gray background */
    color: #26282a;
    line-height: 1.4;
    font-size: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Forum Mobile Header */
.forum-header {
    background-color: #6001d2; /* Maintained the forum purple aesthetic */
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    height: 50px;
}

.menu-icon, .search-icon {
    font-size: 18px;
    cursor: pointer;
}

.forum-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.f-brand {
    font-weight: 700;
}

.f-suffix {
    font-weight: 400;
    opacity: 0.9;
}

.signin-btn {
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.header-nav {
    display: flex;
    background-color: #4b00a5; /* Darker purple for nav */
    padding: 0 10px;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-item {
    color: rgba(255,255,255,0.7);
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
}

.nav-item.active {
    color: white;
    border-bottom: 3px solid white;
}

/* Main Layout - Mobile First (Vertical) */
.main-content {
    max-width: 600px; /* Constrain width for desktop reading, but full width on mobile */
    margin: 0 auto;
    padding: 10px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 12px;
    color: #5e646b;
    margin: 10px 0 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumbs i {
    font-size: 9px;
    opacity: 0.6;
}

/* Cards Common Style */
article, .answer-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    padding: 15px;
}

/* Question Card */
.user-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    background-color: #e0e4e9;
    border-radius: 50%;
    color: #5e646b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-size: 14px;
    font-weight: 700;
    color: #26282a;
}

.timestamp {
    font-size: 12px;
    color: #828c96;
}

.question-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.question-body p {
    font-size: 15px;
    color: #26282a;
    margin-bottom: 10px;
    line-height: 1.5;
}

.interaction-bar {
    border-top: 1px solid #f0f0f5;
    margin-top: 15px;
    padding-top: 12px;
    display: flex;
    gap: 20px;
    color: #5e646b;
    font-size: 13px;
    font-weight: 600;
}

.action-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.action-item.share {
    margin-left: auto;
}

/* Best Answer Section */
.section-header {
    margin-bottom: 10px;
    padding-left: 5px;
}

.section-header h3 {
    font-size: 14px;
    color: #5e646b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.best-answer {
    border-left: 4px solid #1fba2b; /* Green accent */
    position: relative;
}

/* Badge overlay "Best Answer" could go here if needed, keeping it simple for now */

.answer-user-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.doctor-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.verified-badge {
    background-color: #ff9900;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.reputation {
    font-size: 12px;
    color: #5e646b;
    margin-top: 2px;
}

.answer-body {
    font-size: 15px;
    line-height: 1.6;
    color: #26282a;
}

.answer-body p {
    margin-bottom: 12px;
}

.explanation-box {
    background-color: #f8f9fa;
    border-left: 3px solid #6001d2;
    padding: 12px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}

.explanation-box ol {
    margin-left: 20px;
    margin-top: 5px;
}

.bullet-list {
    margin-left: 20px;
    margin-bottom: 15px;
}

.bullet-list li {
    margin-bottom: 5px;
}

/* Video Attachment - Native Look */
/* Removed previous video attachment styles as we now use an embedded iframe */

.closing-text {
    font-style: italic;
    color: #5e646b;
}

.answer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f5;
    font-size: 13px;
    color: #5e646b;
}

.rating-box {
    display: flex;
    gap: 15px;
}

.upvote, .downvote {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.upvote:hover {
    color: #1fba2b;
}

.comment-btn {
    cursor: pointer;
    font-weight: 600;
}

/* Footer */
.other-answers {
    text-align: center;
    padding: 30px 0;
    color: #828c96;
}

.forum-footer {
    text-align: center;
    padding: 20px;
    font-size: 11px;
    color: #828c96;
    border-top: 1px solid #e0e4e9;
    margin-top: 20px;
}

.footer-links a {
    margin: 0 5px;
}
