/* Global Styles */
* {
    font-family: 'Montserrat', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: #FFD700 #1a1a1a;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    background: black;
}

/* Main Section */
.main-section {
    background-image: url('asset/img/bg_pc.webp');
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .main-section {
        background-image: url('asset/img/bg_mobile.webp');
        padding: 12px;
    }
}

/* Form Container */
.form-container {
    background-image: url('asset/img/board_login.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 95%;
    max-width: 450px;
    min-height: 240px;
    height: auto;
    position: relative;
    transition: height 0.3s ease;
}

.form-inner {
    padding: 40px;
}

#registerForm {
    min-height: 240px;
}

/* Input Styles */
.input-username {
    background-image: url('asset/img/taikhoan.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    height: 55px;
    display: flex;
    align-items: center;
}

.input-password {
    background-image: url('asset/img/matkhau.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    height: 55px;
    display: flex;
    align-items: center;
}

/* Button Styles */
.btn-login {
    background-image: url('asset/img/btn_dangnhap.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 55px;
    width: 100%;
}

.btn-register {
    background-image: url('asset/img/btn_taotaikhoan.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 55px;
    width: 100%;
}

.auth-actions {
    display: flex;
    gap: 16px;
}

.auth-actions > button {
    flex: 1 1 0;
    min-width: 0;
}

#registerForm input {
    box-sizing: border-box;
    width: 100%;
}

/* Placeholder Styles */
.input-username::placeholder,
.input-password::placeholder {
    color: #30452E !important;
    opacity: 1;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.input-username::-webkit-input-placeholder,
.input-password::-webkit-input-placeholder {
    color: #30452E !important;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.input-username::-moz-placeholder,
.input-password::-moz-placeholder {
    color: #30452E !important;
    opacity: 1;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.input-username:-ms-input-placeholder,
.input-password:-ms-input-placeholder {
    color: #30452E !important;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

/* Input Fields */
.input-username,
.input-password {
    font-family: 'Montserrat', sans-serif;
}

/* Buttons */
button {
    font-family: 'Montserrat', sans-serif;
}

/* All text elements */
p, span, div, a, label {
    font-family: 'Montserrat', sans-serif;
}

/* Layout Columns */
.fixed-column {
    position: fixed;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 10;
}

.left-column {
    left: 0;
    width: 25vw;
    padding: 20px;
}

.right-column {
    right: 0;
    width: 25vw;
    padding: 20px;
}

.center-column {
    margin-left: 25vw;
    margin-right: 25vw;
    width: 50vw;
    min-height: 100vh;
    padding-top: 0;
}

/* Video Slider */
.video-slider {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    width: 95%;
    height: 250px;
    margin: 0 auto;
    border: 3px solid #FFD700;
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 10px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
        border-color: #FFD700;
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
        border-color: #FFF700;
    }
}

.video-slider video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.video-slider video.active {
    display: block;
}

.live-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px; 
    z-index: 2;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.video-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 1;
}


.gold-border {
    border: 2px solid #F5E6A3;
    border-radius: 8px;
}

/* SEO editorial content */
.seo-content {
    min-height: auto;
    padding-left: 24px;
    padding-right: 24px;
    color: #f5f5f5;
    line-height: 1.8;
}

.seo-content p {
    margin-top: 16px;
}

.seo-section {
    margin-top: 40px;
    padding: 28px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(0, 0, 0, 0.65));
}

.seo-section h2 {
    margin-bottom: 16px;
    color: #FFD700;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.35;
}

.seo-section h3 {
    margin-top: 28px;
    color: #F5E6A3;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.seo-content a {
    color: #FFD700;
    text-decoration: underline;
}

.seo-conclusion {
    text-align: center;
}

@media (max-width: 768px) {
    .seo-content {
        padding-left: 0;
        padding-right: 0;
    }

    .seo-section {
        padding: 20px 16px;
    }

    .seo-section h2 {
        font-size: 1.5rem;
    }
}

/* Logo Section */
.logo-section {
    text-align: center;
    padding: 15px 0 10px 0;
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #FFD700;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b39700;
}

.logo-section img {
    margin-top:48px;
    height: 180px;
    margin-bottom: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Title Section */
.title-section {
    background-image: url('asset/img/title_pc.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 90px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

/* Banner and Social Icons */
.banner-left {
    width: 95%;
    height: auto;
    max-width: 400px;
}

.social-icons {
    width: 95%;
    margin: 0 auto;
}

.social-icon {
    width: 50px;
    height: 50px;
}

/* Download buttons styles */
.download-btn {
    display: inline-block;
    text-decoration: none;
}

.download-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
}

.download-btn:hover .download-container {
    transform: translateY(-2px);
}

.download-btn:active .download-container {
    transform: translateY(0);
}

/* Custom Scrollbar */
.fixed-column::-webkit-scrollbar {
    width: 8px;
}

.fixed-column::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}

.fixed-column::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.fixed-column::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Tablet breakpoint (768px - 1279px): Chỉ hiển thị Center Column (Form) và Content */
@media (max-width: 1279px) and (min-width: 768px) {
    .left-column, .right-column {
        display: none !important;
    }

    .column, .center-column {
        margin: 0;
        width: 100%;
    }

    /* Hiển thị CTA section chỉ trên tablet */
    .tablet-only-cta {
        display: block !important;
        padding: 20px 0;
    }
}

/* Mobile breakpoint (<768px): keep account and download actions above the fold */
@media (max-width: 767px) {
    .left-column {
        display: none !important;
    }

    .column {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0 4px;
    }

    .center-column {
        margin: 0 !important;
        width: 100% !important;
        padding: 10px !important;
    }

    .right-column {
        position: relative !important;
        width: 100% !important;
        padding: 0 4px 8px !important;
        height: auto !important;
        overflow: visible;
    }

    .video-slider {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .logo-section {
        padding: 4px 0 6px;
    }

    .logo-section img {
        width: 132px;
        height: auto;
        margin-top: 0;
        margin-bottom: 0;
    }

    .form-container {
        width: 100%;
        max-width: 400px;
        min-height: 0;
    }

    .form-inner {
        padding: 14px 18px 16px;
    }

    #registerForm {
        min-height: 0;
    }

    #registerForm > .input-username,
    #registerForm > .input-password,
    #registerForm > div:nth-child(3) {
        margin-bottom: 10px !important;
    }

    .input-username,
    .input-password {
        height: 44px;
    }

    #registerForm input {
        height: 44px !important;
        padding-left: 40px !important;
        font-size: 14px !important;
    }

    #captchareload {
        width: 78px !important;
        height: 34px !important;
    }

    .auth-actions {
        gap: 10px;
    }

    .btn-login,
    .btn-register {
        min-height: 42px;
        height: 42px;
    }

    .primary-download-section {
        display: none;
    }
}

/* Mobile download button styles */
#mobile-download-container {
    display: none;
    transition: all 0.3s ease;
}

#mobile-download-container a {
    transition: transform 0.2s ease;
}

