/* style.css */
:root {
    --primary-color: #ff5722;
    --bg-body: #ffffff;
    --text-main: #1a1a1a;
    --space: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; background: var(--bg-body); color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

header { padding: calc(var(--space) * 3) 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 calc(var(--space) * 3); }
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo { font-size: 2rem; font-weight: 900; letter-spacing: -1px; text-transform: uppercase; color: #000; }
.nav-links a { margin-left: calc(var(--space) * 3); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; color: #555; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-color); }
.btn-primary { background: var(--primary-color); color: #fff !important; padding: 8px 16px; border-radius: 4px; }

/* Beautiful News Home Grid */
.home-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: calc(var(--space) * 4); 
    padding: calc(var(--space) * 5) 0;
}

.visual-card { 
    position: relative; 
    border-radius: 12px; 
    overflow: hidden; 
    aspect-ratio: 4 / 5; /* Membuat grid masonry-like proporsional */
    background: #000; 
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.visual-card img { 
    width: 100%; height: 100%; object-fit: cover; 
    opacity: 0.85; transition: transform 0.5s ease, opacity 0.3s ease; 
}

.visual-card:hover img { transform: scale(1.05); opacity: 0.6; }

.visual-content { 
    position: absolute; bottom: 0; left: 0; right: 0; 
    padding: calc(var(--space) * 4); 
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); 
    color: #fff;
}

.visual-content h2 { font-size: 1.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 8px; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); }
.visual-content p { font-size: 0.9rem; color: #e0e0e0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Article Detail */
.article-detail { max-width: 800px; margin: calc(var(--space) * 6) auto; }
.article-detail h1 { font-size: 3rem; line-height: 1.1; margin-bottom: calc(var(--space) * 3); }
.meta-detail { font-size: 0.95rem; color: #777; margin-bottom: calc(var(--space) * 4); padding-bottom: calc(var(--space) * 2); border-bottom: 1px solid #eee; }
.article-detail img { width: 100%; border-radius: 12px; margin-bottom: calc(var(--space) * 4); }
.article-detail .content { font-size: 1.2rem; line-height: 1.8; color: #333; }

/* Forms (Login & Create) */
.form-container { max-width: 500px; margin: calc(var(--space) * 8) auto; padding: calc(var(--space) * 4); background: #f9f9f9; border-radius: 8px; border: 1px solid #eee; }
.form-container.wide { max-width: 800px; }
.form-container h1 { margin-bottom: calc(var(--space) * 3); text-align: center; }
.form-group { margin-bottom: calc(var(--space) * 3); }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 1rem; }
.btn-submit { width: 100%; background: #000; color: #fff; padding: 14px; border: none; font-size: 1.1rem; font-weight: bold; cursor: pointer; border-radius: 4px; }
.btn-submit:hover { background: var(--primary-color); }
.error-msg { background: #fee; color: #c00; padding: 12px; border-radius: 4px; margin-bottom: 16px; }

footer { text-align: center; padding: calc(var(--space) * 6) 0; color: #888; font-size: 0.9rem; }