/*
Theme Name: Echo Rybnik
Theme URI: https://echorybnik.pl/
Author: Echo Rybnik
Description: Własny motyw lokalnego portalu Echo Rybnik.
Version: 1.0
*/

/* ============================================================
   RESET
============================================================ */

* {
	box-sizing: border-box;
}

html {
	margin: 0;
	padding: 0;
}

body {
	margin: 0;
	padding: 0;

	background: #f6f9fd;

	color: #172033;

	font-family:
		Inter,
		Arial,
		Helvetica,
		sans-serif;

	line-height: 1.6;
}

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

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


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

.er-header {
	background: #ffffff;
	border-bottom: 1px solid #e6edf6;
}

.er-header-inner {
	max-width: 1280px;
	margin: 0 auto;

	padding: 22px 24px;

	display: flex;
	align-items: center;
	gap: 25px;
}

.er-logo {
	display: flex;
	align-items: baseline;
	gap: 8px;

	font-weight: 900;
	font-size: 32px;
	letter-spacing: -1.5px;
}

.er-logo-main {
	color: #1264e8;
}

.er-logo-city {
	color: #152238;
}

.er-tagline {
	color: #7b8798;
	font-size: 14px;
}

.er-search {
	margin-left: auto;
}

.er-search form {
	display: flex;

	background: #f2f6fb;

	border: 1px solid #e0e8f2;

	border-radius: 12px;

	overflow: hidden;
}

.er-search input {
	border: 0;
	background: transparent;

	padding: 12px 16px;

	width: 260px;

	outline: none;
}

.er-search button {
	border: 0;

	background: #1264e8;
	color: white;

	width: 48px;

	cursor: pointer;
}


/* ============================================================
   NAVIGACJA
============================================================ */

.er-navigation {
	background: #ffffff;
}

.er-navigation-inner {
	max-width: 1280px;
	margin: auto;

	padding: 0 24px;

	display: flex;
	align-items: center;

	gap: 4px;

	overflow-x: auto;
}

.er-navigation a {
	padding: 15px 14px;

	font-size: 14px;
	font-weight: 700;

	color: #364152;

	white-space: nowrap;

	border-bottom: 3px solid transparent;

	transition: .2s;
}

.er-navigation a:hover {
	color: #1264e8;
	border-bottom-color: #1264e8;
}


/* ============================================================
   GŁÓWNY OBSZAR
============================================================ */

.er-main {
	max-width: 1280px;

	margin: 0 auto;

	padding: 30px 24px 80px;
}


/* ============================================================
   LICZNIK ONLINE
============================================================ */

.echo-online-counter {

	position: fixed;

	right: 18px;
	bottom: 18px;

	z-index: 9999;

	display: flex;
	align-items: center;
	gap: 7px;

	padding: 7px 11px;

	background: rgba(255,255,255,.95);

	border: 1px solid #dfe8f3;

	border-radius: 20px;

	box-shadow: 0 4px 18px rgba(30,70,110,.10);

	color: #6c7788;

	font-size: 11px;

	font-weight: 600;
}

.echo-online-dot {

	width: 7px;
	height: 7px;

	background: #16c56b;

	border-radius: 50%;

	box-shadow: 0 0 0 3px rgba(22,197,107,.12);
}


/* ============================================================
   FOOTER
============================================================ */

.er-footer {
	background: #ffffff;

	border-top: 1px solid #e4ebf4;
}

.er-footer-inner {

	max-width: 1280px;

	margin: auto;

	padding: 40px 24px;

	text-align: center;
}

.er-footer-logo {
	font-size: 22px;
	font-weight: 900;
	color: #1264e8;
}

.er-footer-logo span {
	color: #172033;
}

.er-footer-inner p {
	color: #7c8797;
	font-size: 14px;
}

.er-footer-copy {
	color: #9aa4b2;
	font-size: 12px;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 800px) {

	.er-header-inner {

		flex-wrap: wrap;

		padding: 18px;
	}

	.er-logo {
		font-size: 27px;
	}

	.er-tagline {
		display: none;
	}

	.er-search {

		width: 100%;

		margin-left: 0;
	}

	.er-search input {
		width: 100%;
	}

	.er-main {
		padding: 20px 15px 70px;
	}

	.er-navigation-inner {
		padding: 0 10px;
	}

}
/* ============================================================
   ECHO RYBNIK - STRONA GŁÓWNA
============================================================ */


