/* Global CSS for PlayCJK */

/* Global Resets & Typography */
* {
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: #fff;
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1030;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo a {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    /* Gold-ish color from design */
}

.logo-img {
    height: 45px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
    color: #bfa15f;
    border-bottom: 2px solid #bfa15f;
    padding-bottom: 5px;
}

.nav-lang {
    position: relative;
}

.nav-lang .lang-btn {
    border: 1px solid #ddd;
    padding: 5px 15px;
    font-size: 12px;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    color: #333;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    min-width: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1001;
    overflow: hidden;
    padding: 5px 0;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    font-size: 13px;
    color: #333;
    transition: background 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #bfa15f;
}

/* Show dropdown on hover */
.nav-lang:hover .dropdown-menu {
    display: block;
}

/* Footer */
.main-footer {
    background-color: #0d1520;
    /* Dark Navy from image approximation */
    color: #fff;
    padding: 80px 0;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Footer Left */
.footer-left {
    max-width: 400px;
}

.footer-logo-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 0 !important;
    background: none !important;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

.brand-slogan {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.company-details .company-name {
    font-size: 18px;
    color: #bfa15f;
    /* Gold color */
    margin-bottom: 15px;
    font-weight: normal;
}

.company-details .company-address {
    color: #ccc;
    margin-bottom: 30px;
}

.company-details .copyright {
    color: #555;
    font-size: 12px;
}

/* Footer Right */
.footer-right {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: flex-end;
}

.footer-nav-group {
    width: 100%;
}

.footer-nav-group h4 {
    font-size: 16px;
    color: #bfa15f;
    margin: 0;
    /* Removing margin to align with the list */
    display: inline-block;
    width: 100px;
    vertical-align: top;
    line-height: 1.6;
    /* Match global line-height or specific list line-height if needed */
}

.footer-nav-group ul {
    display: inline-block;
    width: calc(100% - 110px);
    /* Remaining width for links */
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-group li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.footer-nav-group li:last-child {
    margin-bottom: 0;
}

.footer-nav-group a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.footer-nav-group a:hover {
    color: #bfa15f;
}

.footer-nav-group .arrow {
    font-weight: normal;
    /* explicit reset if needed */
    font-size: 16px;
    transform: scaleY(0.6);
    /* Flatten arrow slightly if needed */
}

/* Mobile Responsiveness */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 992px) {
    .navbar {
        padding: 0 15px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        text-align: center;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-lang {
        display: none;
        /* Simplify for now, or move into nav-links if needed */
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-left,
    .footer-right,
    .footer-nav-group ul {
        max-width: 100%;
        width: 100%;
    }

    .footer-nav-group h4 {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-nav-group ul {
        display: block;
        width: 100%;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-lang-selector {
        margin-left: 10px;
        margin-right: auto;
        /* Pushes the menu button to the far right */
        display: flex;
        align-items: center;
        position: relative;
    }

    .lang-btn-mobile {
        background: none;
        border: 1px solid #ddd;
        padding: 4px 10px;
        font-size: 12px;
        border-radius: 4px;
        color: #333;
    }

    .dropdown-menu-mobile {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        min-width: 100px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        z-index: 1002;
        padding: 5px 0;
        margin-top: 5px;
    }

    .mobile-lang-selector .dropdown:hover .dropdown-menu-mobile,
    .mobile-lang-selector .dropdown:active .dropdown-menu-mobile,
    .mobile-lang-selector .dropdown:focus-within .dropdown-menu-mobile {
        display: block;
    }

    .dropdown-menu-mobile li {
        display: block;
    }

    .dropdown-menu-mobile li a {
        display: block;
        padding: 8px 15px;
        font-size: 13px;
        color: #333;
    }

    .dropdown-menu-mobile li a:hover {
        background-color: #f5f5f5;
        color: #bfa15f;
    }
}

/* --- Premium Custom Modals --- */
.custom-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: #fff;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .custom-modal-content {
    transform: scale(1);
}

.custom-modal-body {
    padding: 50px 40px;
    text-align: center;
}

.custom-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #999;
    font-size: 24px;
    opacity: 0.7;
    transition: all 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    outline: none !important;
    z-index: 10;
}

.custom-modal-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.custom-modal-icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
}

.custom-modal-icon-box.success {
    background: rgba(191, 161, 95, 0.1);
    color: #bfa15f;
}

.custom-modal-icon-box.error {
    background: rgba(230, 162, 60, 0.1);
    color: #E6A23C;
}

/* Pulse animation for icon */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(191, 161, 95, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(191, 161, 95, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(191, 161, 95, 0);
    }
}

.custom-modal-icon-box.success i {
    animation: pulse-ring 2s infinite;
    border-radius: 50%;
}

.custom-modal-title {
    font-size: 26px;
    font-weight: 500;
    color: #222;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.custom-modal-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.custom-btn-modal {
    display: inline-block;
    width: 100%;
    max-width: 200px;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-btn-modal.success {
    background: linear-gradient(135deg, #bfa15f 0%, #a28643 100%);
    color: #fff;
}

.custom-btn-modal.success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(191, 161, 95, 0.3);
}

.custom-btn-modal.error {
    background: linear-gradient(135deg, #E6A23C 0%, #d48e26 100%);
    color: #fff;
}

.custom-btn-modal.error:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 162, 60, 0.3);
}