/* Global Styles for Member Frontend */

:root {
    --primary-color: #3490dc;
    --secondary-color: #6574cd;
    --success-color: #38c172;
    --warning-color: #ffed4a;
    --danger-color: #e3342f;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-bg: #f8fafc;
    --body-color: #212529;
}

/* Base Styles */
body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--body-bg);
    color: var(--body-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: #1d68a7;
    text-decoration: underline;
}

/* Header Styles */
.header {
    margin-bottom: 20px;
}

.navbar-brand img {
    height: 40px;
}

.nav-link.active {
    font-weight: 600;
    color: var(--primary-color) !important;
}

.avatar-small {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

/* Notification Dropdown */
.notification-dropdown {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.notification-content {
    display: flex;
    flex-direction: column;
}

.notification-content small {
    color: #6c757d;
    font-size: 0.75rem;
}

.dropdown-item.unread {
    background-color: #e8f4fe;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f1f1f1;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-footer {
    background-color: #fff;
    border-top: 1px solid #f1f1f1;
}

/* Expert Card */
.expert-card {
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.expert-card .expert-img {
    height: 200px;
    object-fit: cover;
}

.expert-card .expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    margin-top: -40px;
    background-color: white;
}

/* Service Card */
.service-card {
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.service-card .service-img {
    height: 200px;
    object-fit: cover;
}

.service-card .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.service-card .expert-info {
    display: flex;
    align-items: center;
}

.service-card .expert-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

/* Button Styles */
.btn {
    border-radius: 0.25rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-outline-primary:hover {
    background-color: #1d68a7;
    border-color: #1d68a7;
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: #a1cbef;
    box-shadow: 0 0 0 0.25rem rgba(52, 144, 220, 0.25);
}

/* Star Rating */
.rating {
    color: #ffc107;
}

.rating.empty {
    color: #e2e6ea;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(52, 144, 220, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Home Page Hero Section */
.hero-section {
    background: linear-gradient(to right, rgba(52, 144, 220, 0.9), rgba(101, 116, 205, 0.9)), url('../../../images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
}

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

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Category Section */
.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Media Queries */
@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .expert-card .expert-img,
    .service-card .service-img {
        height: 150px;
    }
} 