/* =========================================================================
   lala Live Bar - Stylesheet
   Theme: Warm, Dark, Subtle Teal Accents (Bar vibe)
========================================================================= */

:root {
    --primary-color: #28D4D4;
    --bg-color: #120e0d; /* 繝舌・繧峨＠縺丞ｰ代＠證悶°縺ｿ縺ｮ縺ゅｋ鮟・*/
    --surface-color: rgba(30, 25, 24, 0.8);
    --text-main: #f5eedc;
    --text-muted: #b5a89e;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.8;
}

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

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

.mt-4 { margin-top: 40px; }

/* Header */
.bar-header {
    padding: 20px 40px;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.back-link {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
}

.back-link:hover { color: #fff; }

/* Hero */
.bar-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(18,14,13,0.3) 0%, var(--bg-color) 100%), 
                url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9IiMxYTFhMWEiLz48L3N2Zz4=');
    background-size: cover;
    background-position: center;
}

.bar-logo {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 0.15em;
}

.bar-catchphrase {
    color: var(--text-muted);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

/* Info */
.bar-info { padding: 40px 0 80px; }

.info-card {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.info-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.details {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 0;
}

.detail-item strong { color: var(--primary-color); }

.menu-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.menu-list { list-style: none; max-width: 500px; margin: 0 auto; }

.menu-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.bar-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Animations */
.fade-in { opacity: 0; transition: opacity 1s ease; }
.fade-in.appear { opacity: 1; }
.fade-in-up { opacity: 0; transform: translateY(20px); transition: all 1s ease; }
.fade-in-up.appear { opacity: 1; transform: translateY(0); }

/* --- Modal Styles for Confirm Screen --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: var(--bg-color);
    border: 1px solid var(--primary-color);
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(40, 212, 212, 0.2);
}
.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
}
.modal-close:hover { color: var(--primary-color); }

/* SVG Icon Fix */
.footer-sns svg {
    width: 24px;
    height: 24px;
    transition: color 0.3s ease;
}
.footer-sns a {
    color: var(--text-muted);
}
.footer-sns a:hover svg {
    color: var(--primary-color);
}

/* --- Calendar --- */
.calendar-wrapper {
    background: var(--surface-color);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.calendar-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    letter-spacing: 0.1em;
}
.cal-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}
.cal-btn:hover {
    background: var(--primary-color);
    color: #000;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}
.calendar-weekdays {
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.cal-day-name.sunday { color: #e74c3c; }
.cal-day-name.saturday { color: #3498db; }

.cal-day {
    aspect-ratio: 1;
    background: rgba(0,0,0,0.8);
    border: none;
    border-radius: 0;
    padding: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
}
.cal-day:hover {
    background: rgba(40, 212, 212, 0.2);
    transform: none;
    border: 1px solid var(--primary-color);
    z-index: 10;
}
.cal-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}
.cal-day.empty:hover {
    transform: none;
}
.cal-date {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    margin-bottom: 5px;
}
.cal-day.sunday .cal-date { color: #e74c3c; }
.cal-day.saturday .cal-date { color: #3498db; }

.cal-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: auto;
}
.status-available { background-color: #2ecc71; box-shadow: 0 0 5px #2ecc71;}
.status-few { background-color: #f39c12; box-shadow: 0 0 5px #f39c12;}
.status-full { background-color: #e74c3c; box-shadow: 0 0 5px #e74c3c;}
.status-closed { background-color: #7f8c8d; }

.cal-event {
    background: var(--primary-color);
    color: #000;
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 2px;
    margin-top: 2px;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.cal-event-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-top: 2px;
}

.legend-item {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}
.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

/* --- Timetable Modal --- */
.tt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tt-item:last-child {
    border-bottom: none;
}
.tt-time {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
}
.tt-status {
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
}
.tt-ok {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}
.tt-few {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border: 1px solid #f39c12;
}
.tt-full {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}
.tt-event {
    text-align: center;
    padding: 30px 10px;
}

/* --- Floating Share Button --- */
.footer-sns svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: var(--transition);
}

.footer-sns svg:hover {
    fill: var(--primary-color);
}

#floatingShareBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
}

#floatingShareBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(40, 212, 212, 0.5);
}

#floatingShareBtn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* --- Share Notification Toast --- */
.toast-notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}






/* --- Floating Home Button --- */
#floatingHomeBtn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
}
#floatingHomeBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(40, 212, 212, 0.5);
}
#floatingHomeBtn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
@media (max-width: 768px) {
    #floatingHomeBtn {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    #floatingHomeBtn svg {
        width: 20px;
        height: 20px;
    }
}
