/**
 * SuperPack landing page styles
 * Adaptive design, semantic blocks
 */

/* Hero & CTA — full background image, overlay */
.superpack-hero-cta {
    width: 100%;
}

.superpack-hero__bg {
    min-height: 450px;
    background-color: #2c3e50;
    background-size: inherit;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.superpack-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.superpack-hero__overlay .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.superpack-hero__cta-wrapper {
    display: flex;
    justify-content: center;
}

.superpack-hero__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.superpack-cta__btn,
.superpack-buy-btn {
    display: inline-block;
    min-width: 220px;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: #fff !important;
    border-radius: 0.5rem;
    transition: background-color 0.2s, transform 0.2s;
}

.superpack-buy-btn:hover {
    background-color: #e96b00 !important;
    border-color: #e96b00 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.superpack-buy-btn:disabled {
    opacity: 0.8;
    cursor: wait;
}

/* Unified buy buttons across all superpack sections */
.superpack .superpack-cta__btn,
.superpack .superpack-buy-btn,
.superpack-landing .btn.superpack-cta__btn,
.superpack-landing .superpack-buy-btn,
a.superpack-cta__btn,
button.superpack-cta__btn,
a.superpack-buy-btn,
button.superpack-buy-btn {
    display: inline-block;
    min-width: 220px;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background-color: #fd7e14 !important;
    border-color: #fd7e14 !important;
    color: #fff !important;
    border-radius: 0.5rem;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.2s, transform 0.2s;
}

.superpack-landing .superpack-cta__btn:hover,
.superpack-landing .superpack-buy-btn:hover,
a.superpack-cta__btn:hover,
a.superpack-buy-btn:hover {
    background-color: #e96b00 !important;
    border-color: #e96b00 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.superpack-cta-banner .superpack-buy-form {
    display: inline-block;
}

.superpack-cta-banner .superpack-cta__btn,
.superpack-cta-banner .superpack-buy-btn {
    min-width: 220px;
}

/* Breadcrumb */
.superpack-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "»";
}

/* Stars */
.superpack-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 1.25rem;
}

.superpack-star {
    color: #dee2e6;
}

.superpack-star.filled {
    color: #fd7e14;
}

/* Section titles */
.superpack-section-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--bs-dark, #212529);
}

/* Feature cards */
.superpack-features {
    background-color: #f8f9fa;
}

.superpack-features .row {
    margin-bottom: 1rem;
}

.superpack-features .row:last-child {
    margin-bottom: 0;
}

.superpack-feature-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 350px;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.superpack-feature-visual {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.5rem;
}

.superpack-step-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.superpack-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

/* Who needs card */
.superpack-who-card {
    transition: box-shadow 0.2s;
}

/* Industries/Who needs section */
.superpack-industries-nav {
    margin-bottom: 2rem;
}

.superpack-industry-tab {
    color: #6c757d !important;
    font-weight: 400;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s, font-weight 0.2s;
    cursor: pointer;
}

.superpack-industry-tab:hover {
    color: #212529 !important;
}

.superpack-industry-tab.active {
    color: #212529 !important;
    font-weight: 600;
    border-bottom-color: #212529;
}

.superpack-industry-content {
    display: none;
}

.superpack-industry-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.superpack-industry-image-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.superpack-industry-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 350px;
}

.superpack-industry-list {
    margin-top: 1rem;
}

.superpack-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #212529;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Review cards */
.superpack-review-card {
    transition: transform 0.2s;
}

.superpack-review-card:hover {
    transform: translateY(-2px);
}

/* Related links */
.superpack-related-link {
    transition: background-color 0.2s, border-color 0.2s;
    font-size: 0.95rem;
}

.superpack-related-link:hover {
    background-color: #e9ecef !important;
    border-color: var(--bs-primary, #0d6efd) !important;
}

.superpack-related-arrow {
    color: #fd7e14;
    font-weight: 700;
}

.superpack-related-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* FAQ image */
.superpack-faq-img-wrapper {
    max-width: 260px;
    margin: 0 auto 1rem;
    background-color: #e9ecef;
}

.superpack-faq-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* FAQ accordion */
.superpack-faq .accordion-button {
    font-weight: 500;
}

.superpack-faq .accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.08);
}

/* CTA sections */
.superpack-cta-banner .btn-warning {
    color: #212529;
}

.superpack-cta-bottom .btn-warning {
    color: #212529;
}

