/* ==========================================================================
   Ẩm Thực Sông Quê - Bio Landing Page Stylesheet
   Theme: Rustic Southern Vietnamese Countryside (Tre, Nứa, Lá Dừa, Sông Nước)
   ========================================================================== */

/* Root Variables */
:root {
    --color-bg-light: #f7f3eb;
    --color-bg-card: #ffffff;
    --color-primary: #2d6a4f;      /* Lá sen, lá dừa đậm */
    --color-primary-light: #40916c;
    --color-accent-gold: #d97706;  /* Vàng lúa chín */
    --color-accent-brown: #5c3d2e; /* Gỗ trầm mộc mạc */
    --color-text-dark: #2b1f1d;
    --color-text-light: #5a4b48;
    --color-border: #e6dfd3;
    
    --font-heading: 'Itim', cursive;
    --font-body: 'Quicksand', sans-serif;
    
    --shadow-rustic: 0 8px 24px rgba(92, 61, 46, 0.08);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.04);
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
}

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

body {
    background-color: #ede4d3; /* Nền giấy kraft hoặc gỗ nhạt */
    background-image: radial-gradient(rgba(92, 61, 46, 0.05) 1px, transparent 0),
                      radial-gradient(rgba(92, 61, 46, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* Background Leaves Decoration */
.rustic-decor {
    position: fixed;
    width: 250px;
    height: 250px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.rustic-decor.left {
    bottom: -50px;
    left: -50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%232d6a4f' d='M0,100 C30,80 50,50 40,0 C60,40 70,80 100,100 Z'/%3E%3C/svg%3E");
    transform: rotate(-15deg);
}

.rustic-decor.right {
    top: -50px;
    right: -50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%232d6a4f' d='M100,0 C70,20 50,50 60,100 C40,60 30,20 0,0 Z'/%3E%3C/svg%3E");
    transform: rotate(15deg);
}

/* Container (Mobile Viewport Mockup on Desktop) */
.container {
    width: 100%;
    max-width: 500px; /* Định dạng hoàn hảo cho Mobile Bio */
    background-color: var(--color-bg-light);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(92, 61, 46, 0.15);
    border-left: 2px solid var(--color-border);
    border-right: 2px solid var(--color-border);
    position: relative;
    z-index: 2;
    padding-bottom: 80px; /* Tránh bị đè bởi floating button */
}

/* Header Section */
.header {
    position: relative;
    text-align: center;
    background-color: var(--color-bg-card);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    padding-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.banner-wrapper {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
}

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

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}

.profile-section {
    position: relative;
    margin-top: -65px; /* Đè lên ảnh banner */
    padding: 0 20px;
    z-index: 3;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    width: 140px;
    height: 100px;
    border-radius: var(--border-radius-md);
    padding: 4px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-gold));
    box-shadow: 0 8px 20px rgba(92, 61, 46, 0.2);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: calc(var(--border-radius-md) - 2px);
    object-fit: contain;
    background-color: white;
    border: 2px solid var(--color-bg-light);
}

.verify-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background-color: #3b82f6; /* Màu xanh verify */
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.restaurant-name {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-primary);
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.tagline {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent-brown);
    margin-top: 2px;
}

.short-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-light);
}

.divider {
    color: var(--color-border);
}

/* Common Section Styles */
section {
    padding: 24px 20px;
    border-bottom: 1px dashed var(--color-border);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.section-title::before,
.section-title::after {
    content: "•";
    color: var(--color-accent-gold);
    font-size: 28px;
}

.section-subtitle {
    font-size: 13px;
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 20px;
    margin-top: -10px;
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Card Button General Styles */
.link-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--color-text-dark);
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-rustic);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.card-content {
    flex-grow: 1;
}

.card-content h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.card-content p {
    font-size: 12px;
    color: var(--color-text-light);
}

.action-arrow {
    font-size: 18px;
    color: var(--color-accent-gold);
    opacity: 0.7;
}

/* Hotline Card Customization (Pulsing) */
.hotline-card {
    border-left: 5px solid var(--color-accent-gold);
    background: linear-gradient(135deg, #ffffff, #fffdf8);
    animation: borderPulse 2s infinite alternate;
}

.hotline-card .card-icon {
    background-color: rgba(217, 119, 6, 0.1);
    color: var(--color-accent-gold);
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 4px 12px rgba(217, 119, 6, 0.08);
    }
    100% {
        box-shadow: 0 8px 24px rgba(217, 119, 6, 0.2);
        transform: scale(1.01);
    }
}

/* Zalo Card Customization */
.zalo-card {
    border-left: 5px solid #0068ff;
}

.zalo-card .card-icon {
    background-color: #0068ff;
    color: white;
}

.zalo-text-icon {
    font-weight: 800;
    font-size: 20px;
    font-family: sans-serif;
}

/* Link Group Styles */
.link-group {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* Small Cards Grid */
.link-card-small {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--color-text-dark);
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.link-card-small:hover {
    transform: translateX(4px);
    border-color: var(--color-primary-light);
}

.link-card-small span:first-child {
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-fb {
    color: #1877f2;
}

.icon-tt {
    color: #000000;
}

/* Menu Section */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.menu-img-wrapper {
    position: relative;
    height: 180px;
    width: 100%;
    background-color: #f0f0f0;
}

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

.menu-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--color-accent-gold);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.menu-info {
    padding: 16px;
}

.menu-info h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.menu-desc {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
}

.price {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-accent-brown);
}

.btn-order-dish {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: var(--border-radius-md);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-order-dish:hover {
    background-color: var(--color-primary-light);
    transform: scale(1.05);
}



/* Location Section */
.location-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-info {
    text-align: center;
}

.address-text {
    font-size: 14px;
    color: var(--color-text-dark);
    margin-bottom: 6px;
}

.guide-text {
    font-size: 12px;
    color: var(--color-accent-gold);
    margin-bottom: 12px;
}

.location-buttons {
    display: flex;
    justify-content: center;
}

.btn-direction {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 18px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

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

.map-wrapper {
    width: 100%;
    border-radius: var(--border-radius-lg);
    border: 3px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--color-bg-card);
    font-size: 11px;
    color: var(--color-text-light);
    border-top: 1px solid var(--color-border);
}

.sub-footer {
    margin-top: 4px;
    color: #a0a0a0;
}

/* Floating Call Button for Mobile */
.floating-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: var(--color-accent-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
    z-index: 99;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: callPulse 1.5s infinite;
}

.floating-call-btn:hover {
    transform: scale(1.1);
}

@keyframes callPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(217, 119, 6, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
    }
}


