* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    padding-top: 60px;
    background-color: #c8cdd2;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navbar ── */
.navbar {
    background-color: rgb(199, 201, 214);
    padding: 0.75rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1000;
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.8rem;
    color: #111;
    letter-spacing: -0.01em;
}

.logo span { color: #3D7AB8; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links li a:hover { color: #4CAF50; }

.nav-links li a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #4CAF50;
}

.nav-links li a.active { color: #3250bd; }

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #4CAF50;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    touch-action: manipulation;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #222;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ── Cards Section ── */
.cards-section {
    background-color: rgb(40, 140, 190);
    padding: 1.5rem 0;
    margin-top: 0;
    text-align: center;
    box-shadow:
        inset 0 8px 12px -4px rgba(0, 0, 0, 0.6),
        inset 0 -8px 12px -4px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.cards-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.cards-section h2 {
    color: white;
    font-size: 1.7rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.languages-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}

.language-card {
    background-color: #b8cbc4;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    padding: 0.8rem;
    width: 95px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.language-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.language-card h4 { font-size: 0.9rem; margin-bottom: 0.5rem; }

.language-card img { width: 50px; height: 50px; object-fit: contain; }

/* ── Main Content ── */
.container {
    max-width: 1280px;
    margin: 1rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    flex: 1;
}

.feed-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feed-column { display: flex; flex-direction: column; }

.feed-column h2 { font-size: 1.2rem; margin-bottom: 0.75rem; color: #1f2937; }

.link-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.feed-item { padding: 0.5rem 0; transition: background 0.2s ease; }
.feed-item:hover { background-color: #f9f9f9; }

.feed-link { text-decoration: none; color: #222; display: block; }

.feed-title { font-weight: 600; font-size: 1.05rem; line-height: 1.4; }

.feed-date { display: block; font-size: 0.85rem; color: #666; margin-top: 0.35rem; }

@media (min-width: 769px) {
    #techradar-feed { border-right: 1px solid #eee; padding-right: 1rem; }
    #techplanet-feed { padding-left: 1rem; }
}

/* ── Django messages ── */
.messages {
    max-width: 1280px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
    list-style: none;
}

.messages li {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-weight: 500;
}

.messages li.success { background: #c6f6d5; color: #22543d; border: 1px solid #9ae6b4; }
.messages li.error   { background: #fed7d7; color: #742a2a; border: 1px solid #fc8181; }
.messages li.warning { background: #fefcbf; color: #744210; border: 1px solid #f6e05e; }
.messages li.info    { background: #bee3f8; color: #2a4365; border: 1px solid #90cdf4; }

/* ── Footer ── */
.footer-wrap {
    background: #4a5c6a;
    border-top: 3px solid #3a4c5a;
    font-family: Arial, sans-serif;
    margin-top: auto;
}

.footer-constrain { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    border-bottom: 2px solid #5a6c7a;
}

.footer-col {
    padding: 2rem 1.5rem;
    border-right: 1px solid #5a6c7a;
}
.footer-col:last-child { border-right: none; }

.wordmark {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
}
.wordmark .boz  { color: #f0f0f0; }
.wordmark .code { color: #a8d4f0; }

.brand-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #c0d0dc;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.brand-desc {
    font-size: 0.82rem;
    color: #d0dde6;
    line-height: 1.7;
    max-width: 220px;
}

.stack-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.2rem; }

.pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #e0eef8;
    border: 1px solid #6a7c8a;
    background: #3a4c5a;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.02em;
}

.col-heading {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #e0eef8;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #a8c4d8;
    display: inline-block;
}

.footer-col .link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0;
}

.footer-col .link-list li a {
    text-decoration: none;
    font-size: 0.85rem;
    color: #d0dde6;
    font-weight: 400;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col .link-list li a:hover { color: #ffffff; }

.link-arrow { font-size: 0.7rem; color: #a8c4d8; transition: color 0.15s; }
.footer-col .link-list li a:hover .link-arrow { color: #ffffff; }

.img-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 2px solid #111;
    box-shadow: 4px 4px 0 #3D7AB8;
    overflow: hidden;
    background: #0a1520;
    margin-bottom: 0.75rem;
}

.img-frame img,
.img-frame svg { width: 100%; height: 100%; display: block; object-fit: cover; }

.img-caption {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #3a5470;
    letter-spacing: 0.03em;
}

.footer-bottom-bar { background: #3a4c5a; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: #a0b4c4;
    letter-spacing: 0.02em;
}
.footer-copy span { color: #e0eef8; }

.social-links { display: flex; gap: 1rem; }
.social-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: #a0b4c4;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.15s;
}
.social-links a:hover { color: #ffffff; }

@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-col:nth-child(2) { border-right: none; }
}

@media (max-width: 560px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-col { border-right: none; border-bottom: 1px solid #1e2c42; }
    .footer-col:last-child { border-bottom: none; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: rgb(233, 234, 243);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active { max-height: 400px; }

    .nav-links li a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        font-size: 1rem;
    }

    .nav-links li a.active::after { display: none; }

    .feed-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container {
        margin: 0.75rem;
        padding: 1rem;
        border-radius: 6px;
        max-width: none;
        width: calc(100% - 1.5rem);
    }

    .feed-layout { gap: 1.5rem; padding: 0 0.5rem; }
    .feed-column { padding: 0 0.5rem; }
    .feed-title { font-size: 1rem; }
    .feed-date  { font-size: 0.8rem; }
    .navbar { padding: 0.75rem 1rem; }
    .cards-section h2 { font-size: 1.5rem; }

    .language-card { width: 75px; padding: 0.6rem; }
    .language-card img { width: 40px; height: 40px; }
}
