/* assets/css/pages/doctor-profile.css - Doctor Profile page styles (shared styles: assets/css/public-layout.css) */

body.dark .navbar,
body.dark .footer,
body.dark .card,
body.dark .benefit-card,
body.dark .pill-role,
body.dark .cta-box,
body.dark .sidebar-overlay,
body.dark .sidebar,
body.dark .who-card,
body.dark .profile-card,
body.dark .info-card,
body.dark .review-card {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark .ai-chat-input input::placeholder {
    color: #94a3b8 !important;
}

body.dark .profile-card .doctor-avatar {
    border-color: #334155 !important;
}

body.dark .profile-card .specialty-badge {
    background: #2d3a52 !important;
    color: #7aa9ff !important;
}

body.dark .profile-card .rating-stars {
    color: #fbbf24 !important;
}

body.dark .info-card .info-item i {
    color: #7aa9ff !important;
}

body.dark .review-card .review-stars {
    color: #fbbf24 !important;
}

body.dark .review-card .reviewer-avatar {
    border-color: #334155 !important;
}

.btn-sm {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
}

.btn-success {
    background: #22c55e;
    color: #fff;
}

.btn-success:hover {
    background: #16a34a;
    transform: scale(1.02);
}

.btn-warning {
    background: #f59e0b;
    color: #fff;
}

.btn-warning:hover {
    background: #d97706;
    transform: scale(1.02);
}

body.dark .btn-outline {
    border-color: #475569;
    color: #e2e8f0;
}

body.dark .btn-outline:hover {
    background: #2d3a52;
}

/* ============================================================
   PROFILE SECTION
   ============================================================ */

.profile-section {
    padding: 40px 0 30px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Profile Card */

.profile-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    padding: 32px;
    transition: background 0.3s, border-color 0.3s;
    text-align: center;
}

.profile-card .doctor-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: block;
}

.profile-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.profile-card .specialty-badge {
    display: inline-block;
    background: #edf4fe;
    color: #0d6efd;
    padding: 4px 18px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.profile-card .rating-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.profile-card .rating-stars .rating-text {
    font-size: 0.9rem;
    color: #4a5c72;
    margin-left: 6px;
}

body.dark .profile-card .rating-stars .rating-text {
    color: #94a3b8;
}

.profile-card .doctor-bio {
    font-size: 0.95rem;
    color: #4a5c72;
    margin: 12px 0 16px;
    text-align: left;
    line-height: 1.7;
}

body.dark .profile-card .doctor-bio {
    color: #94a3b8;
}

.profile-card .profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.profile-card .profile-actions .btn {
    min-width: 140px;
}

/* Info Card */

.info-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    padding: 32px;
    transition: background 0.3s, border-color 0.3s;
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(13, 110, 253, 0.08);
}

.info-card .info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(13, 110, 253, 0.04);
}

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

.info-card .info-item i {
    width: 22px;
    color: #0d6efd;
    font-size: 1.1rem;
    margin-top: 2px;
}

.info-card .info-item .info-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: #4a5c72;
}

body.dark .info-card .info-item .info-label {
    color: #94a3b8;
}

.info-card .info-item .info-value {
    font-size: 0.95rem;
}

.info-card .availability-status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
}

.info-card .availability-status.available {
    background: #dcfce7;
    color: #16a34a;
}

.info-card .availability-status.unavailable {
    background: #fee2e2;
    color: #dc2626;
}

body.dark .info-card .availability-status.available {
    background: #1a3a2a;
    color: #4ade80;
}

body.dark .info-card .availability-status.unavailable {
    background: #3a1a1a;
    color: #f87171;
}

.info-card .fee-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0d6efd;
}

body.dark .info-card .fee-amount {
    color: #7aa9ff;
}

/* ============================================================
   AVAILABILITY & APPOINTMENT SECTION
   ============================================================ */

.appointment-section {
    padding: 30px 0 50px;
}

.appointment-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Time Slots */

.time-slots-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    padding: 28px 32px;
    transition: background 0.3s, border-color 0.3s;
}

.time-slots-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.time-slots-card .date-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.time-slots-card .date-selector button {
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
    background: #f8faff;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.85rem;
    font-weight: 500;
}

.time-slots-card .date-selector button:hover {
    background: #edf4fe;
    border-color: #0d6efd;
}