/* Product mockup placeholder */
.superpack-product-mockup {
    min-height: 220px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.superpack-product-mockup-img {
    width: 100%;
    max-width: 420px;
    max-height: 320px;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 30px;
}

/* Video CTA section */
.superpack-video-wrapper {
    aspect-ratio: 16 / 9;
}

.superpack-video-wrapper iframe {
    border: none;
}

/* Product blocks: can-wrapped, care, attention, in-use */
.superpack-block-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.superpack-block-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.superpack-can-wrapped-card {
    transition: box-shadow 0.2s;
}

.superpack-can-wrapped-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.superpack-block-img-large {
    max-height: 280px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .superpack-feature-image-wrapper {
        height: 300px;
    }
}

@media (max-width: 767.98px) {
    .superpack-hero-cta {
        padding-top: 0.5rem;
    }

    .superpack-cta-box {
        padding: 1.5rem !important;
    }

    .superpack-cta__btn {
        width: 100%;
        max-width: 280px;
    }

    .superpack-related-link,
    .superpack-related-link span {
        font-size: 0.875rem;
    }

    .superpack-faq .accordion-button {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }

    .superpack-features .row {
        margin-bottom: 1rem;
    }

    .superpack-feature-image-wrapper {
        height: 250px;
        padding: 0.75rem;
    }

    .superpack-feature-visual {
        height: 100%;
    }

    .superpack-industries-nav {
        gap: 0.5rem !important;
        margin-bottom: 1.5rem;
    }

    .superpack-industry-tab {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem !important;
    }

    .superpack-who-card {
        padding: 1.5rem !important;
    }

    .superpack-industry-image {
        max-height: 250px;
    }

    .superpack-industry-image-wrapper {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .superpack-video-wrapper {
        padding-bottom: 56.25% !important;
    }

    .superpack-can-wrapped .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .superpack-block-img-large {
        max-height: 200px;
    }

    .superpack-product-mockup {
        margin-top: 1.5rem;
        min-height: 180px;
    }
}

@media (max-width: 575.98px) {
    .superpack-section-title {
        font-size: 1.25rem;
    }

    .superpack-achievement-card h3 {
        font-size: 1rem;
    }

    .superpack-feature-image-wrapper {
        height: 220px;
    }
}

/* ========== Dark mode support — explicit colors (match main.css) ========== */
[data-bs-theme="dark"] .superpack-landing {
    background-color: #1e293b !important;
    color: #9b9bb4 !important;
}

[data-bs-theme="dark"] .superpack-landing .container {
    color: inherit;
}

/* Video CTA section */
[data-bs-theme="dark"] .superpack-video-cta {
    background-color: #1e293b !important;
}

[data-bs-theme="dark"] .superpack-video-cta .text-muted {
    color: #9b9bb4 !important;
}

/* SEO content section */
[data-bs-theme="dark"] .superpack-seo {
    background-color: #1e293b !important;
    color: #9b9bb4 !important;
}

[data-bs-theme="dark"] .superpack-section-title {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .superpack-features,
[data-bs-theme="dark"] .superpack-features .superpack-feature-image-wrapper {
    background-color: #1e293b !important;
}

[data-bs-theme="dark"] .superpack-how-to {
    background-color: #1e293b !important;
}

[data-bs-theme="dark"] .superpack-step-card {
    background-color: #191d28 !important;
    border-color: #334155 !important;
}

[data-bs-theme="dark"] .superpack-can-wrapped {
    background-color: #1e293b !important;
}

[data-bs-theme="dark"] .superpack-can-wrapped-card {
    background-color: #191d28 !important;
    border-color: #334155 !important;
}

[data-bs-theme="dark"] .superpack-care,
[data-bs-theme="dark"] .superpack-attention,
[data-bs-theme="dark"] .superpack-in-use {
    background-color: #1e293b !important;
}

[data-bs-theme="dark"] .superpack-block-image-wrapper,
[data-bs-theme="dark"] .superpack-feature-image-wrapper {
    background-color: #191d28 !important;
}

[data-bs-theme="dark"] .superpack-industry-tab {
    color: #9b9bb4 !important;
}

[data-bs-theme="dark"] .superpack-industry-tab:hover,
[data-bs-theme="dark"] .superpack-industry-tab.active {
    color: #f8fafc !important;
    border-bottom-color: #f8fafc !important;
}

[data-bs-theme="dark"] .superpack-who-card {
    background-color: #191d28 !important;
    border-color: #334155 !important;
}

[data-bs-theme="dark"] .superpack-industry-image-wrapper {
    background-color: #191d28 !important;
}

[data-bs-theme="dark"] .superpack-business,
[data-bs-theme="dark"] .superpack-extra,
[data-bs-theme="dark"] .superpack-related-searches {
    background-color: #1e293b !important;
}

[data-bs-theme="dark"] .superpack-related-link {
    background-color: #191d28 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .superpack-related-link:hover {
    background-color: #334155 !important;
}

[data-bs-theme="dark"] .superpack-related-link.bg-light,
[data-bs-theme="dark"] .superpack-related-link.bg-white {
    background-color: #191d28 !important;
}

[data-bs-theme="dark"] .superpack-review-card {
    background-color: #191d28 !important;
    border-color: #334155 !important;
}

[data-bs-theme="dark"] .superpack-achievement-card,
[data-bs-theme="dark"] .superpack-achievement-card[style] {
    background-color: #191d28 !important;
}

[data-bs-theme="dark"] .superpack-faq .accordion-item {
    background-color: #191d28 !important;
    border-color: #334155 !important;
}

[data-bs-theme="dark"] .superpack-faq .accordion-button {
    background-color: #191d28 !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .superpack-faq .accordion-button:not(.collapsed) {
    background-color: #1e293b !important;
}

[data-bs-theme="dark"] .superpack-faq .accordion-body {
    background-color: #191d28 !important;
    color: #9b9bb4 !important;
}

/* Placeholder wrappers */
[data-bs-theme="dark"] .superpack-block-image-wrapper,
[data-bs-theme="dark"] .superpack-feature-image-wrapper,
[data-bs-theme="dark"] .superpack-faq-img-wrapper,
[data-bs-theme="dark"] .superpack-reviews-social__img-wrapper,
[data-bs-theme="dark"] .superpack-review-img-wrapper,
[data-bs-theme="dark"] .superpack-cta-img-wrapper,
[data-bs-theme="dark"] .superpack-industry-image-wrapper {
    background-color: #191d28 !important;
}

[data-bs-theme="dark"] .superpack-product-mockup,
[data-bs-theme="dark"] .superpack-product-mockup[style] {
    background-color: #334155 !important;
}

[data-bs-theme="dark"] .superpack-check-icon {
    background-color: #f8fafc !important;
    color: #191d28 !important;
}

/* Override inline backgrounds */
[data-bs-theme="dark"] .superpack-who-needs,
[data-bs-theme="dark"] .superpack-who-needs[style] {
    background-color: #1e293b !important;
}

[data-bs-theme="dark"] .superpack-business {
    background-color: #1e293b !important;
}

/* CTA sections */
[data-bs-theme="dark"] .superpack-cta-banner {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .superpack-cta-banner .opacity-75 {
    color: #9b9bb4 !important;
}

[data-bs-theme="dark"] .superpack-cta-bottom {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .superpack-cta-bottom .text-white-50 {
    color: #9b9bb4 !important;
}

/* Breadcrumb, reviews */
[data-bs-theme="dark"] .superpack-breadcrumb {
    background-color: #1e293b !important;
}

[data-bs-theme="dark"] .superpack-reviews-social,
[data-bs-theme="dark"] .superpack-reviews-grid {
    background-color: #1e293b !important;
}

[data-bs-theme="dark"] .superpack-reviews-social .text-muted {
    color: #9b9bb4 !important;
}

[data-bs-theme="dark"] .superpack-landing .text-muted {
    color: #9b9bb4 !important;
}

[data-bs-theme="dark"] .superpack-landing .text-dark {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .superpack-can-wrapped-card .text-muted,
[data-bs-theme="dark"] .superpack-achievement-card .text-muted {
    color: #9b9bb4 !important;
}

/* How-to badge dark mode */
[data-bs-theme="dark"] .superpack-step-card .badge.bg-primary {
    background-color: var(--bs-primary) !important;
}

/* Override Bootstrap bg utilities in superpack dark mode */
[data-bs-theme="dark"] .superpack-landing .bg-light,
[data-bs-theme="dark"] .superpack-landing .bg-white {
    background-color: #191d28 !important;
}

[data-bs-theme="dark"] .superpack-faq .accordion-button::after {
    filter: invert(1);
}

[data-bs-theme="dark"] .superpack-who-needs .superpack-industries-nav {
    border-color: #334155 !important;
}

[data-bs-theme="dark"] .superpack-landing p,
[data-bs-theme="dark"] .superpack-landing .h4,
[data-bs-theme="dark"] .superpack-landing .h5,
[data-bs-theme="dark"] .superpack-landing .h6 {
    color: inherit;
}

/* SEO Content Section - используем стили как в superpack-features */
.superpack-seo-content {
    background-color: #f8f9fa;
    color: #212529;
}

.superpack-seo-section {
    margin-bottom: 2.5rem;
}

.superpack-seo-section:last-child {
    margin-bottom: 0;
}

.superpack-seo-paragraph {
    margin-bottom: 1.5rem;
}

.superpack-seo-paragraph p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.superpack-seo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.superpack-seo-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0;
}

.superpack-seo-list-number {
    font-weight: 700;
    font-size: 1rem;
    color: inherit;
    min-width: 1rem;
    flex-shrink: 0;
    line-height: 1.7;
}

.superpack-seo-list-text {
    font-size: 1rem;
    line-height: 1.7;
    flex: 1;
}

/* Dark mode for SEO content */
[data-bs-theme="dark"] .superpack-seo-content {
    background-color: #1e293b;
}

[data-bs-theme="dark"] .superpack-seo-list-text {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .superpack-seo-list-number {
    color: #60a5fa;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .superpack-seo-content {
        padding: 2rem 0 !important;
    }

    .superpack-seo-section {
        margin-bottom: 2rem;
    }

    .superpack-seo-paragraph p {
        font-size: 0.9375rem;
    }

    .superpack-seo-list {
        gap: 0.625rem;
    }

    .superpack-seo-list-number {
        font-size: 0.9375rem;
        min-width: 1.75rem;
    }

    .superpack-seo-list-text {
        font-size: 0.9375rem;
    }
}
