/* ================================================
   RadioPin Regional Portal - Design System
   Spójna identyfikacja wizualna z radiopin.pl
   ================================================ */

:root {
    --rp-red: #a80000;
    --rp-red-hover: #8b0000;
    --rp-red-light: #fee;
    --rp-black: #212121;
    --rp-dark: #1a1a1a;
    --rp-gray: #9e9e9e;
    --rp-gray-light: #e0e0e0;
    --rp-gray-bg: #f5f5f5;
    --rp-yellow: #ffeb3b;
    --rp-white: #ffffff;
    --rp-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --rp-shadow-hover: 0 10px 30px rgba(0,0,0,0.12);
    --rp-radius: 4px;
    --rp-transition: 0.3s ease;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--rp-black);
    background: var(--rp-gray-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.rp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- HEADER ---- */
.rp-header {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rp-header * {
    box-sizing: border-box;
}

/* ---- HEADER TOP BAR ---- */
.rp-header-top {
    background: var(--rp-black);
    padding: 12px 0;
}

.rp-header-top-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rp-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.rp-logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.rp-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.rp-logo-text-top {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.rp-logo-text-top span:first-child {
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    letter-spacing: -1px;
}

.rp-logo-text-top span:last-child {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.rp-logo-region {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--rp-red);
    margin-top: 1px;
}

.rp-header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rp-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.rp-header-btn-primary {
    background: var(--rp-red);
    color: #fff;
}

.rp-header-btn-primary:hover {
    background: var(--rp-red-hover);
}

.rp-header-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.rp-header-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.rp-header-btn-cta {
    background: #fff;
    color: var(--rp-red);
}

.rp-header-btn-cta:hover {
    background: var(--rp-gray-light);
}

/* Social icons w top bar */
.rp-header-social {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.rp-header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rp-header-social a:hover {
    background: var(--rp-red);
}

.rp-header-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Mobile actions container */
.rp-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

.rp-mobile-search {
    display: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.rp-mobile-search:hover {
    background: var(--rp-red);
}

.rp-mobile-search svg {
    width: 18px;
    height: 18px;
}

/* Mobile toggle */
.rp-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--rp-red);
    border: none;
    cursor: pointer;
    padding: 12px;
}

.rp-mobile-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.rp-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.rp-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.rp-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- NAVIGATION BAR ---- */
.rp-header-nav {
    background: #fff;
    border-bottom: 3px solid var(--rp-red);
}

.rp-header-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rp-nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.rp-nav-menu li {
    position: relative;
}

.rp-nav-menu a {
    display: block;
    padding: 15px 18px;
    color: var(--rp-black);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.rp-nav-menu a:hover,
.rp-nav-menu li.active a {
    color: var(--rp-red);
    border-bottom-color: var(--rp-red);
    background: var(--rp-gray-bg);
}

/* Search button */
.rp-header-search {
    display: flex;
    align-items: center;
}

.rp-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--rp-gray-bg);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rp-search-toggle:hover {
    background: var(--rp-red);
    color: #fff;
}

.rp-search-toggle svg {
    width: 18px;
    height: 18px;
}

/* ---- BREAKING NEWS BAR ---- */
.rp-header-breaking {
    background: var(--rp-red);
    padding: 10px 0;
}

.rp-header-breaking-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.rp-breaking-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--rp-black);
    color: #fff;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.rp-breaking-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: rp-pulse 1.5s infinite;
}

@keyframes rp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.rp-breaking-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.rp-breaking-track {
    display: flex;
    animation: rp-slide 20s linear infinite;
}

.rp-breaking-track:hover {
    animation-play-state: paused;
}

@keyframes rp-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.rp-breaking-item {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    padding-right: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rp-breaking-item::before {
    content: '\2022';
    color: rgba(255,255,255,0.5);
}

.rp-breaking-item:first-child::before {
    display: none;
}

.rp-breaking-item:hover {
    text-decoration: underline;
}

.rp-breaking-arrows {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.rp-breaking-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.2);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rp-breaking-arrow:hover {
    background: rgba(0,0,0,0.4);
}

.rp-breaking-arrow svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* ---- SEARCH OVERLAY ---- */
.rp-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 33, 33, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.rp-search-overlay.active {
    display: flex;
}

.rp-search-box {
    width: 100%;
    max-width: 700px;
    padding: 20px;
}

.rp-search-box h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
}

.rp-search-form {
    display: flex;
    background: #fff;
}

.rp-search-form input {
    flex: 1;
    padding: 18px 25px;
    font-size: 18px;
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
}

.rp-search-form button {
    padding: 18px 30px;
    background: var(--rp-red);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rp-search-form button:hover {
    background: var(--rp-red-hover);
}

.rp-search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rp-search-close:hover {
    background: var(--rp-red);
    border-color: var(--rp-red);
}

/* ---- MOBILE MENU ---- */
.rp-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: var(--rp-black);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.rp-mobile-menu.active {
    transform: translateX(0);
}

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

.rp-mobile-menu-header .rp-logo {
    flex: 1;
}

.rp-mobile-close {
    width: 40px;
    height: 40px;
    background: var(--rp-red);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-mobile-nav {
    list-style: none;
    padding: 20px 0;
}

.rp-mobile-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.rp-mobile-nav a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rp-mobile-nav a:hover {
    background: var(--rp-red);
    padding-left: 35px;
}

.rp-mobile-buttons {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rp-mobile-buttons a {
    display: block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.rp-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}

.rp-mobile-overlay.active {
    display: block;
}

/* ---- HERO SECTION ---- */
.rp-hero {
    padding: 24px 0;
}
.rp-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.rp-hero-main {
    position: relative;
    background: var(--rp-black);
    border-radius: var(--rp-radius);
    overflow: hidden;
}
.rp-hero-main a { display: block; position: relative; }
.rp-hero-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}
.rp-hero-main .rp-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}
.rp-hero-main .rp-post-badge {
    position: relative;
    margin-bottom: 12px;
}
.rp-hero-main h2 {
    color: var(--rp-white);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

/* Hero sidebar - Popularne */
.rp-hero-sidebar {
    background: var(--rp-white);
    border-radius: var(--rp-radius);
    overflow: hidden;
    box-shadow: var(--rp-shadow);
}
.rp-hero-sidebar-header {
    background: var(--rp-red);
    color: var(--rp-white);
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rp-popular-item {
    display: flex;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--rp-gray-light);
    transition: var(--rp-transition);
}
.rp-popular-item:hover { background: var(--rp-gray-bg); }
.rp-popular-num {
    font-size: 28px;
    font-weight: 900;
    color: var(--rp-red);
    line-height: 1;
    min-width: 30px;
}
.rp-popular-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rp-popular-meta {
    font-size: 11px;
    color: var(--rp-gray);
    margin-top: 4px;
}

/* ---- POST BADGES ---- */
.rp-post-badge {
    display: inline-block;
    background: var(--rp-red);
    color: var(--rp-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 2px;
}
.rp-badge-sponsored {
    background: var(--rp-yellow);
    color: var(--rp-black);
}

/* ---- SECTION HEADERS ---- */
.rp-section {
    padding: 30px 0;
}
.rp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--rp-gray-light);
}
.rp-section-title {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rp-section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--rp-red);
    border-radius: 2px;
}
.rp-section-more {
    font-size: 13px;
    font-weight: 500;
    color: var(--rp-red);
    text-transform: uppercase;
    transition: var(--rp-transition);
}
.rp-section-more:hover { color: var(--rp-red-hover); }

/* ---- POST CARDS ---- */
.rp-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.rp-posts-grid-3 { grid-template-columns: repeat(3, 1fr); }
.rp-posts-grid-2 { grid-template-columns: repeat(2, 1fr); }

.rp-post-card {
    background: var(--rp-white);
    border-radius: var(--rp-radius);
    overflow: hidden;
    box-shadow: var(--rp-shadow);
    transition: var(--rp-transition);
    border-bottom: 3px solid transparent;
}
.rp-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--rp-shadow-hover);
    border-bottom-color: var(--rp-red);
}
.rp-post-card-link { display: block; }
.rp-post-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.rp-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.rp-post-card:hover .rp-post-thumb img { transform: scale(1.05); }
.rp-post-thumb .rp-post-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}
.rp-post-info { padding: 16px; }
.rp-post-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rp-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--rp-gray);
}
.rp-post-views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--rp-red);
}

