/* ========================================== */
/* RESET & VARIABEL UTAMA                    */
/* ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
    --bg-dark: #090d16;
    --card-bg: rgba(21, 30, 48, 0.65);
    --card-border: rgba(255, 255, 255, 0.12);
    --primary-cyan: #00f2fe;
    --primary-blue: #4facfe;
    --accent-purple: #7f00ff;
    --accent-green: #00e676;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
}

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

/* ========================================== */
/* BACKGROUND EFEK GLOW 3D (LUMINOUS)        */
/* ========================================== */
.bg-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    animation: floatGlow 8s infinite alternate ease-in-out;
}

.glow-1 {
    top: -100px;
    left: -50px;
    background: var(--accent-purple);
}

.glow-2 {
    bottom: -100px;
    right: -50px;
    background: var(--primary-cyan);
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.15); }
}

/* ========================================== */
/* HEADER GLASSMORPHISM                       */
/* ========================================== */
header {
    background: rgba(9, 13, 22, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px var(--primary-cyan));
}

.logo .highlight {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-app-3d {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid var(--card-border);
    color: var(--text-white);
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-app-3d:hover {
    transform: translateY(-2px);
    border-color: var(--primary-cyan);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.25);
}

.lang-selector {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========================================== */
/* HERO SECTION 4D CARD                       */
/* ========================================== */
.hero-container {
    padding: 50px 20px 30px 20px;
    display: flex;
    justify-content: center;
}

.hero-card-4d {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 40px 30px;
    max-width: 680px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: perspective(1000px) rotateX(1deg);
    transition: transform 0.3s ease;
}

.badge-tag {
    display: inline-block;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--primary-cyan);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.hero-card-4d h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan), #e0c3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-card-4d p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* FORM INPUT 4D NEUMORPHIC */
.input-wrapper-4d {
    position: relative;
    background: rgba(10, 15, 26, 0.8);
    border: 1.5px solid var(--card-border);
    border-radius: 20px;
    padding: 6px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
    transition: border-color 0.3s ease;
}

.input-wrapper-4d:focus-within {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25), inset 0 2px 8px rgba(0,0,0,0.5);
}

.search-icon {
    padding-left: 14px;
    font-size: 18px;
    color: var(--text-muted);
}

.input-wrapper-4d input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    padding: 12px 10px;
    font-size: 14px;
}

.btn-paste {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--primary-cyan);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-paste:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-submit-4d {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: #050b14;
    border: none;
    padding: 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.3);
    transition: all 0.3s ease;
}

.btn-submit-4d:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.45);
}

/* LOADING KUBUS 3D */
.loading-3d {
    margin-top: 25px;
    display: none;
}

.cube-spinner {
    width: 30px;
    height: 30px;
    margin: 0 auto 15px auto;
    animation: rotateCube 1.2s infinite ease-in-out;
    transform-style: preserve-3d;
}

.cube-spinner div {
    background-color: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
    height: 100%;
    position: absolute;
    width: 100%;
    opacity: 0.8;
}

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.loading-3d p {
    font-size: 13px;
    color: var(--primary-cyan);
}

/* ========================================== */
/* KONTEN UTAMA & KARTU HASIL (RESULT CARD)   */
/* ========================================== */
.main-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    flex-grow: 1;
}

.result-card-4d {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    position: relative;
    display: none; /* Hidden by default */
}

.result-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--accent-green);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.result-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.thumb-container {
    position: relative;
    width: 120px;
    flex-shrink: 0;
}

.thumb-container img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.quality-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.2);
}

.details-container {
    flex-grow: 1;
}

.author-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 6px;
    display: block;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #e2e8f0;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.action-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-green-4d {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: #032014;
    box-shadow: 0 6px 20px rgba(0, 176, 155, 0.25);
}

.btn-green-4d:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 176, 155, 0.4);
}

.btn-blue-4d {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    color: var(--text-white);
}

.btn-blue-4d:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-cyan);
}

/* FITUR UNGGULAN 3D GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.feature-card-3d {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 20px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.feature-card-3d:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary-cyan);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.feature-card-3d h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-card-3d p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--card-border);
    padding: 25px 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(5, 10, 20, 0.8);
}

.disclaimer {
    margin-top: 6px;
    font-size: 11px;
    opacity: 0.6;
}

/* RESPONSIVE UNTUK HP */
@media (max-width: 580px) {
    .hero-card-4d { padding: 30px 18px; }
    .hero-card-4d h1 { font-size: 24px; }
    .result-grid { flex-direction: column; align-items: center; text-align: center; }
    .thumb-container { width: 140px; }
}