#mobile-download-container a:hover {
    transform: translateY(-2px);
}

/* Ensure mobile download section is properly styled on mobile only */
@media (max-width: 767px) {
    #mobile-download-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 8px 0 4px;
        margin: 6px 0 2px;
    }

    .mobile-app-name {
        display: block;
        width: min(72vw, 250px);
        height: auto;
        margin: 0 auto 8px;
    }

    .mobile-download-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 9px;
        width: 100%;
        max-width: 340px;
    }

    .mobile-download-actions a {
        display: block;
        box-sizing: border-box;
        width: min(88vw, 340px);
        max-width: 100%;
        padding: 2px;
        overflow: hidden;
        border: 1px solid rgba(255, 239, 128, 0.8);
        border-radius: 999px;
        background: linear-gradient(135deg, rgba(255, 240, 123, 0.28), rgba(255, 185, 0, 0.08));
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.55), 0 0 10px rgba(255, 215, 0, 0.55);
        filter: saturate(1.15) brightness(1.08);
    }

    .mobile-download-actions img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: inherit;
    }

    .mobile-download-actions a:active {
        transform: translateY(0) scale(0.98);
    }

    .mobile-webgame-link {
        display: block;
        margin-top: 9px;
    }

    .mobile-webgame-link img {
        display: block;
        width: min(58vw, 220px);
        height: auto;
        margin: 0 auto;
    }
}
