/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/ClientSide/css.css to edit this template
*/
/* 
    Created on : May 24, 2026, 5:18:03 PM
    Author     : lehan
*/
/* File: assets/css/home.css */
/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-brand {
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: var(--on-surface);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.nav-links a:hover {
    opacity: 1;
}
.nav-links a.active {
    color: white;
    border-bottom: 2px solid white;
    font-weight: 700;
    opacity: 1;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
}
.page-header {
    margin-bottom: 48px;
}
.page-header .greeting {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}
.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
}
.page-header p {
    font-size: 18px;
    color: var(--text-muted);
}

/* Grid Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}
.stat-card {
    padding: 24px;
}
.stat-title {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}
.stat-value {
    font-size: 32px;
    font-weight: 800;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Table/List styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    text-align: left;
    padding: 12px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-glass);
}
.data-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-glass);
    font-size: 14px;
}
.data-table tr:last-child td {
    border-bottom: none;
}

/* Hero Banner (Guest) */
.hero-banner {
    background: var(--surface-glass);
    padding: 64px;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
}

/* Import font chữ nghệ thuật cho Logo giống thiết kế */

/* --- THEME MỚI CHO TRANG CHỦ --- */
.landing-body {
    /* Dải màu mới: Tím than -> Tím sáng -> Xanh hoàng gia (Không còn màu đen) */
    background: linear-gradient(135deg, #11052C 0%, #3B185F 50%, #150E56 100%) !important;
    background-attachment: fixed !important; /* Cố định nền khi cuộn chuột */
    background-size: cover !important;
    background-repeat: no-repeat !important;
    color: white;
    min-height: 100vh;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    overflow: hidden;
}

/* HERO SECTION */
.hero-section {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
}
.hero-logo-text {
    font-family: 'Pacifico', cursive; /* Font thay thế tạm thời cho logo */
    font-size: 120px;
    font-weight: normal;
    background: linear-gradient(180deg, #FFFFFF 0%, #D8B4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0px 10px 30px rgba(255, 255, 255, 0.2);
}
.hero-desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    color: #E2D7FF;
}

/* CHUNG CHO CÁC SECTION */
.landing-section {
    margin-bottom: 80px;
    position: relative;
}
.section-title-large {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

/* BENTO GRID (Academic Slides Made Easy) */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}
.bento-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(10px);
}
.bento-card.large {
    grid-column: span 2;
    min-height: 300px;
}
.bento-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* HOW IT WORKS SECTION */
.step-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(124, 58, 237, 0.5);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.step-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* DESIGNER BANNER */
.designer-banner {
    background: linear-gradient(90deg, #7C3AED 0%, #D8B4FF 100%);
    border-radius: 40px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #11052C; /* Chữ màu tối trên nền sáng */
}
.designer-banner h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

/* Nút bấm (Pill Buttons) */
.btn-pill {
    background: #11052C;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 32px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}
.btn-pill:hover {
    background: #3B185F;
    border-color: #D8B4FF;
}

/* --- Cập nhật lưới Footer mới (Chỉ còn 2 cột lớn) --- */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Cột trái chiếm nhiều diện tích hơn một chút */
    gap: 64px;
}

/* --- Căn chỉnh Logo ảnh ngang hàng với chữ --- */
.brand-logo-desc-wrapper {
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    gap: 24px; /* Khoảng cách giữa ảnh logo và chữ */
    margin-bottom: 32px;
}

.footer-image-logo {
    width: 100px; /* Kích thước logo, bạn có thể chỉnh to nhỏ tùy ý */
    height: 100px;
    object-fit: cover;
    border-radius: 16px; /* Bo góc nhẹ cho ảnh */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); /* Đổ bóng nhẹ cho ảnh nổi lên */
}

.brand-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Xử lý hiển thị dọc (xếp chồng) trên màn hình điện thoại/tablet */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Thu về 1 cột */
        gap: 40px;
    }
    
    .brand-logo-desc-wrapper {
        flex-direction: column; /* Đẩy logo lên trên chữ trên điện thoại */
        align-items: flex-start;
    }
}

/* --- Cập nhật lưới Footer mới (Chỉ còn 2 cột lớn) --- */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Cột trái chiếm nhiều diện tích hơn một chút */
    gap: 64px;
}

/* --- Căn chỉnh Logo ảnh ngang hàng với chữ --- */
.brand-logo-desc-wrapper {
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    gap: 24px; /* Khoảng cách giữa ảnh logo và chữ */
    margin-bottom: 32px;
}