/* ---- POLECAMY / SPONSORED SECTION ---- */
.rp-polecamy {
    background: linear-gradient(135deg, var(--rp-dark), #2d2d2d);
    padding: 40px 0;
    margin: 20px 0;
}
.rp-polecamy .rp-section-header {
    border-bottom-color: rgba(255,255,255,0.1);
}
.rp-polecamy .rp-section-title {
    color: var(--rp-white);
}
.rp-polecamy .rp-section-title::before {
    background: var(--rp-yellow);
}
.rp-polecamy .rp-post-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}
.rp-polecamy .rp-post-card:hover {
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--rp-yellow);
}
.rp-polecamy .rp-post-title { color: var(--rp-white); }
.rp-polecamy .rp-post-meta { color: rgba(255,255,255,0.5); }
.rp-polecamy .rp-post-views { color: var(--rp-yellow); }

/* ---- ARTICLE PAGE ---- */
.rp-article {
    padding: 30px 0;
}
.rp-article-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}
.rp-article-main {
    background: var(--rp-white);
    border-radius: var(--rp-radius);
    overflow: hidden;
    box-shadow: var(--rp-shadow);
}
.rp-article-hero-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}
.rp-article-content {
    padding: 30px;
}
.rp-article-content .rp-post-badge { margin-bottom: 16px; }
.rp-article-content h1 {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
}
.rp-article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--rp-gray-light);
    font-size: 14px;
    color: var(--rp-gray);
}
.rp-article-body {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}
.rp-article-body p { margin-bottom: 18px; }
.rp-article-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 16px;
    color: var(--rp-black);
}
.rp-article-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--rp-black);
}
.rp-article-body blockquote {
    border-left: 4px solid var(--rp-red);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--rp-gray-bg);
    font-style: italic;
    color: #555;
}
.rp-article-body ul, .rp-article-body ol {
    margin: 16px 0;
    padding-left: 24px;
}
.rp-article-body li { margin-bottom: 8px; }
.rp-article-body img {
    border-radius: var(--rp-radius);
    margin: 20px 0;
}
.rp-article-body a {
    color: var(--rp-red);
    text-decoration: underline;
}