.time-slots-card .date-selector button.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

body.dark .time-slots-card .date-selector button {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark .time-slots-card .date-selector button:hover {
    background: #2d3a52;
    border-color: #7aa9ff;
}

body.dark .time-slots-card .date-selector button.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.time-slots-card .time-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.time-slots-card .time-slots-grid button {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8faff;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.time-slots-card .time-slots-grid button:hover:not(.booked) {
    background: #edf4fe;
    border-color: #0d6efd;
    transform: scale(1.02);
}

.time-slots-card .time-slots-grid button.booked {
    background: #fee2e2;
    color: #dc2626;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slots-card .time-slots-grid button.selected {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

body.dark .time-slots-card .time-slots-grid button {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark .time-slots-card .time-slots-grid button:hover:not(.booked) {
    background: #2d3a52;
    border-color: #7aa9ff;
}

body.dark .time-slots-card .time-slots-grid button.booked {
    background: #3a1a1a;
    color: #f87171;
}

body.dark .time-slots-card .time-slots-grid button.selected {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Quick Book Card */

.quick-book-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    padding: 28px 32px;
    transition: background 0.3s, border-color 0.3s;
    text-align: center;
}

.quick-book-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.quick-book-card p {
    color: #4a5c72;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

body.dark .quick-book-card p {
    color: #94a3b8;
}

.quick-book-card .quick-book-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

.quick-book-card .quick-book-btn i {
    margin-right: 8px;
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */

.reviews-section {
    padding: 30px 0 60px;
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.reviews-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.reviews-header .rating-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-header .rating-summary .big-rating {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0b1e33;
}

body.dark .reviews-header .rating-summary .big-rating {
    color: #f1f5f9;
}

.reviews-header .rating-summary .stars {
    color: #f59e0b;
    font-size: 1.1rem;
}

.reviews-header .rating-summary .total {
    color: #4a5c72;
    font-size: 0.9rem;
}

body.dark .reviews-header .rating-summary .total {
    color: #94a3b8;
}

.review-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(13, 110, 253, 0.06);
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: background 0.3s, border-color 0.3s;
}

.review-card .review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-card .reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.review-card .reviewer-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.review-card .review-date {
    font-size: 0.8rem;
    color: #4a5c72;
    margin-left: auto;
}

body.dark .review-card .review-date {
    color: #94a3b8;
}

.review-card .review-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.review-card .review-text {
    font-size: 0.95rem;
    color: #4a5c72;
    margin-top: 6px;
}

body.dark .review-card .review-text {
    color: #94a3b8;
}

.review-card .review-helpful {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #4a5c72;
}

body.dark .review-card .review-helpful {
    color: #94a3b8;
}

.review-card .review-helpful button {
    background: none;
    border: none;
    color: #0d6efd;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 4px;
    transition: color 0.2s;
}

.review-card .review-helpful button:hover {
    color: #0b5ed7;
}

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

@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .appointment-grid {
        grid-template-columns: 1fr;
    }
    .time-slots-card .time-slots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
    .floating-btn,
    .ai-chat-toggle {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .phone-popup {
        right: 55px;
        min-width: 180px;
    }
    .lang-popup {
        right: 55px;
        min-width: 130px;
    }
    .ai-chat-widget {
        width: 340px;
        height: 460px;
        right: 80px;
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-actions .btn {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .navbar .container {
        flex-wrap: wrap;
    }
    .nav-actions {
        margin-left: auto;
    }
    .profile-card .doctor-avatar {
        width: 110px;
        height: 110px;
    }
    .profile-card h2 {
        font-size: 1.3rem;
    }
    .time-slots-card .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .time-slots-card .date-selector {
        justify-content: center;
    }
    .reviews-header {
        flex-direction: column;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .sidebar {
        width: 280px;
        left: -300px;
    }
    .floating-actions {
        bottom: 16px;
        right: 16px;
        gap: 6px;
    }
    .floating-btn,
    .ai-chat-toggle {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
    .floating-btn .tooltip,
    .ai-chat-toggle .tooltip {
        display: none;
    }
    .phone-popup {
        right: 48px;
        min-width: 160px;
        bottom: 0;
    }
    .phone-popup .phone-item {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .lang-popup {
        right: 48px;
        min-width: 120px;
        bottom: 0;
    }
    .lang-popup .lang-item {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .ai-chat-widget {
        width: 300px;
        height: 420px;
        right: 70px;
        bottom: 16px;
    }
    .ai-chat-messages {
        padding: 10px 14px;
        gap: 8px;
    }
    .ai-chat-messages .message {
        font-size: 0.8rem;
        padding: 7px 12px;
    }
    .ai-chat-header {
        padding: 10px 14px;
        min-height: 50px;
    }
    .ai-chat-header .avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .ai-chat-header .header-info h4 {
        font-size: 0.8rem;
    }
    .ai-chat-input {
        padding: 8px 12px 12px;
        gap: 6px;
    }
    .ai-chat-input input {
        font-size: 0.8rem;
        padding: 6px 12px;
        min-height: 34px;
    }
    .ai-chat-input button {
        font-size: 0.8rem;
        padding: 6px 14px;
        min-height: 34px;
    }
    .quick-replies {
        padding: 0 12px 6px;
    }
    .quick-replies button {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .profile-card {
        padding: 20px;
    }
    .info-card {
        padding: 20px;
    }
    .time-slots-card {
        padding: 20px;
    }
    .quick-book-card {
        padding: 20px;
    }
    .time-slots-card .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .profile-card .profile-actions .btn {
        min-width: 100%;
    }
    .floating-btn,
    .ai-chat-toggle {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }
    .floating-actions {
        bottom: 12px;
        right: 12px;
        gap: 5px;
    }
    .phone-popup {
        right: 42px;
        min-width: 140px;
        bottom: 0;
        padding: 8px 0;
        border-radius: 12px;
    }
    .phone-popup .phone-item {
        padding: 6px 12px;
        font-size: 0.7rem;
        gap: 8px;
    }
    .phone-popup .phone-item i {
        width: 16px;
        font-size: 0.8rem;
    }
    .lang-popup {
        right: 42px;
        min-width: 100px;
        bottom: 0;
        padding: 6px 0;
        border-radius: 12px;
    }
    .lang-popup .lang-item {
        padding: 6px 12px;
        font-size: 0.7rem;
        gap: 6px;
    }
    .ai-chat-widget {
        width: 280px;
        height: 380px;
        right: 60px;
        bottom: 12px;
        border-radius: 16px;
    }
    .ai-chat-messages {
        padding: 10px 12px;
        gap: 8px;
    }
    .ai-chat-messages .message {
        font-size: 0.75rem;
        padding: 6px 10px;
        max-width: 90%;
    }
    .ai-chat-header {
        padding: 8px 12px;
        min-height: 44px;
    }
    .ai-chat-header .avatar {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    .ai-chat-header .header-info h4 {
        font-size: 0.75rem;
    }
    .ai-chat-header .header-info p {
        font-size: 0.6rem;
    }
    .ai-chat-input {
        padding: 6px 10px 10px;
        gap: 5px;
    }
    .ai-chat-input input {
        font-size: 0.75rem;
        padding: 5px 10px;
        min-height: 30px;
    }
    .ai-chat-input button {
        font-size: 0.75rem;
        padding: 5px 12px;
        min-height: 30px;
    }
    .quick-replies {
        padding: 0 10px 4px;
        gap: 4px;
    }
    .quick-replies button {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
}

@media (max-width: 400px) {
    .phone-popup {
        right: 38px;
        min-width: 120px;
    }
    .phone-popup .phone-item {
        font-size: 0.65rem;
        padding: 5px 10px;
    }
    .lang-popup {
        right: 38px;
        min-width: 90px;
    }
    .lang-popup .lang-item {
        font-size: 0.65rem;
        padding: 5px 10px;
    }
    .ai-chat-widget {
        width: 250px;
        height: 340px;
        right: 52px;
    }
    .ai-chat-messages {
        padding: 8px 10px;
    }
    .ai-chat-messages .message {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    .ai-chat-input input {
        font-size: 0.7rem;
        padding: 4px 8px;
        min-height: 26px;
    }
    .ai-chat-input button {
        font-size: 0.7rem;
        padding: 4px 10px;
        min-height: 26px;
    }
}

/* Google Maps link under the location (doctorDirectionsUrl()) */
.info-card .directions-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
}

.info-card .directions-link:hover {
    text-decoration: underline;
}
