/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e2e8f0;
    min-height: 100vh;
}

/* ===== LAYOUT ===== */
.wrap {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* ===== CARD ===== */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ===== HEADINGS ===== */
h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

/* ===== LINKS ===== */
.toplinks {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.toplinks a {
    text-decoration: none;
    color: #38bdf8;
    font-weight: 600;
    transition: 0.2s;
}

.toplinks a:hover {
    color: #7dd3fc;
}

/* ===== MESSAGES ===== */
.msg {
    padding: 10px 14px;
    border-radius: 10px;
    margin-top: 12px;
    font-weight: 600;
}

.msg.error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.msg.ok {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.msg.info {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* ===== INPUTS ===== */
input,
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    margin-top: 6px;
    margin-bottom: 12px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #38bdf8;
}

/* ===== BUTTONS ===== */
.btn {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    border: none;
    color: white;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(56,189,248,0.4);
}

.btn.gray {
    background: #334155;
}

.btn.gray:hover {
    background: #475569;
}

.btn.red {
    background: #ef4444;
}

.btn.red:hover {
    background: #dc2626;
}

/* ===== ROW (weeks) ===== */
.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.03);
}

/* ===== TAG ===== */
.tag {
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
}

.tag.on {
    background: rgba(34,197,94,0.2);
    color: #4ade80;
}

.tag.off {
    background: rgba(239,68,68,0.2);
    color: #f87171;
}

/* ===== NEWS LIST ===== */
.news-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.03);
}

.news-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .wrap {
        padding: 14px;
    }

    h1 {
        font-size: 22px;
    }

    .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-item {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
/* ===== LAYOUT 2 COLUMN ===== */
.layout {
    max-width: 1300px;
    margin: auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.left, .right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* WEEK CARD */
.week-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    margin-bottom: 10px;
}

.week-title {
    font-weight: 800;
}

/* NEWS CARD */
.news-card {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    margin-bottom: 12px;
}

.news-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.news-title {
    font-weight: 800;
}

.news-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* LOGIN */
.login-box {
    max-width: 400px;
    margin: 60px auto;
    text-align: center;
}

/* MOBILE */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}