/* Tags */
.rp-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--rp-gray-light);
}
.rp-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--rp-gray-bg);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--rp-gray);
    transition: var(--rp-transition);
}
.rp-tag:hover {
    background: var(--rp-red);
    color: var(--rp-white);
}

/* Sidebar */
.rp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.rp-sidebar-widget {
    background: var(--rp-white);
    border-radius: var(--rp-radius);
    overflow: hidden;
    box-shadow: var(--rp-shadow);
}
.rp-sidebar-widget-header {
    background: var(--rp-red);
    color: var(--rp-white);
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ---- CATEGORY PAGE ---- */
.rp-category-header {
    background: var(--rp-white);
    padding: 30px 0;
    margin-bottom: 20px;
    box-shadow: var(--rp-shadow);
}
.rp-category-header h1 {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}
.rp-category-header h1::before {
    content: '';
    display: block;
    width: 5px;
    height: 32px;
    background: var(--rp-red);
    border-radius: 2px;
}

/* Pagination */
.rp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.rp-pagination a, .rp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--rp-radius);
    font-size: 14px;
    font-weight: 500;
    transition: var(--rp-transition);
}
.rp-pagination a {
    background: var(--rp-white);
    box-shadow: var(--rp-shadow);
}
.rp-pagination a:hover {
    background: var(--rp-red);
    color: var(--rp-white);
}
.rp-pagination .active {
    background: var(--rp-red);
    color: var(--rp-white);
}

