/* RESET & VARIABLES */
:root {
    --primary-red: #d92525;
    --primary-red-hover: #b91c1c;
    --navy-dark: #0f172a;
    --navy-header: #1e293b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-dark: #0f172a;
    --bg-gray: #f8fafc;
    --card-border: #e2e8f0;
    --police-yellow: #f59e0b;
    --police-blue: #1e40af;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --font-body: 'Merriweather', Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-heading);
    background-color: var(--bg-gray);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* CONTAINER */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 14px;
    width: 100%;
}

/* TOP HEADER UTILITY BAR */
.top-bar {
    background-color: var(--navy-dark);
    color: #94a3b8;
    font-size: 11px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left strong, .top-bar-right a strong {
    color: #f1f5f9;
}

@media (max-width: 480px) {
    .top-bar-right {
        display: none;
    }
}

.divider {
    color: #475569;
}

.highlight-link {
    color: var(--primary-red) !important;
    font-weight: 600;
}

/* MAIN HEADER */
.main-header {
    background-color: #ffffff;
    border-bottom: 2px solid var(--primary-red);
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    position: relative;
    z-index: 110;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* MOBILE MENU BUTTON */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    background: #f1f5f9;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.mobile-menu-btn span {
    display: block;
    height: 2.5px;
    width: 100%;
    background-color: var(--navy-dark);
    border-radius: 2px;
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-badge {
    background-color: var(--primary-red);
    color: #ffffff;
    font-weight: 900;
    font-size: 20px;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: -0.5px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--navy-dark);
    line-height: 1;
}

@media (min-width: 768px) {
    .logo-main {
        font-size: 28px;
    }
    .logo-badge {
        font-size: 24px;
        padding: 6px 10px;
    }
}

.logo-accent {
    color: var(--primary-red);
}

.logo-domain {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 700;
}

.logo-tagline {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #64748b;
    margin-top: 2px;
}

@media (max-width: 480px) {
    .logo-tagline {
        display: none;
    }
}

/* FAKE HEADER AD BANNER */
.header-banner-ad {
    display: none;
}

@media (min-width: 992px) {
    .header-banner-ad {
        display: block;
        flex: 1;
        max-width: 480px;
    }
}

.fake-ad {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-tag {
    background: #94a3b8;
    color: white;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 700;
}

.ad-text {
    color: #475569;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
}

.search-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-dark);
    cursor: pointer;
}

/* NAVIGATION MENU BAR */
.main-nav {
    background-color: var(--navy-header);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.nav-list {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: block;
    padding: 10px 14px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
}

@media (min-width: 768px) {
    .nav-link {
        padding: 12px 16px;
        font-size: 13px;
    }
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background-color: rgba(255,255,255,0.05);
    border-bottom-color: var(--primary-red);
}

.badge-live {
    color: #ef4444;
    font-weight: 800;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* MOBILE NAV DRAWER */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--navy-dark);
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    left: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}

.drawer-title {
    color: white;
    font-weight: 900;
    font-size: 18px;
}

.drawer-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-links a {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 6px;
}

.drawer-links a.active, .drawer-links a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* BREAKING NEWS BAR */
.breaking-bar {
    background-color: #fff1f2;
    border-bottom: 1px solid #fecdd3;
    padding: 8px 0;
    font-size: 12px;
}

