@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;600&display=swap');

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

body {
    background-color: #111;
    color: #fff;
    font-family: 'Prompt', sans-serif;
    overflow-x: hidden;
}

/* --- Layout หลัก --- */
.luxa-wrapper { display: flex; min-height: 100vh; }

/* Sidebar (เมนูซ้ายมือ) */
.sidebar {
    width: 80px;
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    position: fixed;
    height: 100vh;
    background: #0a0a0a;
    z-index: 100;
}

.logo-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 4px;
    font-weight: 600;
    color: #fff;
}

.hamburger-menu {
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
    transition: 0.3s;
}
.hamburger-menu:hover { color: #d4af37; }

.contact-sidebar {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.8rem;
    color: #d4af37;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-sidebar i { transform: rotate(-90deg); }

/* --- Main Content (หน้าแรก 4 คอลัมน์) --- */
.main-content {
    margin-left: 80px;
    display: flex;
    flex: 1;
    width: calc(100% - 80px);
}

.car-column {
    flex: 1;
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background 0.3s;
}
.car-column:hover { background: rgba(255,255,255,0.03); }

.circle-img {
    width: 250px; height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.circle-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: 0.5s;
}


.car-name { font-size: 1.2rem; margin-bottom: 5px; color: #fff; }
.car-model { font-size: 0.9rem; color: #888; margin-bottom: 20px; }
.btn-detail {
    color: #d4af37;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.btn-detail:hover { color: #fff; }

/* --- Fullscreen Menu (หน้าต่างเวลากด 3 ขีด) --- */
.overlay-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(10,10,10,0.98);
    z-index: 999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.4s;
}
.overlay-menu.active { opacity: 1; visibility: visible; }

.close-btn {
    position: absolute; top: 40px; right: 50px;
    font-size: 2rem; cursor: pointer; color: #fff;
}

.overlay-menu nav {
    display: flex; flex-direction: column; gap: 20px; text-align: center;
}
.overlay-menu nav a {
    color: #fff; text-decoration: none; font-size: 1.5rem; letter-spacing: 2px; transition: 0.3s;
}
.overlay-menu nav a:hover { color: #d4af37; }

.lang-btn {
    background: transparent; border: 1px solid #d4af37; color: #d4af37;
    padding: 10px 20px; margin-top: 30px; cursor: pointer;
    font-family: inherit; font-size: 1rem; border-radius: 4px; transition: 0.3s;
}
.lang-btn:hover { background: #d4af37; color: #111; }

/* --- Page Content (สำหรับหน้า About, Contact, Detail) --- */
.page-container {
    margin-left: 80px; padding: 100px 50px; width: calc(100% - 80px); max-width: 1000px;
}
.page-title { font-size: 2.5rem; color: #d4af37; margin-bottom: 30px; }
.page-text { font-size: 1.1rem; color: #ccc; line-height: 1.8; margin-bottom: 20px; }
.social-icons { display: flex; gap: 20px; margin-top: 30px; }
.social-icons a { color: #fff; font-size: 3rem; transition: 0.3s; }
.social-icons a.line:hover { color: #00B900; }
.social-icons a.wa:hover { color: #25D366; }
.social-icons a.fb:hover { color: #1877F2; }

/* --- Review Page Styles --- */
.review-form-container {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 50px;
}

#reviewForm input[type="text"],
#reviewForm textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

#reviewForm input:focus,
#reviewForm textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.star-rating {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.star-rating .star {
    cursor: pointer;
    margin-right: 5px;
    transition: color 0.2s;
}

.btn-submit {
    background: #d4af37;
    color: #111;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #fff;
}

/* Review Cards */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: #0a0a0a;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #d4af37;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-name {
    color: #fff;
    font-size: 1.1rem;
}

.review-date {
    color: #666;
    font-size: 0.8rem;
}

.review-stars {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.review-text {
    color: #ccc;
    line-height: 1.6;
}

/* --- Responsive มือถือ --- */
@media (max-width: 1024px) {
    .luxa-wrapper { flex-direction: column; }
    .sidebar {
        width: 100%; height: 60px; flex-direction: row; padding: 0 20px;
        position: relative; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .logo-text, .contact-sidebar { writing-mode: horizontal-tb; transform: none; }
    .contact-sidebar i { transform: none; }
    .main-content { margin-left: 0; flex-direction: column; width: 100%; }
    .car-column { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 50px 20px; }
    .page-container { margin-left: 0; width: 100%; padding: 40px 20px; }
}