/*
Theme Name: Uwiedziona
Theme URI: https://uwiedziona.pl
Author: precell
Author URI: https://uwiedziona.pl
Description: Minimalistyczny motyw dla strony o tematyce uwodzenia
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uwiedziona
*/

/* --- Reset & Ustawienia Główne --- */
:root {
    --dark-bg: #121212;
    --dark-secondary: #1e1e1e;
    --text-light: #f5f5f5;
    --text-secondary: #b3b3b3;
    --gold: #e6d2aa;
    --gold-dark: #c9b589;
    --red: #ff3860;
    --blue: #4285f4;
    --pink: #ff6b9d;
    --border-color: #2a2a2a;
    --gradient: linear-gradient(45deg, var(--red), var(--pink));
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin: 2rem 0 1.5rem;
    color: var(--gold);
}

h2.section-title,
h2.comments-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    margin: 1.8rem 0 1rem;
    color: var(--text-light);
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--gold);
}

section {
    padding: 6rem 0;
}

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

strong {
  font-weight: bold;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 56, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--dark-bg);
}

.center {
    text-align: center;
}

/* --- Nagłówek & Nawigacja --- */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(18, 18, 18, 0.95);
    /* Zwiększona nieprzezroczystość */
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background 0.3s ease;
}

.main-header.scrolled {
    background: rgba(18, 18, 18, 0.98);
    /* Jeszcze większa nieprzezroczystość podczas przewijania */
}

/* Poprawka dla zalogowanych użytkowników WordPress */
.admin-bar .main-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .main-header {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .main-header {
        position: absolute;
    }

    .admin-bar .hero {
        margin-top: 0;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
}

.logo span {
    color: var(--gold);
}

.custom-logo {
    height: 50px;
    width: auto;
    display: block;
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    position: relative;
    height: 42px;
}

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

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a.active::after,
.current-menu-item>a::after {
    width: 100%;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--gold);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* --- Sekcja Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background-color: var(--dark-bg);
    position: relative;
    /* Dodano padding-top, aby nagłówek nie nachodził na treść */
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 300;
    color: var(--text-secondary);
}

/* --- Sekcja Cechy (Features) --- */
.features {
    background-color: var(--dark-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--dark-bg);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--gold-dark);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
}

.feature-icon.red-glow {
    color: var(--red);
    box-shadow: 0 0 15px rgba(255, 56, 96, 0.3);
}

.feature-icon.blue-glow {
    color: var(--blue);
    box-shadow: 0 0 15px rgba(66, 133, 244, 0.3);
}

.feature-icon.pink-glow {
    color: var(--pink);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.3);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--gold);
    font-size: 1.3rem;
}

.feature-card p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
}

/* --- Sekcja Jak to działa --- */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.step {
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -1.5rem;
    width: 3rem;
    height: 2px;
    background: var(--gold);
    opacity: 0.5;
}

.step-number {
    width: 80px;
    height: 80px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    transition: all 0.3s ease;
}

.step:hover .step-number {
    background: var(--gold);
    color: var(--dark-bg);
    transform: scale(1.1);
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.step p {
    font-weight: 300;
    color: var(--text-secondary);
}

/* --- Sekcja Artykułów --- */
.articles {
    background-color: var(--dark-secondary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--dark-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--gold-dark);
}

.article-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.article-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 300;
    flex-grow: 1;
}

.read-more {
    color: var(--gold);
    font-weight: 600;
    display: inline-block;
    position: relative;
    text-decoration: none;
    align-self: flex-start;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover:after {
    transform: translateX(5px);
}

/* --- Sekcja CTA --- */
.cta {
    text-align: center;
    background: var(--gradient);
    padding: 5rem 0;
    border-radius: 15px;
    margin: 0 auto;
}

.cta-content {
    max-width: 700px;
    margin: auto;
}

.cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta p {
    color: white;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta .btn {
    background: white;
    color: var(--pink);
}

.cta .btn:hover {
    background: var(--dark-bg);
    color: white;
}

/* --- Stopka --- */
.main-footer {
    background-color: var(--dark-secondary);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.5;
}

/* --- Page Header dla Blog/Archiwum --- */
.page-header {
    padding: 8rem 0 4rem;
    background-color: var(--dark-secondary);
    text-align: center;
    /* Dodano margin-top, aby treść nie była zasłonięta przez nagłówek */
    margin-top: 30px;
}

.page-title {
    margin-bottom: 1rem;
}

.page-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- Main Content dla Blog/Archiwum --- */
.main-content {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 3fr;
    gap: 3rem;
    padding: 4rem 0;
}

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 100px;
}

/* --- Search --- */
.search-box {
    margin-bottom: 2rem;
    display: flex;
    width: 100%;
}

.search-box input[type="search"],
.search-box input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border-radius: 5px 0 0 5px;
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.95rem;
}

