/* ===== Falco Comprisor - Page-specific styles ===== */

/* ===== Centered Hero (overrides 2-column layout from falcopdf.css) ===== */
.theme-compr .pdf-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    justify-items: center;
    max-width: 880px;
    margin-inline: auto;
}

.theme-compr .pdf-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.theme-compr .pdf-exclusive-badge {
    margin-inline: auto;
}

.theme-compr .pdf-hero-subtitle {
    margin-inline: auto;
    max-width: 760px;
    text-align: center;
}

.theme-compr .pdf-hero-meta {
    justify-content: center;
}

/* Free Download Section */
.compr-free-download {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.compr-free-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 560px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px -20px rgba(255, 106, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.compr-free-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 138, 0, 0.08), transparent 60%);
    pointer-events: none;
}

[data-theme="dark"] .compr-free-card {
    background: var(--bg-card-dark, #1a1f3a);
    border-color: rgba(255, 255, 255, 0.08);
}

.compr-free-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.compr-free-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(255, 106, 0, 0.35));
}

.compr-free-name {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, #ff8a00, #ff2d2d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.compr-free-tag {
    font-size: 1.05rem;
    color: var(--text-secondary, #64748b);
    margin: 0 0 2rem;
    position: relative;
    z-index: 1;
}

.compr-free-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.compr-free-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compr-free-actions .btn:hover {
    transform: translateY(-2px);
}

.compr-free-btn-download {
    background: linear-gradient(135deg, #ff8a00, #ff2d2d);
    color: #fff;
    border: none;
    box-shadow: 0 10px 24px -8px rgba(255, 106, 0, 0.5);
}

.compr-free-btn-download:hover {
    box-shadow: 0 14px 30px -8px rgba(255, 106, 0, 0.65);
}

/* ===== Loading state on the download button ===== */
.compr-free-btn-download.is-loading {
    cursor: progress;
    pointer-events: none;
    animation: compr-btn-pulse 1.4s ease-in-out infinite;
}

.compr-free-btn-download.is-loading > svg {
    display: none;
}

.btn-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: compr-spin 0.7s linear infinite;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

@keyframes compr-spin {
    to { transform: rotate(360deg); }
}

@keyframes compr-btn-pulse {
    0%, 100% { box-shadow: 0 10px 24px -8px rgba(255, 106, 0, 0.55); }
    50%      { box-shadow: 0 16px 36px -8px rgba(255, 106, 0, 0.9); }
}

.compr-free-btn-guide {
    background: transparent;
    color: var(--accent-orange, #ff6a00);
    border: 2px solid var(--accent-orange, #ff6a00);
}

.compr-free-btn-guide:hover {
    background: rgba(255, 106, 0, 0.08);
}

@media (max-width: 600px) {
    .compr-free-card {
        padding: 2rem 1.5rem;
    }
    .compr-free-icon {
        width: 110px;
        height: 110px;
    }
    .compr-free-name {
        font-size: 1.6rem;
    }
}