.footer-image-logo {
    width: 100px; /* Kích thước logo, bạn có thể chỉnh to nhỏ tùy ý */
    height: 100px;
    object-fit: cover;
    border-radius: 16px; /* Bo góc nhẹ cho ảnh */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); /* Đổ bóng nhẹ cho ảnh nổi lên */
}

.brand-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Xử lý hiển thị dọc (xếp chồng) trên màn hình điện thoại/tablet */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Thu về 1 cột */
        gap: 40px;
    }
    
    .brand-logo-desc-wrapper {
        flex-direction: column; /* Đẩy logo lên trên chữ trên điện thoại */
        align-items: flex-start;
    }
}

/* ======================================================= */
/* E-COMMERCE FOOTER STYLES (FLEXBOX CHUẨN)                */
/* ======================================================= */
.main-footer {
    background-color: #060e20; /* Màu nền xanh đen đặc trưng */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 64px;
    margin-top: 80px;
    width: 100%;
    color: white;
}

/* Dùng Flexbox để chia 2 cột linh hoạt */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 64px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

/* --- Cột Trái (Logo & Mô tả) --- */
.brand-col {
    flex: 1.5; /* Cột trái chiếm 1.5 phần */
    display: flex;
    flex-direction: column;
}

.brand-logo-desc-wrapper {
    display: flex;
    align-items: center; /* Căn giữa logo và chữ theo chiều dọc */
    gap: 24px; 
    margin-bottom: 24px;
}

.footer-image-logo {
    width: 100px;
    height: 100px;
    min-width: 100px; /* Ép cứng chiều rộng để logo không bị móp */
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.brand-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-logo {
    font-family: 'Pacifico', cursive;
    font-size: 32px;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
    line-height: 1;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
}
.social-icon:hover {
    border-color: #D8B4FF;
    background: rgba(255, 255, 255, 0.1);
}

/* --- Cột Phải (Liên hệ) --- */
.contact-col {
    flex: 1; /* Cột phải chiếm 1 phần */
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 40px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Khoảng cách đều giữa các dòng */
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

.contact-icon {
    font-size: 16px;
    flex-shrink: 0; /* Giữ icon không bị bóp méo nếu text dài */
}

/* --- Footer Bottom (Bản quyền) --- */
.footer-bottom {
    margin-top: 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center; /* Đổi từ space-between sang center để căn giữa */
    align-items: center;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    text-align: center; /* Đảm bảo chữ luôn căn giữa trên điện thoại */
}

.footer-payment-icons {
    display: flex;
    gap: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* --- XỬ LÝ RESPONSIVE CHO ĐIỆN THOẠI/TABLET --- */
@media (max-width: 992px) {
    .footer-container {
        flex-direction: column; /* Tràn thành 1 cột từ trên xuống */
        gap: 40px;
    }
    .contact-col {
        border-left: none; /* Bỏ đường kẻ dọc */
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Chuyển thành kẻ ngang */
        padding-top: 32px;
    }
}

@media (max-width: 576px) {
    .brand-logo-desc-wrapper {
        flex-direction: column; /* Đẩy logo lên trên chữ */
        align-items: flex-start;
        gap: 16px;
    }
}

/* --- CSS cho ảnh Designer trong Banner --- */
.designer-banner-img {
    position: absolute;
    bottom: 0;          /* Neo chặt ảnh vào đáy của banner */
    right: 5%;          /* Cách lề phải một chút cho cân đối */
    height: 120%;       /* Để ảnh to ra một chút, phần thừa sẽ bị overflow: hidden cắt đi rất gọn */
    max-height: 340px;  /* Khống chế độ lớn tối đa để ảnh không bị khổng lồ */
    width: auto;
    object-fit: contain;
    z-index: 1;         /* Nằm dưới lớp chữ (z-index: 2) */
    pointer-events: none; /* Không cản trở việc click chuột vào nút bấm */
}

/* --- CSS Cho Băng chuyền Template Chạy Ngang (Marquee) --- */
.marquee-container {
    display: flex;
    overflow: hidden; /* Giấu phần bị tràn ra ngoài */
    width: 100%;
    max-width: 1200px;
    margin: 32px auto;
    position: relative;
    /* Hiệu ứng mờ dần ở 2 mép để trông ảo diệu hơn */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 16px;
    /* Chạy ngang liên tục trong 20 giây */
    animation: scroll-left 20s linear infinite;
}

/* Dừng lại khi người dùng di chuột vào */
.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Dịch chuyển 50% vì ta sẽ nhân đôi số lượng ảnh để tạo vòng lặp mượt */
}

.template-marquee-card {
    width: 300px;
    height: 180px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.template-marquee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