.breaking-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breaking-label {
    background-color: var(--primary-red);
    color: white;
    font-weight: 800;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.breaking-text {
    color: #9f1239;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-dot {
    color: var(--primary-red);
    margin-right: 2px;
}

/* LAYOUT GRID */
.main-content {
    padding-top: 16px;
    padding-bottom: 30px;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 992px) {
    .layout-grid {
        grid-template-columns: 1fr 320px;
        gap: 32px;
    }
}

/* ARTICLE COLUMN */
.article-column {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

@media (min-width: 768px) {
    .article-column {
        padding: 32px;
        border-radius: 12px;
    }
}

/* BREADCRUMBS */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* CATEGORY TAGS */
.article-category {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.cat-tag {
    background-color: #f1f5f9;
    color: #334155;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.cat-tag.tag-red {
    background-color: #fee2e2;
    color: #991b1b;
}

.cat-location {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

/* HEADLINE */
.article-headline {
    font-size: 21px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--navy-dark);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

@media (min-width: 576px) {
    .article-headline {
        font-size: 26px;
    }
}

@media (min-width: 768px) {
    .article-headline {
        font-size: 34px;
        letter-spacing: -0.5px;
    }
}

/* LEAD PARAGRAPH */
.article-lead {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    color: #334155;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-red);
}

@media (min-width: 768px) {
    .article-lead {
        font-size: 18px;
        padding-left: 16px;
    }
}

/* META BAR */
.article-meta-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
    gap: 8px;
}

@media (min-width: 576px) {
    .article-meta-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--navy-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy-dark);
}

.article-date {
    font-size: 11px;
    color: var(--text-muted);
}

.meta-stats {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: var(--text-muted);
}

/* SHARE BUTTONS */
.social-share-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

@media (min-width: 576px) {
    .social-share-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease;
    width: 100%;
}

@media (min-width: 576px) {
    .share-btn {
        width: auto;
    }
}

.btn-copy-full {
    grid-column: span 2;
}

@media (min-width: 576px) {
    .btn-copy-full {
        grid-column: auto;
    }
}

.btn-fb {
    background-color: #1877f2;
    color: white;
}

.btn-messenger {
    background-color: #0084ff;
    color: white;
}

.btn-copy {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

/* ARTICLE IMAGE & CCTV FRAME */
.article-image-box {
    margin-bottom: 24px;
}

.cctv-frame {
    position: relative;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 2px solid #334155;
}

.article-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
    object-fit: cover;
}

/* CCTV OVERLAY */
.cctv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: monospace;
    color: #22c55e;
    text-shadow: 0 0 4px rgba(0,0,0,0.9);
}

.cctv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 9px;
    letter-spacing: 0.5px;
}

@media (min-width: 576px) {
    .cctv-header {
        font-size: 11px;
        padding: 4px 8px;
    }
}

.rec-badge {
    color: #ef4444;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rec-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cctv-time {
    font-size: 10px;
    background: rgba(0,0,0,0.6);
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    align-self: flex-start;
}

/* TARGET BRACKET OVERLAY ON PHOTO */
.target-box {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 60%;
    height: 65%;
    border: 1.5px dashed rgba(239, 68, 68, 0.8);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.target-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: #ef4444;
    border-style: solid;
}

.top-left { top: -2px; left: -2px; border-width: 2.5px 0 0 2.5px; }
.top-right { top: -2px; right: -2px; border-width: 2.5px 2.5px 0 0; }
.bottom-left { bottom: -2px; left: -2px; border-width: 0 0 2.5px 2.5px; }
.bottom-right { bottom: -2px; right: -2px; border-width: 0 2.5px 2.5px 0; }

.target-label {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 2px;
    white-space: nowrap;
}

.image-caption {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

/* ARTICLE BODY */
.article-body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: #1e293b;
}

@media (min-width: 768px) {
    .article-body {
        font-size: 17px;
        line-height: 1.75;
    }
}

.article-body p {
    margin-bottom: 16px;
}

/* POLICE ALERT CARD */
.police-alert-card {
    background: #fffbebf5;
    border: 1px solid #fde68a;
    border-left: 5px solid var(--police-yellow);
    border-radius: 8px;
    padding: 14px;
    margin: 22px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.police-badge-icon {
    font-size: 26px;
    line-height: 1;
}

.police-alert-text h3 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.police-alert-text p {
    font-family: var(--font-heading);
    font-size: 13px;
    line-height: 1.45;
    color: #78350f;
    margin: 0;
}

/* TRAITS CONTAINER (RAINBOW PASTEL WOKE STYLE) */
.traits-container {
    background: linear-gradient(135deg, #fff0f5 0%, #e6e6fa 33%, #e0ffff 66%, #fff0f5 100%);
    border: 2px solid #f472b6;
    border-radius: 12px;
    padding: 16px;
    margin: 22px 0;
    font-family: var(--font-heading);
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.25);
}

.traits-header {
    border-bottom: 2px solid #f472b6;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.traits-title {
    font-weight: 800;
    font-size: 14px;
    color: #9d174d;
}

.traits-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.traits-list li {
    padding-left: 16px;
    position: relative;
    color: #831843;
}

.traits-list li::before {
    content: "🌈";
    position: absolute;
    left: -2px;
    font-size: 12px;
}

.highlight-var {
    background-color: #fbcfe8;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    color: #831843;
}

.trait-special {
    background: linear-gradient(90deg, #fce7f3 0%, #f3e8ff 50%, #e0e7ff 100%);
    padding: 8px 10px 8px 24px !important;
    border-radius: 6px;
    border: 1px dashed #ec4899;
}

.birthday-highlight {
    color: #db2777;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}

/* HIGH-IMPACT POLICE CASE REVEAL CARD (VIBRANT RAINBOW PRIDE GRADIENT) */
.bday-real-card {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 25%, #7afcff 60%, #feffb7 100%);
    color: #1e1b4b;
    border: 3px solid #ec4899;
    border-radius: 16px;
    padding: 24px 20px;
    margin: 28px 0;
    position: relative;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.35);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bday-real-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(236, 72, 153, 0.45);
}

.bday-stamp {
    position: absolute;
    top: 14px;
    right: 12px;
    background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    transform: rotate(3deg);
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.bday-real-inner {
    position: relative;
    z-index: 2;
}

.bday-real-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: #831843;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .bday-real-title {
        font-size: 28px;
    }
}

.bday-real-title span {
    color: #be185d;
    text-decoration: underline;
    text-decoration-color: #ec4899;
}

.bday-real-sub {
    font-family: var(--font-heading);
    font-size: 14px;
    color: #6b21a8;
    margin-bottom: 14px;
    font-weight: 700;
}

.bday-real-text {
    font-family: var(--font-heading);
    font-size: 14px;
    line-height: 1.6;
    color: #1e1b4b;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    padding: 14px;
    border-radius: 10px;
    border-left: 4px solid #ec4899;
    margin: 0;
    font-weight: 600;
}

/* TAGS */
.article-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
}

