/* 美容師詳情頁面樣式 */

.beautician-detail {
    padding: 50px 0;
}

.beautician-profile {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* 照片和視頻區域 */
.profile-gallery {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 30px;
}

.main-photo {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
}

.main-photo img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    display: block;
    margin: 0 auto;
}

.photo-thumbnails {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.thumbnail {
    flex: 0 0 calc(25% - 10px);
    max-width: calc(25% - 10px);
    height: 80px;
    margin: 5px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
}

.thumbnail.active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.video-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: black;
}

.video-container video {
    width: 100%;
    display: block;
}

/* 個人資料區域 */
.profile-info {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 30px;
}

.profile-info h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-section {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
}

.label {
    font-weight: 500;
    color: var(--dark-color);
    margin-right: 10px;
    min-width: 60px;
}

.value {
    color: var(--text-color);
}

.services {
    margin-bottom: 30px;
}

.services h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-description {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    line-height: 1.8;
}

.price {
    margin-bottom: 30px;
}

.price h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.price-amount {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* 班表區域 */
.schedule-section {
    margin-top: 50px;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 12px;
}

.schedule-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.schedule-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.schedule-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.schedule-day {
    flex: 0 0 calc(14.285% - 15px);
    max-width: calc(14.285% - 15px);
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: all 0.3s ease;
}

.schedule-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--shadow-color);
}

.schedule-day.on-duty {
    border-top: 3px solid var(--success-color);
}

.schedule-day.off-duty {
    border-top: 3px solid var(--danger-color);
}

.day-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.date {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.status {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.on-duty .status {
    color: var(--success-color);
}

.off-duty .status {
    color: var(--danger-color);
}

.time {
    font-size: 0.9rem;
    color: var(--text-color);
}

.schedule-limit-note {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #fdf5e2;
    border-left: 4px solid var(--warning-color);
    color: #e67e22;
    border-radius: 4px;
    font-size: 0.9rem;
}

.schedule-limit-note i {
    margin-right: 5px;
}

.overnight-note {
    font-size: 0.8rem;
    color: #e67e22;
    margin-top: 2px;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .profile-gallery, .profile-info {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .profile-info {
        margin-top: 30px;
    }
    
    .schedule-day {
        flex: 0 0 calc(33.333% - 15px);
        max-width: calc(33.333% - 15px);
    }
}

@media (max-width: 768px) {
    .main-photo {
        height: 350px;
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
    
    .schedule-section {
        padding: 20px;
    }
    
    .schedule-day {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .main-photo {
        height: 300px;
    }
    
    .thumbnail {
        flex: 0 0 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }
    
    .schedule-day {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

#imageModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#imageModal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
}

.price-plans, .extra-services {
    margin-bottom: 25px;
}
.price-plans h3, .extra-services h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}
.price-plans ul, .extra-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.price-plans li, .extra-services li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
}
.plan-name, .service-name {
    font-weight: 500;
    color: var(--primary-color);
}
.plan-price, .service-price {
    color: var(--success-color);
    font-weight: 600;
}
.plan-desc {
    color: #888;
    font-size: 0.95em;
}
.service-notes-section {
    margin-top: 40px;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px 20px;
}
.service-notes-section h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}
.notes-description {
    background: #fffbe6;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 8px;
    color: #7f8c8d;
    line-height: 1.7;
}

.today-status {
    font-size: 1.1rem;
    margin-left: 10px;
    font-weight: 500;
}
.today-on {
    color: var(--success-color);
}
.today-off {
    color: var(--danger-color);
}
.today-none {
    color: #aaa;
}

/* 廣告區塊樣式（與 beauticians.css 保持一致） */
.promotion-section {
  background-color: #f8f9fa;
  padding: 20px 0 10px 0;
  margin: 20px 0 10px 0;
  text-align: center;
}
.promotion-section img {
  max-width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.text-ads-section {
  padding: 20px 0 10px 0;
  background-color: #f8f9fa;
  margin: 20px 0 10px 0;
}
.text-ads-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.text-ads-header h3 {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
}
.ad-sponsor-link {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 20px;
}
.ad-sponsor-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
.text-ads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.text-ad-item {
  background-color: white;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 15px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.text-ad-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.text-ad-item h4 {
  font-size: 1rem;
  color: #333;
  margin: 0 0 10px 0;
}
.text-ad-item p {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 15px 0;
  line-height: 1.4;
  flex-grow: 1;
}
.text-ad-item .btn {
  display: inline-block;
  padding: 5px 15px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  text-align: center;
}
.text-ad-item .btn:hover {
  background-color: #d5317c;
  color: white;
  text-decoration: none;
}
@media (max-width: 992px) {
  .text-ads {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
  }
}
@media (max-width: 768px) {
  .text-ads {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
}
@media (max-width: 576px) {
  .text-ads {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
}

/* 影片縮圖樣式 */
.video-thumb {
    position: relative;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.85;
    transition: all 0.3s;
}
.video-thumb .video-thumb-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}
.video-thumb .play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}
.video-thumb.active, .video-thumb:hover {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--primary-color);
}
.main-photo video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #000;
    display: block;
} 