/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Noto+Serif+TC:wght@400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

:root {
    --coffee-deep: #2d241e;
    --coffee-accent: #8b7355;
    --coffee-light: #fdfaf7;
    --coffee-warm: #a67c52;
    --coffee-gold: #c6a664;
    --status-open: #4caf50;
    --status-closed: #e57373;
    --status-warning: #ffb74d;
    --white: #ffffff;
    --text-muted: #6b5c54;
    --bg-gradient: linear-gradient(135deg, #fdfaf7 0%, #f4eee8 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 4px 12px rgba(45, 36, 30, 0.04);
    --shadow-md: 0 12px 30px rgba(45, 36, 30, 0.08);
    --shadow-lg: 0 20px 50px rgba(45, 36, 30, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.coffee-shop-info {
    max-width: 960px;
    margin: 4rem auto;
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
    color: var(--coffee-deep);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 0;
    position: relative;
    line-height: 1.7;
}

/* Shop Header Area */
.shop-header {
    text-align: center;
    padding: 6rem 2rem 5rem;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.shop-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(45, 36, 30, 0.6) 0%, rgba(45, 36, 30, 0.85) 100%);
    z-index: 1;
}

.shop-logo {
    width: 140px;
    height: 140px;
    margin-bottom: 2rem;
    border-radius: 50%; /* Pure circle for a more elegant profile look */
    background: var(--white);
    padding: 0; /* No padding for cover images */
    border: 5px solid var(--white); /* Crisp white border */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-logo:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures logo content fills the circle perfectly */
    border-radius: 50%;
}

.coffee-shop-info .shop-header h3 {
    font-family: 'Noto Serif TC', serif;
    font-size: 2.8rem;
    color: #ffffff !important;
    margin: 0.5rem 0 1.5rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.booking-btn-wrapper {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.coffee-shop-info .booking-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--coffee-gold);
    color: #ffffff !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(198, 166, 100, 0.3);
}

.coffee-shop-info .booking-btn i {
    color: #ffffff !important;
}

.coffee-shop-info .booking-btn:hover {
    background: var(--white) !important;
    color: var(--coffee-deep) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.coffee-shop-info .booking-btn:hover i {
    color: var(--coffee-deep) !important;
}

/* Status Badge - More Integrated */
.shop-status-wrapper {
    margin-top: -30px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.shop-status .status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--white);
    color: var(--coffee-deep);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(139, 115, 85, 0.1);
    transition: var(--transition);
}

.status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status.open { color: var(--status-open); }
.status.closed { color: var(--status-closed); }
.status.opening-soon, .status.closing-soon { color: var(--status-warning); }

.status.open::before {
    background: var(--status-open);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(0.9); opacity: 1; }
}

/* Announcement */
.shop-announcement {
    background: #fffdf2;
    border: 1px dashed #f1d89d;
    padding: 1.2rem 2rem;
    margin: 3rem 4rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #856404;
}

.shop-announcement i {
    font-size: 1.4rem;
    color: var(--coffee-gold);
}

/* Environment Gallery */
.shop-gallery-section {
    padding: 0 4rem;
    margin: 2rem 0;
}

.shop-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px; /* 增加高度，減少裁切比例 */
    gap: 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gallery-photo {
    background-size: cover;
    background-position: center top; /* 改為頂部對齊，避免切到文字或頭部 */
    transition: var(--transition);
    cursor: zoom-in;
    position: relative;
    filter: brightness(0.9);
}

.gallery-photo::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(45, 36, 30, 0.2);
    opacity: 0;
    transition: var(--transition);
}

.gallery-photo:hover {
    filter: brightness(1.1);
}

.gallery-photo:hover::after {
    opacity: 1;
}

.gallery-photo:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* Social Media */
.social-media {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 4rem 0;
}

.coffee-shop-info .social-link {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--coffee-light);
    color: var(--coffee-deep) !important;
    font-size: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(139, 115, 85, 0.08);
}

.coffee-shop-info .social-link:hover {
    background: var(--coffee-deep) !important;
    color: #ffffff !important;
    transform: translateY(-8px) rotate(5deg);
    box-shadow: var(--shadow-md);
}

