/* Article Page Styles */

/* Article Wrapper */
.article-wrapper {
    margin-top: 80px;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: #FAFAFA;
}
a {
  color: #0a66c2;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

a:hover {
  color: #084f9e;
  text-decoration: underline;
}
/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #1e293b; /* zmiana koloru z niebieskiego */
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 14px;
    border: 1.5px solid #dbeafe;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.05);
}

.back-button:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #1e293b; /* jasny tekst na ciemnym tle */
    border-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.back-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-button:hover .back-icon {
    transform: translateX(-3px);
}

.back-button-top {
    margin-bottom: 2rem;
}

.back-button-bottom {
    margin-top: 3rem;
}

/* Article Image */
.article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    object-fit: cover; /* lepiej wypełni cały obszar */
    display: block;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    background-color: #f1f5f9;
}

.article-header-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* wcześniej było cover */
    display: block;
    background-color: #f1f5f9;
}

/* Article Meta */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date svg {
    width: 18px;
    height: 18px;
}

/* Article Content Wrapper */
.article-content-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

/* Article Title */
.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Article Description */
.article-description {
    font-size: 1.3rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Article Content */
.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin: 2.5rem 0 1.2rem;
    font-weight: 600;
}

.article-content h3 {
    font-size: 1.4rem;
    color: #334155;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

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

.article-content strong {
    color: #1e293b;
    font-weight: 600;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 6rem 2rem;
    font-size: 1.25rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Error State */
.error {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.125rem;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 12px;
    margin: 2rem;
    border: 1px solid #fee2e2;
}

.error p {
    margin: 0.5rem 0;
}

.intro {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.intro img {
  width: 200px;       /* albo auto, albo procenty, jak wolisz */
  height: auto;
}

.intro p {
  flex: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-wrapper {
        padding: 5rem 1.5rem 3rem;
    }

    .article-body {
        padding: 2.5rem 2.5rem 3.5rem;
    }

    .article-body h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .article-wrapper {
        padding: 2rem 1rem;
    }
    
    .article-header-image, .article-image {
        height: 250px;
    }
    
    .article-content-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-description {
        font-size: 1.1rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
    }

    .back-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }

    .back-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .article-wrapper {
        padding: 4rem 1rem 2rem;
    }

    .article-header {
        height: 220px;
    }

    .article-body {
        padding: 1.5rem 1.25rem 2.5rem;
    }

    .article-body h1 {
        font-size: 1.75rem;
    }

    .article-description {
        font-size: 1.0625rem;
    }

    .article-content {
        font-size: 0.9375rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 0.875rem 0;
    }

    .article-content h3 {
        font-size: 1.25rem;
        margin: 1.75rem 0 0.75rem 0;
    }

    .back-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .back-button-top {
        margin-bottom: 1.5rem;
    }

    .back-button-bottom {
        margin-top: 2.5rem;
    }
}

body { outline: 5px solid red !important; }
