/* =================================================================== */
/* FIND V - LOCATION DETAIL STYLESHEET                                 */
/* =================================================================== */

/* --- Biến màu và Font chữ --- */
:root {
    --dark-background: #3b3f4c;
    --secondary-background: #f0f2f5;
    --text-color-light: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-medium-on-dark: #d1d5db;
    --accent-color: #bf1414;
    --border-color-light: #E0E0E0;
    --brand-color-findv: #bf1414;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* === Reset & Base Styles === */
*, *::before, *::after { box-sizing: border-box; }
body, html {
    margin: 0; padding: 0;
    font-family: var(--font-body);
    background-color: var(--secondary-background);
    color: var(--text-color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1 0 auto; }
a { text-decoration: none; color: var(--accent-color); transition: color 0.2s ease; }
a:hover { color: #8e0f0f; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-color-dark); }

/* === Header === */
.site-header {
    background-color: var(--secondary-background);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color-light);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.header-logo img { height: 40px; }
.header-nav { flex-grow: 1; display: flex; justify-content: center; }
.header-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.header-nav a {
    color: var(--text-dark); font-weight: 500; position: relative; padding-bottom: 5px;
}
.header-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background-color: var(--brand-color-findv);
    transition: width 0.3s ease;
}
.header-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.login-button {
    background-color: var(--brand-color-findv); color: #fff;
    padding: 10px 20px; border-radius: 8px; font-weight: 500;
    transition: background-color 0.3s ease;
}
.login-button:hover { background-color: #8e0f0f; color: #fff; }
.lang-switcher { display: flex; align-items: center; gap: 5px; border-left: 1px solid var(--border-color-light); padding-left: 20px; }
.lang-switcher button { background: none; border: none; font-size: 0.9rem; font-weight: 700; cursor: pointer; opacity: 0.6; transition: opacity 0.3s ease; }
.lang-switcher button:hover { opacity: 1; }
.lang-switcher button.active { opacity: 1; color: var(--brand-color-findv); }

/* === Footer === */
.site-footer {
    background-color: #212529; color: #adb5bd;
    padding: 60px 0 0 0; margin-top: auto;
}
.footer-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.footer-about, .footer-links, .footer-social { flex: 1; min-width: 250px; }
.footer-logo { height: 45px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-about p { line-height: 1.8; }
.footer-links h4, .footer-social h4 { color: #fff; font-family: var(--font-heading); margin-bottom: 20px; font-size: 1.2rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #adb5bd; transition: color 0.3s ease; }
.footer-links a:hover { color: #fff; }
.social-icons { display: flex; gap: 15px; }
.social-icons a {
    color: #adb5bd; font-size: 1.2rem; width: 40px; height: 40px;
    display: flex; justify-content: center; align-items: center;
    border: 1px solid #495057; border-radius: 50%;
    transition: all 0.3s ease;
}
.social-icons a:hover { color: #fff; background-color: var(--brand-color-findv); border-color: var(--brand-color-findv); }
.footer-bottom { border-top: 1px solid #343a40; margin-top: 40px; padding: 20px 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: 0.9rem; }

/* === Layout chính 2 cột === */
.business-card {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    margin: 5vh auto;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    background-color: var(--dark-background);
}

/* === Cột trái - Panel tối === */
.card-left {
    flex: 0 0 40%;
    background-color: var(--dark-background);
    color: var(--text-color-light);
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0; /* For GSAP animation */
}
.store-image {
    width: 100%;
    padding-top: 60%; /* Tỷ lệ ảnh 5:3 */
    position: relative;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    margin-bottom: 24px;
    flex-shrink: 0;
}
.store-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.identity-info .greeting {
    font-size: 1rem;
    color: var(--text-color-medium-on-dark);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.identity-info .name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 8px 0;
    color: #FFFFFF;
}
.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    margin-top: 16px;
    font-size: 0.9rem;
}
.event-badge img { width: 24px; height: 24px; }

.id-section {
    margin-top: auto;
    padding-top: 32px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.action-buttons { display: flex; gap: 1rem; width: 100%; }
.main-action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.main-action-btn.checkin { background-color: var(--accent-color); color: white; }
.main-action-btn.qr { background-color: #fff; color: var(--text-color-dark); }
.main-action-btn:hover { transform: translateY(-2px); }

.qr-code-button {
    background: none; border: none; color: var(--text-color-medium-on-dark);
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    font-size: 0.9rem;
}
.qr-code-button:hover { color: white; }

/* === Cột phải - Panel sáng === */
.card-right {
    flex: 1;
    background-color: var(--secondary-background);
    padding: 48px;
    display: flex;
    flex-direction: column;
    opacity: 0; /* For GSAP animation */
}
.bio-section {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: 32px;
}
.bio-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color-dark);
}
.bio-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-item a, .contact-item > a:not([href]) {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background-color: #fff;
    border: 1px solid var(--border-color-light);
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-item > a { cursor: pointer; }
.contact-item > a[href]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.contact-item .icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 16px;
    width: 24px;
    text-align: center;
    padding-top: 5px;
}
.contact-item .text-content {
    display: flex;
    flex-direction: column;
}
.contact-item .label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}
.contact-item .value {
    font-size: 1rem;
    color: var(--text-color-dark);
    font-weight: 500;
}
.distance { font-size: 0.9rem; color: var(--accent-color); }

.special-offer a {
    background: linear-gradient(45deg, #fff5e6, #ffe9cc);
    border-left: 4px solid #ff9800;
}
.special-offer .icon i { color: #ff9800; }

/* === Modals === */
.qr-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
    display: none; justify-content: center; align-items: center; z-index: 1000;
    opacity: 0; transition: opacity .3s ease;
}
.qr-modal-overlay.show { display: flex; opacity: 1; }
.qr-modal-content {
    background: white; padding: 30px 40px; border-radius: 12px;
    text-align: center; position: relative; width: 90%; max-width: 340px;
    transform: translateY(-30px); transition: transform .3s ease;
}
.qr-modal-overlay.show .qr-modal-content { transform: translateY(0); }
.close-qr-modal { position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold; color: #aaa; cursor: pointer; }
.qr-modal-content h2 { margin-top: 0; }
.qr-modal-content p { font-size: 14px; }

/* === Responsive === */
@media (max-width: 900px) {
    .business-card {
        flex-direction: column; margin: 0; min-height: 100vh; border-radius: 0;
    }
    .card-left, .card-right { padding: 40px 24px; }
    .header-nav { display: none; }
    .footer-container { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .card-left, .card-right { padding: 32px 20px; }
    .header-container { padding: 0 15px; }
    .header-logo img { height: 35px; }
    .login-button { padding: 8px 16px; font-size: 0.9rem; }
}
