/* venue-detail.css - 單一店家詳情頁面樣式 */

.venue-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 80px;
}

/* 返回按鈕 */
.back-btn {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
}

.back-btn span:first-child {
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.back-btn span:last-child {
    position: absolute;
    font-size: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.back-btn:hover {
    width: 100px;
    background: rgba(74, 158, 255, 0.2);
    border-color: var(--accent-color);
    border-radius: 25px;
}

.back-btn:hover span:first-child {
    transform: translateX(-15px);
}

.back-btn:hover span:last-child {
    opacity: 1;
    transform: translateX(10px) translateY(0);
}

/* 店家標題區 */
.venue-header {
    margin-bottom: 40px;
}

.venue-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.9) 0%, rgba(41, 50, 65, 0.8) 100%);
    min-height: 400px;
}

.venue-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.venue-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venue-hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.venue-info-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    min-height: 400px;
    padding: 40px;
    color: white;
}

.venue-basic-info {
    max-width: 100%;
    width: 100%;
}

.venue-header-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.venue-left-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.venue-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.venue-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venue-title-section {
    flex: 1;
    min-width: 200px;
}

.venue-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.venue-rating-category {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.venue-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    font-size: 18px;
}

.rating-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.venue-category {
    font-size: 16px;
    color: var(--text-secondary);
}

.venue-actions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.venue-actions button,
.venue-actions a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 13px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.favorite-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.favorite-btn:hover,
.favorite-btn.favorited {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.share-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.call-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* 照片畫廊 */
.venue-photo-gallery {
    margin-top: 20px;
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    max-width: 100%;
}

.photo-gallery-item {
    position: relative;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-gallery-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 5px;
}

.photo-gallery-more:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-3px);
}

.photo-gallery-more span:first-child {
    font-size: 24px;
}

.photo-gallery-more .more-text {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 店家內容區 */
.venue-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.venue-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

.venue-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* 特色標籤 */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* 活動網格 */
.venue-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.venue-event-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.venue-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.venue-event-card .event-image,
.venue-event-card .event-image-placeholder {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.venue-event-card .event-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    font-size: 40px;
    color: var(--text-tertiary);
}

.venue-event-card .event-info {
    padding: 15px;
}

.venue-event-card .event-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.venue-event-card .event-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.venue-event-card .event-date {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.venue-event-card .event-type,
.venue-event-card .music-genre {
    font-size: 12px;
    color: var(--text-secondary);
}

.venue-event-card .event-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--success-color);
}

.view-all-events {
    text-align: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* 側邊欄資訊卡片 */
.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* 聯絡資訊 */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    font-size: 18px;
    min-width: 24px;
    text-align: center;
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
}

.contact-value:hover {
    color: var(--primary-color);
}

/* 基本資訊統計 */
.venue-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    font-size: 18px;
    min-width: 24px;
    text-align: center;
}

.stat-text {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* 營業時間 */
.opening-hours {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.day-name {
    font-weight: 500;
    color: var(--text-primary);
}

.hours-time {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 交通資訊 */
.transport-info,
.accessibility-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    font-size: 18px;
    min-width: 24px;
    text-align: center;
}

.info-text {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 照片模態框 */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
}

.modal-photo {
    max-width: 100%;
    max-height: calc(90vh - 80px);
    overflow: hidden;
    border-radius: 10px;
}

.modal-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.photo-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    color: white;
}

.photo-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.photo-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.photo-counter {
    font-size: 16px;
    font-weight: 500;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .venue-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-sidebar {
        order: -1;
    }
    
    .content-sidebar .info-card {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .content-sidebar .card-title {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .venue-detail-container {
        padding: 15px;
        margin-top: 70px;
    }
    
    /* 手機版返回按鈕固定在左側中間 */
    .back-btn {
        position: fixed;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        background: rgba(26, 35, 50, 0.95);
        backdrop-filter: blur(15px);
        border: 1px solid var(--border-color);
        border-radius: 50%;
        padding: 0;
        margin: 0;
        z-index: 1001;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .back-btn span:first-child {
        font-size: 24px;
        transform: none;
    }
    
    .back-btn span:last-child {
        display: none;
    }
    
    .back-btn:hover {
        width: 45px;
        background: rgba(74, 158, 255, 0.3);
        border-color: var(--accent-color);
        border-radius: 50%;
    }
    
    .back-btn:hover span:first-child {
        transform: none;
    }
    
    .venue-hero {
        min-height: auto;
        border-radius: 15px;
    }
    
    .venue-hero-background {
        position: relative;
        height: 250px;
    }
    
    .venue-info-overlay {
        position: relative;
        min-height: auto;
        padding: 0;
        background: transparent;
    }
    
    .venue-basic-info {
        background: rgba(26, 35, 50, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 0 0 15px 15px;
        padding: 20px;
        margin-top: -1px;
    }
    
    .venue-header-top {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
    
    .venue-left-section {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }
    
    .venue-logo {
        width: 80px;
        height: 80px;
        margin-top: -40px;
        border: 4px solid rgba(26, 35, 50, 0.95);
    }
    
    .venue-title-section {
        width: 100%;
    }
    
    .venue-title {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .venue-rating-category {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .venue-actions {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .venue-actions button,
    .venue-actions a {
        flex: 1;
        justify-content: center;
        font-size: 12px;
        padding: 10px 12px;
        min-width: 0;
    }
    
    .venue-actions button span:last-child,
    .venue-actions a span:last-child {
        display: none;
    }
    
    .photo-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .photo-gallery-item,
    .photo-gallery-more {
        height: 100px;
    }
    
    .venue-events-grid {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar .info-card {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-close {
        top: -40px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .venue-detail-container {
        padding: 10px;
    }
    
    .venue-hero-background {
        height: 200px;
    }
    
    .venue-basic-info {
        padding: 15px;
    }
    
    .venue-left-section {
        gap: 12px;
    }
    
    .venue-logo {
        width: 70px;
        height: 70px;
        margin-top: -35px;
    }
    
    .venue-title {
        font-size: 1.4rem;
    }
    
    .venue-actions button,
    .venue-actions a {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .photo-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photo-gallery-item,
    .photo-gallery-more {
        height: 80px;
    }
}

/* 通知樣式 */
.notification {
    font-family: var(--font-primary);
}

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

.venue-section {
    animation: fadeInUp 0.6s ease-out;
}

.info-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 無障礙支持 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高對比模式 */
@media (prefers-contrast: high) {
    .info-card {
        border: 2px solid var(--text-primary);
    }
    
    .venue-event-card {
        border: 2px solid var(--border-color);
    }
    
    .feature-tag {
        border: 1px solid var(--text-primary);
    }
}