.search-box button {
    padding: 12px 15px;
    border: none;
    background: var(--gold);
    color: var(--dark-bg);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: var(--gold-dark);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

/* --- Categories --- */
.categories {
    background: var(--dark-secondary);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.categories h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.categories ul {
    list-style: none;
}

.categories ul li {
    margin-bottom: 0.5rem;
}

.categories ul li a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.categories ul li a:hover,
.categories ul li a.active {
    color: var(--gold);
}

.categories ul li a.active {
    font-weight: 500;
}

/* --- Popular Posts --- */
.popular-posts {
    background: var(--dark-secondary);
    border-radius: 10px;
    padding: 1.5rem;
}

.popular-posts h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.popular-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.popular-post-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.popular-post-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Articles --- */
.articles-list {
    width: 100%;
}

.article-entry {
    background: var(--dark-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-entry:last-child {
    margin-bottom: 0;
}

.article-header {
    padding: 2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.article-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.article-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-title {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.article-content {
    padding: 0 2rem 2rem;
    color: var(--text-secondary);
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    margin: 0 0 1.5rem 0;
    font-style: italic;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    padding: 1.5rem;
    background: var(--dark-secondary);
    border-radius: 8px;
}

.article-author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author-info {
    flex: 1;
}

.article-author-name {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.article-author-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-secondary);
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0 10px;
}

.pagination .current,
.pagination a:hover {
    background: var(--gold);
    color: var(--dark-bg);
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 1rem;
    border-radius: 20px;
}

/* --- Single Article --- */
.article-featured-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.widget {
    background: var(--dark-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.3rem;
    color: var(--gold);
}

.widget ul {
    list-style: none;
    margin-left: 0;
}

.widget li {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.widget li:hover,
.widget li.active {
    border-left-color: var(--gold);
}

.widget a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.widget a:hover,
.widget li.active a {
    color: var(--gold);
}

/* --- Comments --- */
.comments-area {
    margin-top: 3rem;
}

.comment {
    background: var(--dark-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-metadata {
    flex: 1;
}

.comment-author .fn {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.comment-metadata a {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comment-content {
    color: var(--text-secondary);
}

.comment-form {
    margin-top: 3rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.comment-form textarea {
    min-height: 150px;
}

.comment-form input[type="submit"] {
    display: inline-block;
    padding: 12px 25px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

/* --- Related Articles --- */
.related-articles {
    padding: 4rem 0;
    background: var(--dark-secondary);
}

.article-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.article-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.article-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* --- Social Sharing --- */
.social-share {
    display: flex;
    gap: 0.8rem;
    margin-top: 2rem;
    justify-content: center;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-share a:hover {
    background: var(--gold);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* --- WordPress Specific Styles --- */
.alignleft {
    float: left;
    margin: 0.5em 1em 0.5em 0;
}

.alignright {
    float: right;
    margin: 0.5em 0 0.5em 1em;
}

.aligncenter {
    display: block;
    margin: 0.5em auto;
}

.wp-caption {
    max-width: 100%;
    padding: 5px;
    background: var(--dark-secondary);
    text-align: center;
}

.wp-caption-text {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--dark-secondary);
    clip: auto !important;
    clip-path: none;
    color: var(--text-light);
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.bypostauthor {
    background: rgba(230, 210, 170, 0.1);
}

.sticky {
    position: relative;
}

.sticky::before {
    content: "Przypięty";
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold);
    color: var(--dark-bg);
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 0 0 0 5px;
}

/* --- Media Queries dla Responsywności --- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 4rem 0;
    }

    .how-it-works-grid {
        grid-template-columns: 1fr;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
        position: static;
    }

    .articles-list {
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--dark-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .page-header {
        padding: 7rem 0 3rem;
    }

    .article-featured-img {
        height: auto;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .article-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .btn {
        padding: 10px 22px;
        width: 100%;
        text-align: center;
    }

    .navbar .btn {
        display: none;
    }
}

/* --- Stylowanie formularzy wyszukiwania --- */
/* Widget wyszukiwania */
.widget_search {
    background: var(--dark-secondary);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget_search .widget-title {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.widget_search form {
    display: flex;
    width: 100%;
}

.widget_search input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border-radius: 5px 0 0 5px;
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.95rem;
}

.widget_search button {
    padding: 12px 15px;
    border: none;
    background: var(--gold);
    color: var(--dark-bg);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.widget_search button:hover {
    background: var(--gold-dark);
}

/* Formularz wyszukiwania w artykule */
#searchform {
    display: flex;
    width: 100%;
    margin-bottom: 1.5rem;
}

#searchform input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border-radius: 5px 0 0 5px;
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.95rem;
}

#searchform input[type="submit"] {
    padding: 12px 15px;
    border: none;
    background: var(--gold);
    color: var(--dark-bg);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: bold;
}

#searchform input[type="submit"]:hover {
    background: var(--gold-dark);
}

/* Dopasowanie formularza wyszukiwania na różnych podstronach */
.sidebar form.search-form {
    display: flex;
    width: 100%;
    margin-bottom: 2rem;
    justify-content: center;
}

.sidebar .search-form input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border-radius: 5px 0 0 5px;
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.95rem;
}

.sidebar .search-form .search-submit {
    padding: 0 15px;
    border: none;
    background: var(--gold);
    color: var(--dark-bg);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: bold;
}

.sidebar .search-form .search-submit:hover {
    background: var(--gold-dark);
}

/* Styl dla formularza w nagłówku */
h2+.search-form,
h3+.search-form {
    max-width: 500px;
    margin: 0 auto 2rem;
    display: flex;
}

h2+.search-form input[type="search"],
h3+.search-form input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border-radius: 5px 0 0 5px;
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.95rem;
}

h2+.search-form .search-submit,
h3+.search-form .search-submit {
    padding: 0 15px;
    border: none;
    background: var(--gold);
    color: var(--dark-bg);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: bold;
}

h2+.search-form .search-submit:hover,
h3+.search-form .search-submit:hover {
    background: var(--gold-dark);
}