/* ---- FOOTER ---- */
.rp-footer {
    background: var(--rp-black);
    color: var(--rp-gray);
    margin-top: 40px;
    padding-top: 50px;
}
.rp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rp-footer-logo {
    display: block;
    margin-bottom: 16px;
    font-size: 24px;
    color: var(--rp-white);
    text-decoration: none;
}
.rp-footer-logo-top {
    display: flex;
    gap: 2px;
}
.rp-footer-logo .rp-logo-region {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rp-red);
}
.rp-footer-about p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.rp-footer-links h3,
.rp-footer-contact h3 {
    color: var(--rp-white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}
.rp-footer-links h3::after,
.rp-footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--rp-red);
}
.rp-footer-links ul li a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    transition: var(--rp-transition);
}
.rp-footer-links ul li a:hover { color: var(--rp-white); }
.rp-footer-contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 10px;
}

.rp-footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}
.rp-footer-bottom a { color: var(--rp-red); }

/* ---- SEARCH RESULTS ---- */
.rp-search-header {
    padding: 30px 0 20px;
}
.rp-search-header h1 {
    font-size: 24px;
    font-weight: 700;
}
.rp-search-header p {
    color: var(--rp-gray);
    margin-top: 8px;
}

/* ---- 404 ---- */
.rp-404 {
    text-align: center;
    padding: 100px 20px;
}
.rp-404 h1 {
    font-size: 120px;
    font-weight: 900;
    color: var(--rp-red);
    line-height: 1;
}
.rp-404 p {
    font-size: 20px;
    color: var(--rp-gray);
    margin: 20px 0 30px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
    .rp-nav-menu a {
        padding: 15px 12px;
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    .rp-hero-grid { grid-template-columns: 1fr; }
    .rp-hero-main img { height: 350px; }
    .rp-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .rp-article-grid { grid-template-columns: 1fr; }
    .rp-footer-grid { grid-template-columns: repeat(2, 1fr); }

    .rp-header-buttons { display: none; }
    .rp-nav-menu { display: none; }
    .rp-mobile-actions { display: flex; }
    .rp-mobile-toggle { display: flex; }
    .rp-mobile-search { display: flex; }
    .rp-mobile-menu { display: block; }
    .rp-header-social { margin-left: 0; }
    .rp-header-nav .rp-header-search { display: none; }
}

@media (max-width: 768px) {
    .rp-hero-main img { height: 280px; }
    .rp-hero-main h2 { font-size: 22px; }
    .rp-posts-grid { grid-template-columns: 1fr; }
    .rp-article-content h1 { font-size: 24px; }
    .rp-article-hero-img { height: 280px; }
    .rp-footer-grid { grid-template-columns: 1fr; text-align: center; }
    .rp-footer-links h3::after,
    .rp-footer-contact h3::after { left: 50%; transform: translateX(-50%); }
    .rp-section-title { font-size: 18px; }

    .rp-header-top-inner { flex-wrap: nowrap; }
    .rp-logo-icon { width: 30px; height: 30px; }
    .rp-logo-text-top span { font-size: 20px !important; }
    .rp-header-breaking-inner { flex-wrap: wrap; }
    .rp-breaking-badge { width: 100%; justify-content: center; }
    .rp-breaking-arrows { display: none; }
    .rp-header-social { display: none; }
}

@media (max-width: 480px) {
    .rp-hero-main img { height: 220px; }
    .rp-hero-overlay { padding: 20px 16px 16px; }
    .rp-hero-main h2 { font-size: 18px; }
    .rp-article-content { padding: 20px; }
    .rp-article-body { font-size: 15px; }
    .rp-404 h1 { font-size: 80px; }
    .rp-breaking-item { font-size: 13px; }
}

/* ---- UTILITIES ---- */
.rp-sponsored-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--rp-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.rp-ad-slot {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    border-top: 1px solid var(--rp-gray-light);
    border-bottom: 1px solid var(--rp-gray-light);
    color: var(--rp-gray);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lazy load animation */
.rp-lazy { opacity: 0; transition: opacity 0.5s ease; }
.rp-lazy.loaded { opacity: 1; }

/* Breadcrumbs */
.rp-breadcrumbs {
    padding: 16px 0;
    font-size: 13px;
    color: var(--rp-gray);
}
.rp-breadcrumbs a { color: var(--rp-gray); transition: var(--rp-transition); }
.rp-breadcrumbs a:hover { color: var(--rp-red); }
.rp-breadcrumbs span { margin: 0 6px; }
