/* ================================================
   HOSPITAL PROFILE PAGE STYLES
   ================================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lexend', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
}

/* Background */
.background {
    min-height: 100vh;
    padding: 120px 0 60px;
}

/* Hospital Hero Section */
.hospital-hero {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.hospital-image-container {
    position: relative;
}

.hospital-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hospital-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #23939e, #87aa44);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hospital-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hospital-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hospital-location,
.hospital-landmark {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 8px;
}

.hospital-location i,
.hospital-landmark i {
    color: #23939e;
    width: 20px;
}

/* Hospital Stats */
.hospital-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #23939e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #23939e;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hospital Actions */
.hospital-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.primary-btn {
    background: linear-gradient(135deg, #23939e, #87aa44);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 147, 158, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 147, 158, 0.4);
}

.secondary-btn {
    background: white;
    color: #23939e;
    border: 2px solid #23939e;
}

.secondary-btn:hover {
    background: #23939e;
    color: white;
    transform: translateY(-2px);
}

/* Hospital Details Tabs */
.hospital-details {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.tabs-container {
    width: 100%;
}

.tabs-nav {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 20px 24px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: #23939e;
    background: #f1f5f9;
}

.tab-btn.active {
    color: #23939e;
    background: white;
    border-bottom-color: #23939e;
}

.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
}

/* Overview Tab */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.overview-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);         
    border-color: #23939e;
}

.overview-card h3 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.overview-card h3 i {
    color: #23939e;
    font-size: 20px;
}

.overview-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Hours List */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.hour-item.emergency {
    color: #dc2626;
    font-weight: 600;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
}

.contact-item i {
    color: #23939e;
    width: 20px;
    text-align: center;
}

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

.accreditation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
}

.accreditation-item i {
    color: #10b981;
    width: 20px;
    text-align: center;
}

/* Doctors Tab */
.doctors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.doctors-header h3 {
    color: #1e293b;
    font-size: 24px;
    font-weight: 600;
}

.doctors-filter select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.doctor-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: #23939e;
}

.doctor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #23939e;
}

.doctor-name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.doctor-specialty {
    color: #23939e;
    font-weight: 500;
    margin-bottom: 8px;
}

.doctor-experience {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

.doctor-rating {
    color: #10b981;
    font-size: 14px;
    font-weight: 500;
}

/* Services Tab */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-category {
    background: #f8fafc;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: #23939e;
}

.service-category h3 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-category h3 i {
    color: #23939e;
    font-size: 20px;
}

.service-category ul {
    list-style: none;
}

.service-category li {
    padding: 8px 0;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 20px;
}

.service-category li:last-child {
    border-bottom: none;
}

.service-category li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Facilities Tab */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.facility-item {
    background: #f8fafc;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: #23939e;
}

.facility-item i {
    font-size: 40px;
    color: #23939e;
    margin-bottom: 20px;
}

.facility-item h4 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.facility-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Reviews Tab */
.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.rating-overview {
    text-align: center;
}

.rating-score {
    font-size: 4rem;
    font-weight: 700;
    color: #23939e;
    margin-bottom: 10px;
}

.rating-stars {
    font-size: 24px;
    color: #fbbf24;
    margin-bottom: 10px;
}

.rating-count {
    color: #64748b;
    font-size: 14px;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #64748b;
}

.rating-bar span:first-child {
    width: 60px;
}

.rating-bar span:last-child {
    width: 40px;
    text-align: right;
}

.bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: #fbbf24;
    transition: width 0.3s ease;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-item {
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #23939e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.reviewer-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.review-date {
    color: #64748b;
    font-size: 12px;
}

.review-rating {
    color: #fbbf24;
    font-size: 16px;
}

.review-text {
    color: #64748b;
    line-height: 1.6;
}

/* More Doctors Button Styles */
.more-doctors-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
}

.more-doctors-btn {
    background: linear-gradient(135deg, #23939e 0%, #87aa44 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(35, 147, 158, 0.3);
}

.more-doctors-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 147, 158, 0.4);
    background: linear-gradient(135deg, #1e7a83 0%, #759938 100%);
}

.more-doctors-btn:active {
    transform: translateY(0);
}

.more-doctors-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.more-doctors-btn:hover i {
    transform: rotate(90deg);
}

.more-doctors-btn.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hospital-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }
    
    .hospital-image-container {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hospital-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .background {
        padding: 100px 0 40px;
    }
    
    .hospital-hero {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .hospital-header h1 {
        font-size: 2rem;
    }
    
    .hospital-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .hospital-actions {
        flex-direction: column;
    }
    
    .primary-btn,
    .secondary-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: none;
        min-width: 120px;
    }
    
    .tab-content {
        padding: 25px;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .overview-card {
        padding: 20px;
    }
    
    .doctors-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .facilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .rating-score {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .hospital-hero {
        padding: 20px;
    }
    
    .hospital-header h1 {
        font-size: 1.75rem;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .overview-card,
    .doctor-card,
    .service-category,
    .facility-item,
    .review-item {
        padding: 20px;
    }
    
    .rating-score {
        font-size: 2.5rem;
    }
}

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

.hospital-hero,
.hospital-details {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