.coffee-shop-info .social-link i {
    color: inherit !important;
}

/* Content Layout */
.shop-content-container {
    padding: 0 4rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.coffee-shop-info h4 {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.8rem;
    color: var(--coffee-deep);
    margin: 0 0 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coffee-shop-info h4 i {
    color: var(--coffee-accent);
    opacity: 0.6;
}

/* Features */
.feature-category {
    margin-bottom: 3rem;
}

.coffee-shop-info .feature-category h5 {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: var(--coffee-deep);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-tag {
    background: var(--coffee-light);
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(139, 115, 85, 0.06);
    transition: var(--transition);
}

.feature-tag:hover {
    background: var(--white);
    border-color: var(--coffee-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.feature-tag i {
    color: var(--coffee-warm);
}

/* Info Section */
.info-section {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: var(--coffee-light);
    border-radius: var(--radius-md);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.info-section:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.info-section i {
    font-size: 1.5rem;
    color: var(--coffee-warm);
    padding-top: 4px;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.info-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.info-value a:hover {
    color: var(--coffee-warm);
}

.wifi-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.wifi-item {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    border: 1px solid rgba(139, 115, 85, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.wifi-item:hover {
    border-color: var(--coffee-gold);
    background: #fffdfa;
}

/* Business Hours - Modern Grid */
.business-hours-container {
    display: grid;
    gap: 1rem;
}

.business-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background: var(--coffee-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.business-day.current-day {
    background: var(--coffee-deep);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.business-day.current-day .day-name { color: var(--white); }
.business-day.current-day .hours { color: var(--white); opacity: 0.9; }

.day-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--coffee-deep);
}

.hours {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    opacity: 0.8;
}

.hours.closed {
    color: var(--status-closed);
    opacity: 1;
}

.business-day.current-day .hours.closed {
    color: #ff8a80;
}

/* Maps and Navigation */
.shop-map-section {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%; height: 400px; border: 0; display: block;
    filter: sepia(10%) contrast(1.05);
}

.nav-extra-btns {
    display: flex;
    padding: 1.5rem;
    gap: 1rem;
    background: var(--white);
}

.coffee-shop-info .nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none !important;
    transition: var(--transition);
    color: #ffffff !important;
}

.coffee-shop-info .nav-btn i {
    color: #ffffff !important;
}

.coffee-shop-info .nav-btn.google { background: #4285F4 !important; }
.coffee-shop-info .nav-btn.apple { background: #000000 !important; }

.nav-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Actions */
.shop-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 4rem 0 2rem;
}

.action-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background: var(--white);
    border: 2px solid var(--coffee-light);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coffee-shop-info .action-btn:hover {
    background: var(--coffee-deep);
    color: #ffffff !important;
    border-color: var(--coffee-deep);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.coffee-shop-info .action-btn:hover i {
    color: #ffffff !important;
}

/* Copy Toast */
.copy-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--coffee-deep);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    z-index: 10000;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
}

/* QR Modal */
.qr-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(45, 36, 30, 0.8);
    backdrop-filter: blur(12px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.qr-content {
    background: var(--white);
    padding: 4rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .coffee-shop-info { margin: 1rem; border-radius: 0; }
    .shop-header h3 { font-size: 2.4rem; }
    .shop-announcement, .shop-gallery-section, .shop-content-container { padding: 0 2rem; margin-top: 2rem; }
    .shop-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 140px); }
    .wifi-info { grid-template-columns: 1fr; }
    .business-day { padding: 1.2rem; }
}

/* Lightbox Styles */
.csi-no-scroll {
    overflow: hidden !important;
}

.csi-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.csi-lightbox-modal.active {
    opacity: 1;
}

.csi-lightbox-modal img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.csi-lightbox-modal.active img {
    transform: scale(1);
}

.csi-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.csi-lightbox-close:hover {
    transform: rotate(90deg) scale(1.2);
    color: var(--primary);
}

@media (max-width: 768px) {
    .csi-lightbox-modal img {
        max-width: 95%;
    }
    .csi-lightbox-close {
        top: 20px;
        right: 20px;
    }
}