/* ------------------------------------------------------------
   PILNE
------------------------------------------------------------ */

.er-breaking {

	display: flex;
	align-items: stretch;

	margin-bottom: 24px;

	background: #ffffff;

	border: 1px solid #e7edf5;

	border-radius: 14px;

	overflow: hidden;
}

.er-breaking-label {

	display: flex;
	align-items: center;
	gap: 8px;

	padding: 12px 18px;

	background: #ef3340;

	color: #ffffff;

	font-size: 12px;
	font-weight: 900;

	letter-spacing: .5px;
}

.er-breaking-dot {

	width: 7px;
	height: 7px;

	background: #ffffff;

	border-radius: 50%;
}

.er-breaking-content {

	display: flex;
	align-items: center;

	padding: 0 18px;

	font-size: 14px;
	font-weight: 700;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


/* ------------------------------------------------------------
   HERO
------------------------------------------------------------ */

.er-hero {

	display: grid;

	grid-template-columns: 2fr 1fr;

	gap: 18px;

	margin-bottom: 25px;
}

.er-hero-main {
	min-height: 450px;
}

.er-hero-card {

	position: relative;

	display: block;

	height: 100%;
	min-height: 450px;

	overflow: hidden;

	border-radius: 18px;

	background: #dfeaff;

	color: #ffffff;
}

.er-hero-image,
.er-hero-placeholder {

	position: absolute;

	inset: 0;
}

.er-hero-image img {

	width: 100%;
	height: 100%;

	object-fit: cover;
}

.er-hero-placeholder {

	display: flex;
	align-items: center;
	justify-content: center;

	background: linear-gradient(
		135deg,
		#1264e8,
		#36b8ff
	);

	color: rgba(255,255,255,.9);

	font-size: 42px;
	font-weight: 900;
	letter-spacing: -2px;
}

.er-hero-overlay {

	position: absolute;

	inset: 0;

	background: linear-gradient(
		to top,
		rgba(5,22,45,.82),
		rgba(5,22,45,.10) 70%
	);
}

.er-hero-text {

	position: absolute;

	left: 30px;
	right: 30px;
	bottom: 28px;

	z-index: 2;
}

.er-hero-text h1 {

	margin: 10px 0;

	font-size: 34px;
	line-height: 1.12;

	letter-spacing: -.8px;
}

.er-meta {

	color: #8a96a7;

	font-size: 12px;
}

.er-hero .er-meta {
	color: rgba(255,255,255,.75);
}


/* ------------------------------------------------------------
   KATEGORIE
------------------------------------------------------------ */

.er-category {

	display: inline-flex;

	padding: 5px 9px;

	border-radius: 6px;

	font-size: 10px;

	font-weight: 900;

	letter-spacing: .5px;
}

.er-category-red {
	background: #ffe7e9;
	color: #dc2635;
}

.er-category-blue {
	background: #e5f0ff;
	color: #1264e8;
}

.er-category-green {
	background: #e3faed;
	color: #159957;
}


/* ------------------------------------------------------------
   MAŁE KARTY
------------------------------------------------------------ */

.er-hero-side {

	display: grid;

	grid-template-rows: 1fr 1fr;

	gap: 18px;
}

.er-small-card {

	display: grid;

	grid-template-columns: 42% 58%;

	overflow: hidden;

	background: #ffffff;

	border: 1px solid #e5ebf3;

	border-radius: 16px;

	transition: .2s;
}

.er-small-card:hover,
.er-news-card:hover {

	transform: translateY(-2px);

	box-shadow: 0 8px 25px rgba(30,70,110,.08);
}

.er-small-image,
.er-small-placeholder {

	min-height: 180px;
}

.er-small-image img {

	width: 100%;
	height: 100%;

	object-fit: cover;
}

.er-small-placeholder {

	display: flex;
	align-items: center;
	justify-content: center;

	background: #eaf3ff;

	color: #1264e8;

	font-size: 20px;
	font-weight: 900;
}

.er-small-content {

	padding: 18px;
}

.er-small-content h2 {

	margin: 10px 0;

	font-size: 19px;

	line-height: 1.25;
}


/* ------------------------------------------------------------
   KATEGORIE - MENU
------------------------------------------------------------ */

.er-categories {

	display: grid;

	grid-template-columns: repeat(6, 1fr);

	gap: 10px;

	margin-bottom: 35px;
}

.er-cat {

	display: flex;

	align-items: center;
	justify-content: center;

	gap: 8px;

	padding: 14px 8px;

	border-radius: 12px;

	font-size: 13px;

	font-weight: 800;

	background: #ffffff;

	border: 1px solid #e5ebf3;

	transition: .2s;
}

.er-cat:hover {

	transform: translateY(-2px);

	box-shadow: 0 6px 18px rgba(30,70,110,.08);
}

.er-cat-blue {
	color: #1264e8;
}

.er-cat-red {
	color: #df2939;
}

.er-cat-green {
	color: #159957;
}

.er-cat-orange {
	color: #e87516;
}

.er-cat-purple {
	color: #8057d9;
}

.er-cat-cyan {
	color: #0891b2;
}


/* ------------------------------------------------------------
   CONTENT GRID
------------------------------------------------------------ */

.er-content-grid {

	display: grid;

	grid-template-columns: minmax(0, 1fr) 340px;

	gap: 35px;

	align-items: start;
}


/* ------------------------------------------------------------
   NAGŁÓWKI SEKCJI
------------------------------------------------------------ */

.er-section-heading {

	display: flex;

	align-items: center;
	justify-content: space-between;

	margin-bottom: 18px;
}

.er-section-heading > div {

	display: flex;
	align-items: center;
	gap: 10px;
}

.er-heading-line {

	width: 5px;
	height: 27px;

	background: #1264e8;

	border-radius: 4px;
}

.er-section-heading h2 {

	margin: 0;

	font-size: 23px;

	letter-spacing: -.5px;
}

.er-section-heading > a {

	color: #1264e8;

	font-size: 13px;
	font-weight: 800;
}


/* ------------------------------------------------------------
   LISTA WIADOMOŚCI
------------------------------------------------------------ */

.er-news-list {

	display: flex;

	flex-direction: column;

	gap: 14px;
}

.er-news-card {

	display: grid;

	grid-template-columns: 220px 1fr;

	gap: 20px;

	padding: 12px;

	background: #ffffff;

	border: 1px solid #e5ebf3;

	border-radius: 15px;

	transition: .2s;
}

.er-news-image {

	display: block;

	height: 150px;

	overflow: hidden;

	border-radius: 10px;
}

.er-news-image img {

	width: 100%;
	height: 100%;

	object-fit: cover;
}

.er-image-placeholder {

	width: 100%;
	height: 100%;

	display: flex;

	align-items: center;
	justify-content: center;

	background: #edf5ff;

	color: #1264e8;

	font-size: 18px;
	font-weight: 900;
}

.er-news-content h3 {

	margin: 8px 0;

	font-size: 19px;

	line-height: 1.25;
}

.er-news-content p {

	margin: 0 0 8px;

	color: #727e8f;

	font-size: 13px;
}

.er-empty-news {

	padding: 60px 30px;

	text-align: center;

	background: #ffffff;

	border: 1px solid #e5ebf3;

	border-radius: 15px;
}

.er-empty-icon {

	font-size: 40px;

	margin-bottom: 10px;
}

.er-empty-news h3 {

	margin: 0 0 5px;
}

.er-empty-news p {

	margin: 0;

	color: #7b8797;
}


/* ------------------------------------------------------------
   REKLAMA
------------------------------------------------------------ */

.er-ad-box {

	padding: 20px;

	margin-bottom: 20px;

	background: linear-gradient(
		135deg,
		#1264e8,
		#2b9fff
	);

	border-radius: 17px;

	color: #ffffff;

	box-shadow: 0 8px 25px rgba(18,100,232,.18);
}

.er-ad-label {

	font-size: 9px;

	font-weight: 900;

	letter-spacing: 1px;

	opacity: .7;

	margin-bottom: 15px;
}

.er-ad-content {

	display: flex;

	align-items: center;

	gap: 12px;

	margin-bottom: 17px;
}

.er-ad-icon {

	display: flex;

	align-items: center;
	justify-content: center;

	width: 45px;
	height: 45px;

	background: rgba(255,255,255,.18);

	border-radius: 12px;

	font-size: 22px;
}

.er-ad-content strong {

	display: block;

	font-size: 18px;
}

.er-ad-content span {

	display: block;

	font-size: 12px;

	opacity: .8;
}

.er-ad-button {

	display: block;

	padding: 10px;

	text-align: center;

	background: #ffffff;

	color: #1264e8;

	border-radius: 9px;

	font-size: 12px;

	font-weight: 900;
}


/* ------------------------------------------------------------
   RYBNIK TERAZ
------------------------------------------------------------ */

.er-live-box,
.er-events-box {

	background: #ffffff;

	border: 1px solid #e5ebf3;

	border-radius: 16px;

	padding: 20px;

	margin-bottom: 20px;
}

.er-sidebar-heading {

	margin-bottom: 14px;
}

.er-sidebar-heading h2 {

	font-size: 19px;
}

.er-live-list {

	border-top: 1px solid #edf1f6;
}

.er-live-item {

	display: flex;

	gap: 10px;

	padding: 13px 0;

	border-bottom: 1px solid #edf1f6;

	font-size: 12px;

	color: #4f5c6e;
}

.er-live-time {

	flex: 0 0 42px;

	color: #1264e8;

	font-weight: 900;
}


/* ------------------------------------------------------------
   WYDARZENIA
------------------------------------------------------------ */

.er-event-placeholder {

	padding: 16px;

	background: #f4f8ff;

	border-radius: 12px;
}

.er-event-date {

	display: inline-block;

	margin-bottom: 8px;

	padding: 4px 7px;

	background: #1264e8;

	color: #ffffff;

	border-radius: 5px;

	font-size: 9px;

	font-weight: 900;
}

.er-event-placeholder strong {

	display: block;

	font-size: 15px;
}

.er-event-placeholder span {

	display: block;

	margin-top: 4px;

	color: #7c8797;

	font-size: 11px;
}


/* ------------------------------------------------------------
   DOLNE CTA
------------------------------------------------------------ */

.er-bottom-cta {

	display: flex;

	align-items: center;
	justify-content: space-between;

	gap: 30px;

	margin-top: 40px;

	padding: 28px 32px;

	background: #ffffff;

	border: 1px solid #e2e9f2;

	border-radius: 18px;
}

.er-bottom-label {

	color: #1264e8;

	font-size: 10px;

	font-weight: 900;

	letter-spacing: 1px;
}

.er-bottom-cta h2 {

	margin: 5px 0;

	font-size: 24px;
}

.er-bottom-cta p {

	margin: 0;

	color: #7c8797;

	font-size: 13px;
}

.er-bottom-cta > a {

	flex-shrink: 0;

	padding: 12px 18px;

	background: #1264e8;

	color: #ffffff;

	border-radius: 10px;

	font-size: 12px;

	font-weight: 800;
}


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

@media (max-width: 900px) {

	.er-hero {

		grid-template-columns: 1fr;
	}

	.er-hero-side {

		grid-template-columns: 1fr 1fr;
		grid-template-rows: none;
	}

	.er-content-grid {

		grid-template-columns: 1fr;
	}

	.er-categories {

		grid-template-columns: repeat(3, 1fr);
	}

	.er-sidebar {

		display: grid;

		grid-template-columns: 1fr 1fr;

		gap: 15px;
	}

	.er-ad-box {

		margin-bottom: 0;
	}

	.er-live-box,
	.er-events-box {

		margin-bottom: 0;
	}

}


@media (max-width: 600px) {

	.er-breaking-content {

		font-size: 12px;
	}

	.er-breaking-label {

		padding: 11px 12px;
	}

	.er-hero-card {

		min-height: 360px;
	}

	.er-hero-text {

		left: 20px;
		right: 20px;
		bottom: 20px;
	}

	.er-hero-text h1 {

		font-size: 25px;
	}

	.er-hero-side {

		grid-template-columns: 1fr;
	}

	.er-categories {

		grid-template-columns: repeat(2, 1fr);
	}

	.er-news-card {

		grid-template-columns: 110px 1fr;

		gap: 12px;
	}

	.er-news-image {

		height: 110px;
	}

	.er-news-content h3 {

		font-size: 15px;
	}

	.er-news-content p {

		display: none;
	}

	.er-sidebar {

		display: block;
	}

	.er-ad-box {

		margin-bottom: 20px;
	}

	.er-live-box,
	.er-events-box {

		margin-bottom: 20px;
	}

	.er-bottom-cta {

		flex-direction: column;

		align-items: flex-start;
	}

}