/* Main Article Container - Centered Single Column */
.article-container {
    max-width: 1000px;
}

.article-header {
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.article-meta {
    justify-content: center;
    font-size: 0.95rem;
}

.article-meta .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
}

.article-company {
    font-size: 1rem;
}

.article-company a:hover {
    text-decoration: underline !important;
}

.company-logo-header {
    max-width: 100px;
    height: auto;
    object-fit: contain;
}

/* Article Body - Medium Style Typography */
.article-body {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 19px;
    line-height: 1.75;
    color: #292929;
    word-wrap: break-word;
    letter-spacing: 0.1px;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: 0.375rem;
}

/* Table Styling */

.article-body table {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
}

.article-body h2 {
    font-size: 2rem;
}

.article-body h3 {
    font-size: 1.5rem;
}

.article-body h4 {
    font-size: 1.25rem;
}

.article-body h5 {
    font-size: 1.125rem;
}


.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

/* AI Summary Locked State */
.ai-summary-locked {
    border-radius: 8px;
}

/* Financial Report Teaser with Fade */
.financial-report-teaser {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

.financial-report-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}

.financial-report-cta {
    padding: 1.5rem 0 0.5rem;
}

/* Tags/Topics Styling - Redesigned */
.tags-section {
    border-top: 1px solid #e9ecef;
}

.topic-tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background-color: #ffffff;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.topic-tag:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-1px);
}


/* Related Articles */
.related-article-item {
    transition: background-color 0.2s;
}

.related-article-item:hover {
    background-color: #f8f9fa;
}

.related-article-item a {
    display: block;
}

.related-article-item h3 {
    transition: color 0.2s;
}

.related-article-item:hover h3 {
    color: #0d6efd !important;
}

.related-articles-list {
    margin-bottom: 2rem;
}

.related-article-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

/* FAQ Section - Pills */
.faq-section {
    border-top: 1px solid #e9ecef;
}

.faq-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: #f8f9fa;
    color: #495057;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
}

.faq-pill:hover {
    background-color: #e9ecef;
    color: #212529;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Email CTA Section */
.email-cta-container {
    max-width: 700px;
}

.email-cta-section .lead {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-body {
        font-size: 18px;
        line-height: 1.7;
    }
    
    .company-logo-header {
        max-width: 80px;
    }
}

/* Breadcrumb Styling */
.breadcrumb {
    font-size: 0.9rem;
    background-color: transparent;
    padding: 0.5rem 0;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #6c757d;
}

.breadcrumb-item a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* Utility - Remove default card styling if accidentally used */
.article-container .card {
    border: none;
    box-shadow: none;
    background: none;
}

/* =========================================================================
   AI Signal Lock Teaser (niezalogowani) — blurred sentiment + topics z kłódką
   ========================================================================= */
.ai-signal-lock {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3em 0.65em;
    border-radius: 0.375rem;
    background: #f1f3f5;
    border: 1px dashed #ced4da;
    color: #6c757d;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ai-signal-lock:hover {
    background: #fff3cd;
    border-color: #ffc107;
    color: #664d03;
}

.ai-signal-lock .ai-signal-blur {
    display: inline-block;
    filter: blur(4px);
    user-select: none;
    -webkit-user-select: none;
    letter-spacing: 0.05em;
}

.ai-signal-lock i.fa-lock {
    color: #adb5bd;
}

.ai-signal-lock:hover i.fa-lock {
    color: #e0a800;
}

/* =========================================================================
   Urgency panel — 3 karty statystyk budujące FOMO + CTA na alerty email
   ========================================================================= */
.urgency-panel {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e3e8ef;
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}

.urgency-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 50%, #0d6efd 100%);
    opacity: 0.85;
}

.urgency-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

.urgency-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    background: #ffffff;
    border: 1px solid #eef1f5;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.urgency-card:hover,
a.urgency-card:focus-visible {
    transform: translateY(-1px);
    border-color: #d0d7e2;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    color: inherit;
    text-decoration: none;
}

.urgency-card--hot {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe9e9 100%);
    border-color: #ffd4d4;
}

