/* =============================================
   ZAGINIENI PRZED LATY - MAIN STYLESHEET
   ============================================= */

:root {
    --primary: #f5ab56;
    --primary-dark: #e09540;
    --primary-light: #ffc078;
    --secondary: #2c3e50;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --danger: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --info: #3498db;
    --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary);
    background-color: var(--light);
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

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

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

.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.header-top a {
    color: var(--white);
    opacity: 0.8;
}

.header-top a:hover {
    opacity: 1;
    color: var(--primary);
}

.header-main {
    padding: 15px 0;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

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

/* Search */
.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--gray-light);
    border-radius: 30px;
    font-size: 15px;
    transition: var(--transition);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* Navigation */
.nav-main {
    background: var(--secondary);
}

.nav-main ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

.nav-main a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.nav-main a:hover,
.nav-main a.active {
    background: var(--primary);
    color: var(--white);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: var(--primary);
    border: none;
    padding: 10px 15px;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    border-radius: var(--radius);
}

/* =============================================
   BREAKING NEWS
   ============================================= */

.breaking-news {
    background: var(--danger);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
}

.breaking-label {
    background: var(--dark);
    padding: 5px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    margin-right: 20px;
    white-space: nowrap;
}

.breaking-ticker {
    overflow: hidden;
    flex: 1;
}

.breaking-ticker ul {
    display: flex;
    animation: ticker 20s linear infinite;
    list-style: none;
}

.breaking-ticker li {
    white-space: nowrap;
    padding-right: 50px;
}

.breaking-ticker a {
    color: var(--white);
}

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

/* =============================================
   HERO SLIDER
   ============================================= */

.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--dark);
}

.hero-slide {
    display: none;
    position: relative;
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--white);
}

.hero-category {
    display: inline-block;
    background: var(--primary);
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-radius: 3px;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-title a {
    color: var(--white);
}

.hero-meta {
    font-size: 14px;
    opacity: 0.8;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: flex;
    gap: 10px;
}

.slider-nav button {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50%;
}

.slider-nav button:hover {
    background: var(--primary);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary);
}

/* =============================================
   ARTICLE CARDS
   ============================================= */

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
    border-radius: 3px;
}

.article-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card-title a {
    color: var(--dark);
}

.article-card-title a:hover {
    color: var(--primary);
}

.article-card-excerpt {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
    flex: 1;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray);
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

/* Article List Style */
.article-list-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-light);
}

.article-list-item:last-child {
    border-bottom: none;
}

.article-list-image {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-list-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.article-list-content h4 a {
    color: var(--dark);
}

.article-list-content h4 a:hover {
    color: var(--primary);
}

.article-list-meta {
    font-size: 12px;
    color: var(--gray);
}

/* =============================================
   SINGLE ARTICLE
   ============================================= */

.article-single {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-header {
    padding: 40px;
}

.article-header .category-badge {
    display: inline-block;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
    border-radius: 3px;
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--gray);
    font-size: 14px;
}

.article-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.article-featured-image {
    width: 100%;
}

.article-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-content {
    padding: 40px;
    font-size: 17px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2, .article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark);
}

.article-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--gray);
}

/* Tags */
.article-tags {
    padding: 0 40px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gray-light);
    color: var(--gray);
    font-size: 13px;
    border-radius: 20px;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* Share buttons */
.share-buttons {
    padding: 20px 40px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-buttons span {
    font-weight: 600;
    color: var(--gray);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0077b5; }

.share-btn:hover {
    transform: scale(1.1);
    color: var(--white);
}

/* =============================================
   SIDEBAR
   ============================================= */

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
    position: relative;
}

/* Categories widget */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--light);
    border-radius: var(--radius);
    color: var(--dark);
    transition: var(--transition);
}

.category-list a:hover {
    background: var(--primary);
    color: var(--white);
}

.category-list .count {
    background: var(--gray-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.category-list a:hover .count {
    background: rgba(255,255,255,0.2);
}

/* Archive widget */
.archive-list {
    list-style: none;
}

.archive-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
}

.archive-list li:last-child {
    border-bottom: none;
}

.archive-list a {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
}

.archive-list a:hover {
    color: var(--primary);
}

/* Tags cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Newsletter widget */
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    margin-bottom: 15px;
    font-size: 14px;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
}

/* =============================================
   COMMENTS
   ============================================= */

.comments-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 22px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

.comment {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-light);
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 5px;
}

.comment-date {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}

.comment-text {
    color: var(--secondary);
    line-height: 1.6;
}

.comment-reply {
    margin-left: 70px;
    padding-left: 20px;
    border-left: 2px solid var(--gray-light);
}

/* Comment form */
.comment-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-light);
}

.comment-form h4 {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

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

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =============================================
   PAGINATION
   ============================================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    list-style: none;
    margin-top: 40px;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: var(--white);
    color: var(--secondary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.page-link:hover,
.page-item.active .page-link {
    background: var(--primary);
    color: var(--white);
}

/* =============================================
   BREADCRUMBS
   ============================================= */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb-item {
    color: var(--gray);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 10px;
    color: var(--gray-light);
}

.breadcrumb-item a {
    color: var(--gray);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--dark);
}

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

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer-widget h4 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-widget p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* =============================================
   UTILITIES
   ============================================= */

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col { flex: 1; padding: 0 15px; }
.col-2 { width: 16.666%; padding: 0 15px; }
.col-3 { width: 25%; padding: 0 15px; }
.col-4 { width: 33.333%; padding: 0 15px; }
.col-6 { width: 50%; padding: 0 15px; }
.col-8 { width: 66.666%; padding: 0 15px; }
.col-9 { width: 75%; padding: 0 15px; }
.col-12 { width: 100%; padding: 0 15px; }

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* Grid */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Lazy loading placeholder */
.lazy-image {
    background: var(--gray-light);
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-image.loaded {
    opacity: 1;
}

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

@media (max-width: 992px) {
    .col-8, .col-4 {
        width: 100%;
    }

    .hero-title {
        font-size: 28px;
    }

    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-main ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary);
        z-index: 100;
    }

    .nav-main ul.active {
        display: flex;
    }

    .nav-main a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero-slide img {
        height: 350px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-overlay {
        padding: 20px;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .row {
        flex-direction: column;
    }

    .col-2, .col-3, .col-4, .col-6, .col-8, .col-9 {
        width: 100%;
    }

    .article-header, .article-content {
        padding: 25px;
    }

    .article-header h1 {
        font-size: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .article-list-item {
        flex-direction: column;
    }

    .article-list-image {
        width: 100%;
        height: 180px;
    }

    .footer {
        padding: 40px 0 0;
    }

    .footer-widget {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .section {
        padding: 40px 0;
    }

    .article-card-body {
        padding: 15px;
    }

    .btn {
        padding: 10px 20px;
    }
}
