/* ========================================= */
/* GLOBAL STYLES */
/* ========================================= */
:root {
    --bg-dark: #0f0f0f;
    --card-bg: #1a1a1a;
    --card-hover: #222222;
    --primary-red: #ff3131;
    --border-color: #2a2a2a;
    --text-white: #f0f0f0;
    --text-gray: #888888;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Mengubah semua warna link default agar menjadi putih dan tidak ada garis bawah */
a {
    color: var(--text-white);
    text-decoration: none;
    transition: 0.2s;
}

/* Efek saat link disentuh/diarahkan kursor (opsional, berubah menjadi merah atau tetap putih sesuai selera) */
a:hover {
    color: var(--primary-red);
}


/* ========================================= */
/* HEADER / TOPBAR */
/* ========================================= */
.topbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #111111;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

.logo { 
    font-size: 1.1rem; 
    font-weight: 800; 
    color: var(--primary-red);
    letter-spacing: 1px;
}

.top-menu { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.login-top, .register-top {
    text-decoration: none;
    color: var(--text-white);
    border: 1px solid var(--border-color);
    background-color: #222222;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s;
}

.login-top:hover, .register-top:hover {
    border-color: var(--primary-red);
    background-color: #2a2a2a;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-white);
}

.profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* ========================================= */
/* LOGIN CONTAINER */
/* ========================================= */
.main-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    padding-bottom: 30px;
}

.login-header {
    background-color: #151515;
    border-bottom: 1px solid var(--border-color);
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 25px;
}

.login-header h2 { 
    color: var(--text-white); 
    font-size: 20px; 
    font-weight: 600; 
}

.input-group { 
    padding: 0 25px; 
    margin-bottom: 15px; 
}

.input-group input {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-white);
    background-color: #121212;
    transition: border-color 0.3s;
    outline: none;
}

.input-group input:focus { 
    border-color: var(--primary-red); 
}

.options-row {
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-gray);
}

.login-btn {
    display: block;
    width: calc(100% - 50px);
    margin: 0 auto 20px auto;
    padding: 12px;
    background-color: var(--primary-red);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s;
}

.login-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.01);
}

/* ========================================= */
/* POST CARD */
/* ========================================= */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 15px;
    width: 100%;
}

.post-card {
    display: flex;
    gap: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-white);
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
}

.post-card:hover { 
    transform: translateY(-3px); 
    background-color: var(--card-hover);
    border-color: #333333;
}

.thumb { 
    width: 150px; 
    height: 110px; 
    object-fit: cover; 
    background-color: #151515;
}

.post-info { 
    flex: 1; 
    padding: 12px; 
}

.post-info h2 { 
    font-size: 16px; 
    margin-bottom: 6px; 
    color: var(--text-white);
}

.post-info p { 
    color: var(--text-gray); 
    font-size: 12px; 
    margin: 0;
}

/* ========================================= */
/* FOOTER */
/* ========================================= */
footer {
    background-color: #111111;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    text-align: center;
    padding: 25px 20px;
    margin-top: auto;
    font-size: 12px;
}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */
@media (max-width: 480px) {
    .login-container { 
        border-radius: 0; 
        box-shadow: none; 
        border: none;
        background: transparent;
    }
    
    .options-row { 
        flex-direction: column; 
        gap: 10px; 
        align-items: flex-start; 
    }
    
    .post-card { 
        flex-direction: column; 
    }
    
    .thumb { 
        width: 100%; 
        height: 180px; 
    }
}