.urgency-card--warm {
    background: linear-gradient(135deg, #fff8f0 0%, #ffeacf 100%);
    border-color: #ffd9a8;
}

.urgency-card--info {
    background: linear-gradient(135deg, #eef7ff 0%, #dbecff 100%);
    border-color: #b9d7f5;
}

.urgency-card__icon-wrap {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #0d6efd;
    font-size: 1.05rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.urgency-card--hot .urgency-card__icon-wrap { color: #c92a2a; }
.urgency-card--warm .urgency-card__icon-wrap { color: #d9480f; }
.urgency-card--info .urgency-card__icon-wrap { color: #1971c2; }

.urgency-card__body {
    min-width: 0;
    line-height: 1.25;
    flex: 1;
}

.urgency-card__value {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1d21;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.urgency-card__label {
    font-size: 0.72rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
    font-weight: 500;
}

.urgency-card__value--redacted {
    align-items: center;
}

.urgency-redacted-bar {
    display: inline-block;
    height: 0.85rem;
    width: 92px;
    border-radius: 0.3rem;
    background: linear-gradient(90deg, #f1d7b8 0%, #e8c59d 40%, #f6e1c6 50%, #e8c59d 60%, #f1d7b8 100%);
    background-size: 200% 100%;
    animation: urgency-redacted-shimmer 2.4s ease-in-out infinite;
}

@keyframes urgency-redacted-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.urgency-card__lock-icon {
    font-size: 0.8rem;
    color: #d9480f;
}

.urgency-card--locked {
    cursor: pointer;
}

.urgency-cta {
    padding-top: 0.25rem;
}

.urgency-cta__headline {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.urgency-cta__lead {
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes urgency-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* =========================================================================
   Responsive tuning — urgency panel + custom btn size
   ========================================================================= */
@media (min-width: 768px) {
    .urgency-panel {
        padding: 2rem 2rem 1.75rem;
        border-radius: 1.25rem;
    }

    .urgency-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.85rem;
        margin-bottom: 1.75rem;
    }

    .urgency-card {
        padding: 1rem 1.1rem;
        gap: 0.9rem;
        border-radius: 0.875rem;
        flex: 1 1 0;
        min-width: 240px;
        max-width: calc((100% - 1.7rem) / 3);
    }

    .urgency-card__icon-wrap {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .urgency-card__value {
        font-size: 1.1rem;
    }

    .urgency-card__label {
        font-size: 0.75rem;
    }

    .urgency-cta__headline {
        font-size: 1.65rem;
    }

    .urgency-cta__lead {
        font-size: 1rem;
    }

    /* Button rośnie do rozmiaru btn-lg dopiero od 768px — oszczędza vertical space na mobile */
    .btn-md-lg {
        padding: 0.5rem 1rem;
        font-size: 1.25rem;
        border-radius: 0.5rem;
    }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
    .urgency-card--hot .urgency-card__icon-wrap {
        animation: urgency-pulse 2.4s ease-in-out infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .urgency-redacted-bar {
        animation: none;
    }
}

/* =========================================================================
   Follow button "just followed" celebration animation
   ========================================================================= */
#newsFollowCompanyBtn {
    position: relative;
    overflow: visible;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

#newsFollowCompanyBtn.news-follow-btn--just-followed {
    animation: news-follow-btn-pop 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#newsFollowCompanyBtn.news-follow-btn--just-followed > i.fa-star {
    animation: news-follow-star-pop 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    transform-origin: center;
}

#newsFollowCompanyBtn.news-follow-btn--just-followed::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.55);
    animation: news-follow-ring 1.4s ease-out;
    pointer-events: none;
    z-index: 0;
}

#newsFollowCompanyBtn.news-follow-btn--just-followed > i,
#newsFollowCompanyBtn.news-follow-btn--just-followed > .news-follow-btn__label {
    position: relative;
    z-index: 1;
}

.news-follow-sparkle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
    margin-top: -4.5px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 0 10px 1px currentColor;
    animation: news-follow-sparkle-fly 1.15s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}

.news-follow-sparkle--star {
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -6px;
    background: transparent !important;
    box-shadow: none;
    color: #ffc107;
    font-size: 12px;
    text-align: center;
    line-height: 12px;
    animation: news-follow-sparkle-fly-star 1.3s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}

@keyframes news-follow-btn-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.06); }
    70%  { transform: scale(0.97); }
    100% { transform: scale(1); }
}

@keyframes news-follow-star-pop {
    0%   { transform: scale(1) rotate(0deg); }
    45%  { transform: scale(1.8) rotate(200deg); }
    75%  { transform: scale(0.9) rotate(340deg); }
    100% { transform: scale(1) rotate(360deg); }
}

@keyframes news-follow-ring {
    0%   { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.55); }
    70%  { box-shadow: 0 0 0 28px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 28px rgba(25, 135, 84, 0); }
}

@keyframes news-follow-sparkle-fly {
    0% {
        transform: rotate(var(--angle, 0deg)) translateX(0) scale(0.4);
        opacity: 1;
    }
    20% {
        transform: rotate(var(--angle, 0deg)) translateX(14px) scale(1.15);
        opacity: 1;
    }
    100% {
        transform: rotate(var(--angle, 0deg)) translateX(var(--distance, 110px)) scale(0);
        opacity: 0;
    }
}

@keyframes news-follow-sparkle-fly-star {
    0% {
        transform: rotate(var(--angle, 0deg)) translateX(0) rotate(0deg) scale(0.4);
        opacity: 1;
    }
    20% {
        transform: rotate(var(--angle, 0deg)) translateX(14px) rotate(180deg) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: rotate(var(--angle, 0deg)) translateX(var(--distance, 130px)) rotate(540deg) scale(0.2);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    #newsFollowCompanyBtn.news-follow-btn--just-followed,
    #newsFollowCompanyBtn.news-follow-btn--just-followed > i.fa-star,
    #newsFollowCompanyBtn.news-follow-btn--just-followed::before,
    .news-follow-sparkle {
        animation: none !important;
    }
}

