/* public/css/style.css */

/* Global Styles */
body {
    background-color: #000;
    color: #fff;
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

/* Language Switcher */
.lang-switcher {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 4px;
    display: flex;
    margin-right: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-link {
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.lang-link.active {
    background: #ff4757;
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
}

.lang-link:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* User & Navigation Items */
.nav-link-custom {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-link-custom:hover {
    color: #ff4757 !important;
}

.user-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #eee;
    font-size: 0.85rem;
}

.btn-logout {
    color: #666;
    background: none;
    border: none;
    padding: 5px 10px;
    transition: 0.3s;
}

.btn-logout:hover {
    color: #ff4757;
    transform: scale(1.1);
}

/* Search Bar Styles */
.search-container {
    max-width: 850px;
    margin: 0 auto 50px auto;
    position: relative;
    z-index: 10; /* Memastikan dropdown tidak tertutup konten di bawahnya */
}

.glass-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: wrap; /* Penting untuk responsif */
}

/* Responsive Handling untuk Mobile */
@media (max-width: 768px) {
    .glass-pill {
        border-radius: 20px; /* Lebih kotak sedikit di mobile agar rapi */
        padding: 15px;
    }

    .glass-pill .col-md-5,
    .glass-pill .col-md-3,
    .glass-pill .col-md-2 {
        margin-bottom: 12px; /* Memberi jarak antar input di mobile */
    }

    .btn-search-red {
        margin-top: 5px;
        padding: 12px !important; /* Button lebih besar agar mudah di-tap */
    }
}

/* Mempercantik input di dalam pill */
.glass-pill .form-control {
    background: transparent !important;
    border: none !important;
    color: white !important;
    box-shadow: none !important;
    height: 45px;
    padding: 0 15px;
}

.glass-pill select.custom-select-dark {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 5;
}

/* Divider tipis antar kolom (hanya di Desktop) */
@media (min-width: 769px) {
    .glass-pill div[class^="col-md-"]:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.glass-pill:focus-within {
    border-color: #ff4757;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.15);
}

.glass-pill input,
.glass-pill select {
    background: transparent !important;
    border: none !important;
    color: white !important;
    box-shadow: none !important;
    font-size: 0.9rem;
}

.glass-pill select option {
    background-color: #121212 !important;
    color: white !important;
    padding: 10px;
}

.glass-pill select:focus {
    outline: none !important;
}

.btn-search-red {
    background: #ff4757;
    border-radius: 50px;
    padding: 5px 20px;
    border: none;
    font-weight: 600;
    color: white;
}

.custom-select-dark {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 30px !important;
}

/* Section Header Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-title i {
    color: #ff4757;
    margin-right: 10px;
}

/* Movie Card & Poster Styles */
.gap-3 {
    gap: 1rem;
}

.card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.poster-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.card-poster:hover .poster-overlay {
    opacity: 1;
}
.card-poster:hover img {
    transform: scale(1.1);
}

/* public/css/style.css */

.btn-action-round {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;

    /* Gunakan Flexbox untuk Center Sempurna */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0; /* Hapus padding default button */
    line-height: 1; /* Hapus tinggi baris teks default */
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Pastikan Ikon FA tidak memiliki margin bawaan */
.btn-action-round i {
    font-size: 1.2rem;
    margin: 0;
    display: inline-block;
}

.btn-action-round:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: #fff;
    transform: scale(1.15);
    text-decoration: none;
}

.btn-action-round.active {
    background: #ff4757;
    border-color: #ff4757;
    color: #fff;
}

.view-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(20, 20, 20, 0.8);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.movie-title-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #efefef;
    margin: 0;
    letter-spacing: 0.2px;
}

.meta-item {
    font-size: 0.8rem;
    color: #999;
}

.type-badge-minimal {
    font-size: 0.65rem;
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.5);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    background: rgba(255, 71, 87, 0.05);
}

/* Utilities & Components */
#toast-modern {
    position: fixed;
    top: 90px;
    right: 20px;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    display: none;
    z-index: 9999;
    border: 1px solid rgba(255, 71, 87, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff4757;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: #ff6b81;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
}

/* Footer Styles */
.main-footer {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0 20px 0;
    margin-top: 80px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none !important;
    color: #fff !important;
}

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    transition: 0.3s;
    font-size: 0.9rem;
    text-decoration: none !important;
}

.footer-link:hover {
    color: #ff4757;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 10px;
    transition: 0.3s;
}

.social-icon:hover {
    background: #ff4757;
    color: #fff;
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 30px;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}
