/* ===========================
   NipAlert.org - Stylesheet
   =========================== */
:root {
    --orange: #F7931A;
    --orange-dark: #e07f0e;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-card-alt: #242424;
    --bg-header: #111111;
    --text: #e0e0e0;
    --text-muted: #999;
    --border: #333;
    --green: #2ecc71;
    --red: #e74c3c;
    --cyan: #4dd0e1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

a { color: var(--orange); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--orange-dark); }

/* HEADER / NAV */
.site-header {
    background: var(--bg-header);
    border-bottom: 2px solid var(--orange);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--orange);
}
.site-header .logo span { color: #fff; }
.site-nav { display: flex; gap: 20px; }
.site-nav a {
    color: var(--text);
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: 6px;
    transition: 0.25s;
}
.site-nav a:hover, .site-nav a.active {
    background: var(--orange);
    color: #000;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

/* CARDS */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.card h2 {
    color: var(--orange);
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.card p { color: var(--text-muted); }

/* BLOG POST CARDS */
.blog-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.blog-card img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.blog-card .blog-content { flex: 1; }
.blog-card .blog-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.blog-card .blog-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.blog-card .blog-text {
    color: var(--text-muted);
    line-height: 1.6;
}
.blog-card .blog-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}
.blog-card .blog-text a {
    color: var(--orange);
}
.blog-card .blog-text a:hover {
    color: var(--orange-dark);
}
.blog-card .blog-text h1,
.blog-card .blog-text h2,
.blog-card .blog-text h3 {
    color: #fff;
    margin: 15px 0 8px;
}
.blog-card .blog-text ul,
.blog-card .blog-text ol {
    margin: 10px 0;
    padding-left: 25px;
}
.blog-card .blog-text blockquote {
    border-left: 3px solid var(--orange);
    margin: 15px 0;
    padding: 10px 15px;
    background: rgba(247,147,26,0.05);
    border-radius: 0 8px 8px 0;
}
.blog-card .blog-text pre {
    background: #111;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
}
.blog-card .blog-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}
.blog-card .blog-text table th,
.blog-card .blog-text table td {
    padding: 8px 12px;
    border: 1px solid var(--border);
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}
.stat-box {
    background: var(--bg-card-alt);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s;
}
.stat-box:hover { border-color: var(--orange); }
.stat-box .stat-icon { font-size: 2rem; margin-bottom: 8px; }
.stat-box .stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--orange);
}
.stat-box .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* DDL */
.category-section { margin-bottom: 35px; }
.category-title {
    font-size: 1.3rem;
    color: var(--orange);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.file-list { list-style: none; }
.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-card-alt);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: 0.2s;
}
.file-item:hover { background: #2a2a2a; }
.file-info { flex: 1; }
.file-info .file-title { color: #fff; font-weight: 600; }
.file-info .file-desc { color: var(--text-muted); font-size: 0.85rem; margin-top: 3px; }
.file-info .file-meta { color: var(--text-muted); font-size: 0.8rem; margin-top: 3px; }
.btn-download {
    background: var(--orange);
    color: #000;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    transition: 0.2s;
    white-space: nowrap;
}
.btn-download:hover { background: var(--orange-dark); color: #000; }

/* WUNSCHBOX */
.wunsch-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.wunsch-input input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    outline: none;
}
.wunsch-input input:focus { border-color: var(--orange); }

/* BUTTONS */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.2s;
}
.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #27ae60; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-small { padding: 5px 12px; font-size: 0.8rem; }

/* MOVIE RESULTS */
.movie-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: var(--bg-card-alt);
    border-radius: 8px;
    margin-bottom: 8px;
}
.movie-item img {
    width: 45px;
    height: 65px;
    object-fit: cover;
    border-radius: 4px;
}
.movie-item .movie-info { flex: 1; }
.movie-item .movie-title { color: #fff; font-weight: 600; }

.btn-add {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    background: var(--orange);
    color: #000;
}
.btn-add.added { background: var(--green); color: #fff; }
.btn-add.remove { background: var(--red); color: #fff; }

/* FOOTER */
.site-footer {
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* PAGE TITLE */
.page-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
}
.page-title span { color: var(--orange); }

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 10px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .site-header { flex-direction: column; gap: 10px; }
    .blog-card { flex-direction: column; }
    .blog-card img { width: 100%; height: 200px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .file-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .wunsch-input { flex-direction: column; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .container { padding: 0 12px; }
}
