/* ==========================================================================
   MYSELLER BOS - TEMPLATE LANDING STYLE (CLEANED)
   ========================================================================== */
:root {
    --primary-color: #1e293b;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #334155;
    --text-muted: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --border-color: #e2e8f0;
    --header-bg: #ffffff;
    --hero-bg: #1e293b;
    --about-grid-bg: #ffffff;
    --contact-section-bg: #ffffff;
    --footer-bg: #1e293b;
    --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* BASE RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    line-height: 1.6; 
    padding-bottom: 70px; /* Đẩy nội dung trang lên cao hơn chiều cao của footer một khoảng vừa đủ */
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 1. HEADER & NAVBAR */
.landing-header { 
    background-color: var(--header-bg) !important; 
    border-bottom: 1px solid var(--border-color); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: var(--shadow-soft); 
}
.header-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); }
.brand span { color: var(--accent-color); }
.nav-links { display: flex; gap: 25px; }
.nav-links a { font-weight: 600; color: var(--text-color); }
.nav-links a:hover { color: var(--accent-color); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.factory-info { font-size: 0.85rem; background: #eff6ff; padding: 6px 12px; border-radius: 6px; color: var(--accent-color); }
.btn-login-nav { background: var(--accent-color); color: #fff; padding: 8px 18px; border-radius: 6px; font-weight: 600; display: inline-block; }
.btn-login-nav:hover { background: var(--accent-hover); }

/* 2. HERO SECTION */
.hero-section { background-color: var(--hero-bg) !important; color: #fff; text-align: center; padding: 80px 20px; }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-content h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.hero-content p { font-size: 1.15rem; color: #94a3b8; margin-bottom: 30px; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; }
.btn-primary { background: var(--accent-color); color: #fff; padding: 12px 28px; border-radius: 8px; font-weight: 700; display: inline-block; }
.btn-primary:hover { background: var(--primary-color); }

.btn-secondary { background: var(--primary-color); color: #ffffff; border: 1px solid #10b981; padding: 12px 28px; border-radius: 8px; font-weight: 700; display: inline-block; transition: background-color 0.2s ease, border-color 0.2s ease; }
.btn-secondary:hover { background: var(--accent-color); border-color: #059669; color: #ffffff; }

/* 3. SECTIONS COMMON */
section { padding: 25px 5px !important; box-sizing: border-box; }
section .container { max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.section-title { font-size: 1.25rem; font-weight: 700; color: var(--accent-color); display: flex; align-items: center; gap: 8px; margin-top: 0 !important; margin-bottom: 12px !important; text-align: left; }

/* ABOUT SECTION */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 0; background-color: var(--about-grid-bg) !important; padding: 1px; border-radius: 12px; width: 100%; box-sizing: border-box; }
.about-card { background: var(--card-bg); padding: 16px 20px; border-radius: 10px; border: 1px solid var(--border-color); box-shadow: var(--shadow-soft); width: 100%; box-sizing: border-box; }
.about-card h3 { font-size: 1.05rem; color: var(--primary-color); margin-bottom: 6px; }
.about-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

/* LISTINGS SECTION */
.apps-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.app-public-card { background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.app-public-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.card-tag { padding: 6px 15px; font-size: 0.75rem; font-weight: 800; color: #fff; text-transform: uppercase; }
.tag-sell { background: var(--success-color); }
.tag-buy { background: var(--danger-color); }
.card-body { padding: 20px; flex-grow: 1; }
.app-keyword { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary-color); }
.app-content { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { padding: 15px 20px; background: #f8fafc; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.app-date { font-size: 0.8rem; color: var(--text-muted); }
.btn-view-detail { font-size: 0.9rem; color: var(--accent-color); font-weight: 700; }
.empty-data { text-align: center; padding: 50px; background: var(--bg-color); border-radius: 12px; grid-column: 1 / -1; color: var(--text-muted); }

/* CONTACT SECTION */

/* ==========================================================================
   TÍNH CHỈNH NHẸ CONTACT SECTION (ĐẸP, NỔI BẬT, GIỮ NGUYÊN BIẾN MÀU)
   ========================================================================== */
/*
.contact-section { 
    background-color: var(--contact-section-bg) !important; 
    padding: 30px 10px !important; 
    box-sizing: border-box; 
}

.contact-section .container { 
    max-width: 100% !important; 
    padding-left: 0 !important; 
    padding-right: 0 !important; 
}

.contact-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 16px; 
}

.contact-info {
    background: var(--card-bg); 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    box-shadow: var(--shadow-soft); 
    display: flex;
    flex-direction: column;
    gap: 12px; 
    padding: 20px; 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.contact-info p {
    margin: 0;
    font-size: 0.95rem; 
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
*/

/* ==========================================================================
   TÍNH CHỈNH NHẸ CONTACT SECTION & FIX LỖI RỚT DÒNG TRÊN MOBILE
   ========================================================================== */
.contact-section { 
    background-color: var(--contact-section-bg) !important; 
    padding: 30px 10px !important; 
    box-sizing: border-box; 
}

.contact-section .container { 
    max-width: 100% !important; 
    padding-left: 0 !important; 
    padding-right: 0 !important; 
}

.contact-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 16px; 
}

/* Tinh chỉnh card thông tin liên hệ */
.contact-info {
    background: var(--card-bg); 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    box-shadow: var(--shadow-soft); 
    display: flex;
    flex-direction: column;
    gap: 12px; 
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Bổ sung class cấu trúc hàng liên hệ để chống rớt dòng chữ */
.contact-info p {
    margin: 0;
    font-size: 0.95rem; 
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap; /* Cho phép nội dung quá dài tự xuống dòng mượt mà ở dưới */
}

/* Ép chữ nhãn (ví dụ: Liên hệ:) luôn nằm gọn trên 1 hàng ngang tuyệt đối */
.contact-info p strong {
    white-space: nowrap !important;
    flex-shrink: 0;
}

.contact-links ul { 
    list-style: none; 
    padding: 0;
    margin: 0;
}

.contact-links li { 
    margin-bottom: 8px; 
}

.contact-links li:last-child { 
    margin-bottom: 0; 
}

.contact-links a { 
    color: var(--text-muted); 
    font-weight: 600; 
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.contact-links a:hover { 
    color: var(--accent-hover); /* Tận dụng chuẩn màu di chuột */
}


/* FOOTER */
.landing-footer { 
    background-color: var(--footer-bg) !important; 
    color: #94a3b8; 
    padding: 12px 0; /* Giữ padding gọn gàng */
    border-top: 1px solid #334155; 
    font-size: 0.9rem; 
    
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99; 
}

.landing-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer-nav-left, 
.footer-nav-right, 
.footer-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-nav-left {
    justify-content: flex-start;
}

.footer-nav-right {
    justify-content: flex-end;
}

.footer-link-action {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center; 
    gap: 6px;
}

.footer-link-action:hover {
    color: #ffffff;
}

.nav-arrow {
    font-size: 2.2em; 
    font-weight: 900; 
    -webkit-text-stroke: 0.5px currentColor; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1; 
    vertical-align: middle;
}

.footer-pos-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #334155;
    padding: 8px 16px;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.footer-pos-link:hover {
    background: var(--accent-color, #2563eb);
    border-color: var(--accent-color, #2563eb);
    color: #ffffff;
    transform: translateY(-2px);
}

.pos-emoji {
    font-size: 1.1rem;
}

/* END FOOTER */

/* FLOATING SETTINGS WIDGET */
.floating-settings-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.btn-settings-trigger { width: 50px; height: 50px; border-radius: 50%; background: var(--primary-color); color: #fff; border: none; font-size: 22px; cursor: move; box-shadow: 0 4px 15px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; user-select: none; touch-action: none; }
.settings-menu { position: absolute; bottom: 60px; right: 0; background: var(--card-bg); border: 1px solid var(--border-color); padding: 20px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); width: 240px; }
.settings-menu.hidden { display: none; }
.settings-menu h4 { margin-bottom: 12px; font-size: 0.95rem; color: var(--primary-color); }
.settings-menu label { display: block; font-size: 0.8rem; margin-bottom: 6px; color: var(--text-muted); }
.settings-menu select { width: 100%; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border-color); font-size: 0.85rem; outline: none; }

@media (max-width: 767px) {
    .header-container { flex-direction: column; gap: 5px; padding: 3px 3px !important;}  
    .brand { 
        font-size: 1.25rem !important; 
    } 
    .header-actions {
        gap: 5px !important;
    }
    .header-actions .btn-login-nav, 
    .header-actions .factory-info {
        padding: 4px 10px !important;
        font-size: 0.8rem !important;
    }
    .hero-content h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; gap: 10px; }
    .btn-primary, .btn-secondary { width: 100%; }
    .about-grid, .apps-list-grid, .contact-grid { grid-template-columns: 1fr !important; }
    
    
    .landing-footer {
        padding: 12px 0 !important; /* Giảm chiều cao footer */
    }

    .landing-footer .footer-container {
        flex-direction: row !important; /* Luôn nằm trên 1 hàng ngang */
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 10px !important;
        gap: 5px !important;
    }

    /* Thu nhỏ kích thước chữ và nút cho vừa màn hình điện thoại */
    .footer-link-action {
        font-size: 0.75rem !important;
    }

    .footer-pos-link {
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }

    .pos-emoji {
        font-size: 0.95rem !important;
    }
}
