/* ============================================================
   PalakkadNews.com - BRAND CSS
   Exact masthead, navigation, breadcrumb, footer styles
   Matching index.php / palakkad-updates-live.php
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --ink: #0f0e0c;
    --gold: #c9a84c;
    --gold-light: #f0d88a;
    --cream: #faf7f0;
    --rust: #b94a2c;
    --mid: #5a5a4e;
    --light: #e0ddd5;
    --white: #ffffff;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════
   MASTHEAD
═══════════════════════════ */
.pn-masthead {
    background: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    border-bottom: 1px solid rgba(201,168,76,0.15);
}
.pn-masthead-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.pn-masthead-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--gold), #a88535);
    color: var(--ink);
    font-family: 'Playfair Display', serif;
    font-size: 18px; font-weight: 800;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    letter-spacing: -0.5px;
}
.pn-masthead-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.15;
}
.pn-masthead-title span { color: var(--gold); }
.pn-masthead-sub {
    font-size: 11.5px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.5px;
    margin-top: 1px;
}
.pn-masthead-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    text-align: right;
}

/* ═══════════════════════════
   NAVIGATION
═══════════════════════════ */
.pn-nav {
    background: #1a1814;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}
.pn-bar {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 48px;
}
.pn-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--gold);
    display: none;
}
.pn-links {
    display: flex;
    gap: 0;
    height: 100%;
}
.pn-links > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.pn-links > li > a,
.pn-links > li > button.subtoggle {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}
.pn-links > li > a:hover,
.pn-links > li > button.subtoggle:hover,
.pn-links > li.active > a {
    color: var(--gold);
}
/* Dropdown */
.pn-links .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #111;
    border: 1px solid rgba(201,168,76,0.1);
    border-radius: 0 0 8px 8px;
    padding: 6px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 100;
}
.pn-links .has-sub:hover > .submenu,
.pn-links .has-sub.open > .submenu {
    display: block;
}
.pn-links .submenu a {
    display: block;
    padding: 9px 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s, background 0.2s;
}
.pn-links .submenu a:hover {
    color: var(--gold);
    background: rgba(201,168,76,0.06);
}
/* Hamburger toggle */
.pn-toggle {
    display: none;
    border: none;
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    width: 40px; height: 40px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
}
/* Mobile drawer */
.pn-drawer {
    display: none;
    background: #111;
    border-top: 1px solid rgba(201,168,76,0.12);
}
.pn-drawer.open { display: block; }
.pn-drawer > ul { padding: 8px 0; }
.pn-drawer li { text-align: center; }
.pn-drawer a {
    display: block;
    padding: 11px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.pn-drawer a:hover { color: var(--gold); }
.pn-drawer .submenu { display: none; background: #0a0a0a; }
.pn-drawer li.open > .submenu { display: block; }
.pn-drawer button.subtoggle {
    background: none; border: none;
    color: rgba(255,255,255,0.7);
    font-weight: 600; cursor: pointer;
    font-size: 14px; padding: 11px 20px;
    font-family: 'DM Sans', sans-serif;
    width: 100%;
    transition: color 0.2s;
}
.pn-drawer button.subtoggle:hover { color: var(--gold); }

/* ═══════════════════════════
   BREADCRUMB
═══════════════════════════ */
.pn-breadcrumb {
    background: var(--cream);
    border-bottom: 1px solid var(--light);
    padding: 10px 40px;
    font-size: 12px;
    color: var(--mid);
    overflow: auto;
    white-space: nowrap;
}
.pn-breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
}
.pn-breadcrumb a { color: var(--gold); transition: opacity 0.2s; }
.pn-breadcrumb a:hover { opacity: 0.75; }
.pn-breadcrumb .sep { color: var(--light); font-size: 14px; }

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
.pn-footer {
    background: var(--ink);
    padding: 48px 40px 36px;
    margin-top: 48px;
    border-top: 3px solid var(--gold);
}
.pn-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
}
.pn-footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 14px;
}
.pn-footer-brand span { color: var(--gold); }
.pn-footer-copy {
    font-size: 13.5px;
    color: rgba(255,255,255,0.42);
    line-height: 1.75;
    margin-bottom: 5px;
}
.pn-footer-copy a { color: var(--gold); transition: opacity 0.2s; }
.pn-footer-copy a:hover { opacity: 0.75; }
.pn-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-top: 12px;
}
.pn-footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.42);
    transition: color 0.2s;
}
.pn-footer-links a:hover { color: var(--gold); }
.pn-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.pn-social-pill {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 6px 14px;
    border-radius: 100px;
    transition: background 0.2s, color 0.2s;
}
.pn-social-pill:hover {
    background: var(--gold);
    color: var(--ink);
}

/* ═══════════════════════════
   RESPONSIVE
═══════════════════════════ */
@media (max-width: 768px) {
    .pn-masthead { padding: 14px 18px; }
    .pn-masthead-title { font-size: 1.25rem; }
    .pn-masthead-tagline { display: none; }
    .pn-brand { display: block; }
    .pn-toggle { display: flex; }
    .pn-links { display: none; }
    .pn-drawer.open { display: block; }
    .pn-breadcrumb { padding: 8px 16px; }
    .pn-footer { padding: 36px 18px 28px; }
    .pn-footer-inner { flex-direction: column; gap: 24px; }
}