.tags-label {
    font-weight: bold;
    color: var(--text-muted);
}

.tag-link {
    background: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 16px;
    font-weight: 500;
}

/* COMMENTS SECTION */
.comments-section {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.comments-header h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy-dark);
}

.comments-note {
    font-size: 10px;
    color: var(--text-muted);
}

.add-comment-box {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

.comment-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.comment-author-input, .comment-text-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 13px;
}

.submit-comment-btn {
    background-color: var(--navy-dark);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
}

@media (min-width: 576px) {
    .submit-comment-btn {
        width: auto;
    }
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    display: flex;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 12px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #334155;
    font-weight: bold;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.police-avatar {
    background: var(--police-blue);
    color: white;
}

.comment-body {
    flex: 1;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.comment-author {
    font-size: 12px;
    color: var(--navy-dark);
}

.comment-time {
    font-size: 10px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 13px;
    color: #334155;
    margin: 0;
}

/* SIDEBAR WIDGETS */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.widget-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--navy-dark);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.red-line {
    width: 4px;
    height: 14px;
    background: var(--primary-red);
    display: inline-block;
    border-radius: 2px;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.rank {
    font-size: 20px;
    font-weight: 900;
    color: #cbd5e1;
    line-height: 1;
    width: 20px;
}

.pop-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pop-cat {
    font-size: 9px;
    font-weight: 800;
    color: var(--primary-red);
}

.pop-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.3;
}

.pop-views {
    font-size: 10px;
    color: var(--text-muted);
}

.weather-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
}

.weather-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.temp {
    font-size: 20px;
    font-weight: 900;
    color: var(--navy-dark);
}

.condition {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.weather-details {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid #e2e8f0;
    padding-top: 6px;
}

/* FOOTER */
.main-footer {
    background-color: var(--navy-dark);
    color: #94a3b8;
    padding: 30px 0 20px;
    margin-top: 40px;
    border-top: 4px solid var(--primary-red);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
}

.brand-col p {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.copyright {
    font-size: 11px;
    color: #64748b;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}

/* DISCREET FLOATING SETTINGS BUTTON */
.floating-settings-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: var(--navy-dark);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.floating-settings-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-red);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: white;
    border-radius: 14px;
    max-width: 440px;
    width: 100%;
    padding: 20px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.25);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f1f5f9;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
}

.modal-box h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 6px;
}

.modal-box p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 4px;
}

.form-group input[type="text"], .form-group input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 13px;
}

.url-copy-group {
    display: flex;
    gap: 6px;
}

.url-copy-group input {
    flex: 1;
    background: #f8fafc;
}

.copy-url-btn {
    background-color: var(--navy-dark);
    color: white;
    border: none;
    padding: 0 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.modal-actions {
    margin-top: 16px;
}

.btn-primary {
    width: 100%;
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}

/* TOAST NOTIFICATION */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--navy-dark);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}
