:root {
    --primary: blue;
    --primary-dark: darkblue;
    --bg: #f5f7fa;
    --text: #222;
    --knoefies-pink: #ff4fa3;
    --knoefies-blue: #4fc3ff;
    --knoefies-green: #6ee27a;
    --knoefies-yellow: #ffd84f;
    --knoefies-purple: #b57cff;
}

/* =========================
   BASE
========================= */

body {
    line-height: 1.6;
    font-family: Arial, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

/* =========================
   HEADINGS
========================= */

h1, h2, h3 {
    color: var(--primary);
    margin-top: 0;
}

/* =========================
   PAGE LAYOUT (ADS + CONTENT)
========================= */

.page-layout {
    display: flex;
    width: 100%;
}

.ad-left,
.ad-right {
    width: 20%;
}

.main-content {
    width: 60%;
    display: flex;
    justify-content: center;
}

/* =========================
   CONTAINER
========================= */

.container {
    width: 80%;
    max-width: 1000px;
    margin: auto;
    padding: 15px;
}

/* =========================
   HEADER
========================= */

header {
    background: var(--primary);
    color: white;
    padding: 10px 0;
}

header h1 {
    margin: 0;
    font-size: 22px;
    color: white;
}

.tagline {
    margin-top: 5px;
    font-size: 14px;
    opacity: 0.9;
}

/* NAV */
nav {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    transition: 0.2s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* SEARCH */
.search {
    margin-top: 10px;
}

.search input {
    padding: 8px;
    width: 100%;
    max-width: 300px;
    border-radius: 4px;
    border: none;
}

/* =========================
   LAYOUT CONTENT SYSTEM
========================= */

.content {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.main {
    flex: 3;
    min-width: 0;
}

.sidebar {
    flex: 1;
    max-width: 300px;
    background: white;
    padding: 15px;
    border-radius: 6px;
}

/* =========================
   FEATURED
========================= */

.featured {
    background: white;
    padding: 20px;
    border-radius: 6px;
    max-width: 800px;
    margin: 0 auto;
}

.featured img {
    width: 100%;
    border-radius: 5px;
}

/* =========================
   ARTICLES LIST
========================= */

.articles {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

.article {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.article a {
    color: var(--primary);
    text-decoration: none;
}

/* =========================
   ARTICLE PAGE
========================= */

.article-content {
    background: white;
    padding: 20px;
    border-radius: 6px;
}

.article small {
    display: block;
    color: #777;
    font-size: 12px;
    margin-top: 4px;
}

.article-content img {
    width: 100%;
    border-radius: 5px;
    margin: 10px 0;
}

.article-content p {
    font-size: 15px;
}

/* =========================
   TEXT ELEMENTS
========================= */

.slug {
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 3px;
    letter-spacing: 1px;
}

.title {
    font-size: 17px;
    color: var(--primary);
    text-decoration: none;
    display: block;
}

.title:hover {
    text-decoration: underline;
}

/* CATEGORIES */
.cat-link {
    font-size: 12px;
    margin-right: 6px;
    color: var(--primary);
    text-decoration: none;
}

.cat-link:hover {
    text-decoration: underline;
}

/* =========================
   TABLE
========================= */

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    border: 1px solid #ccc;
    padding: 8px;
}

.table th {
    background: #f5f5f5;
}

/* =========================
   IMAGE SYSTEM
========================= */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* IMAGE CONTAINER */
.image-container {
    width: 80%;
    margin: 20px auto;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* =========================
   AUDIO
========================= */

.audio-featured {
    margin-bottom: 8px;
}

.audio-btn {
    background: #ff0000;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* =========================
   STORY NAV
========================= */

.story-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 420px;
    margin: 10px auto;
    padding: 10px 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.story-nav a {
    text-decoration: none;
    font-weight: bold;
    color: var(--primary);
}

.story-nav .disabled {
    opacity: 0.3;
}

/* =========================
   VIEWS
========================= */

.views {
    text-align: left;
    font-size: 14px;
    color: #777;
    margin-top: 6px;
    display: block;
}

/* =========================
   MOBILE FIX
========================= */

@media (max-width: 768px) {

    .page-layout {
        flex-direction: column;
    }

    .ad-left,
    .ad-right {
        width: 100%;
        display: none;
    }

    .main-content {
        width: 100%;
    }

    .container {
        width: 90%;
        padding: 10px;
    }

    .article-content {
        margin: 0;
        padding: 15px;
        border-radius: 0;
    }

    .content {
        flex-direction: column;
    }

    .sidebar {
        order: 2;
        max-width: 100%;
    }

    .main {
        order: 1;
    }

    header h1 {
        font-size: 20px;
    }

    .title {
        font-size: 16px;
    }

    .search input {
        width: 100%;
    }
}

.logo {
    font-size: 40px;
    font-weight: bold;
    background: linear-gradient(
        90deg,
        #ff4fa3,
        #b57cff,
        #4fc3ff,
        #6ee27a,
        #ffd84f
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

