/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #0D0D0F;
    --bg-panel: #1B1B2F;
    --accent-purple: #4C3BCF;
    --accent-yellow: #FFCC00;
    --text-light: #E6E6E6;
    --text-gray: #A0A0C0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* ===== TYPOGRAPHY ===== */
.highlight {
    color: var(--accent-yellow);
}

.subtitle {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin: 15px 0 30px;
    max-width: 700px;
    line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--accent-purple);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 0 15px rgba(76, 59, 207, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-purple);
    color: var(--accent-purple);
}

.btn-outline:hover {
    background: var(--accent-purple);
    color: white;
}

.btn-yellow {
    background: var(--accent-yellow);
    color: #000;
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--bg-main) 0%, #151525 100%);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--text-light), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ===== CARD FEATURES ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 60px 0;
}

.feature-card {
    background: var(--bg-panel);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(76, 59, 207, 0.3);
}

.feature-card h3 {
    margin: 20px 0 15px;
    color: var(--text-light);
}

/* ===== FORM ===== */
.form-card {
    background: var(--bg-panel);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    max-width: 800px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #252535;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(76, 59, 207, 0.3);
}

.preview-poster {
    width: 150px;
    height: 225px;
    background: #333;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    text-align: center;
}

.preview-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: none;
}

/* ===== GUEST CARD (LETTERBOXD STYLE) ===== */
.guests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.letterboxd-card {
    background: var(--bg-panel);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.letterboxd-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(76, 59, 207, 0.4);
}


.letterboxd-card .content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.letterboxd-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.letterboxd-card h3::before {
    content: "👤";
    font-size: 1.2rem;
    color: var(--accent-yellow);
}

.rating {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.rating span {
    font-size: 1.2rem;
    color: #FFCC00;
}

.badge {
    display: inline-block;
    background: var(--accent-yellow);
    color: #000;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin-right: 5px;
    margin-bottom: 8px;
}

.review {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 10px;
    line-height: 1.4;
}

.date {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 5px;
}

/* ===== TABLE ADMIN ===== */
.table-container {
    background: var(--bg-panel);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    margin: 30px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #333;
}

table th {
    background: #222235;
    color: var(--accent-yellow);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

table tr:hover {
    background: rgba(76, 59, 207, 0.1);
}

/* ===== NOTIFICATION ===== */
#notification {
    position: fixed;
    top: 25px;
    right: 25px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    z-index: 9999;
}

#notification.show {
    opacity: 1;
    transform: translateY(0);
}

#notification.success {
    background: #28a745;
}

#notification.error {
    background: #dc3545;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 30px;
    background: #151520;
    color: var(--text-gray);
    margin-top: 60px;
    border-top: 1px solid #222;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .form-card {
        padding: 25px;
    }
}

/* ===== POSTER CONTAINER ===== */
.poster-container {
    width: 100%;
    aspect-ratio: 2 / 3; /* Menentukan rasio poster */
    overflow: hidden;
    background: #252535;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A0A0C0;
    font-size: 0.9rem;
    text-align: center;
}

.poster-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poster-container.no-poster {
    background: #252535;
    color: #A0A0C0;
    font-size: 0.9rem;
    text-align: center;
    padding: 10px;
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--bg-main) 0%, #151525 100%);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--text-light), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-buttons .btn {
    padding: 14px 24px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-buttons .btn svg {
    width: 18px;
    height: 18px;
}

/* ===== FEATURES SECTION ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 60px 0;
}

.feature-card {
    background: var(--bg-panel);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(76, 59, 207, 0.3);
}

.feature-card .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-yellow);
}

.feature-card h3 {
    margin: 20px 0 15px;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}