/**
 * Seaplast Catalogue & Resources Page Drag & Drop Sections CSS
 * Styles for Catalogue Hero, Catalogues Grid, Help Banner, & Newsletter Subscription Bar
 *
 * @package Seaplast
 */

/* -------------------------------------------------------------
 * COMMON CONTAINER & TYPOGRAPHY
 * ------------------------------------------------------------- */
.sp-catalogue-section {
    width: 100%;
    padding: 50px 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1a2533;
}

.sp-catalogue-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------------------------------------------------
 * 1. CATALOGUE HERO WIDGET
 * ------------------------------------------------------------- */
.sp-catalogue-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #03162b 0%, #06314d 60%, #00768C 100%);
    border-radius: 20px 20px 0 0;
    padding: 60px 50px 40px;
    color: #ffffff;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 991px) {
    .sp-catalogue-hero-banner {
        grid-template-columns: 1fr;
        padding: 40px 24px;
    }
}

.sp-catalogue-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px 0;
    color: #00D2FF;
}

.sp-catalogue-hero-title span.text-white {
    color: #ffffff;
    display: block;
}

.sp-catalogue-hero-sub {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 520px;
}

.sp-catalogue-badges-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.sp-cat-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f1f5f9;
}

.sp-cat-badge-item svg {
    color: #00D2FF;
}

.sp-catalogue-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-catalogue-hero-visual img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
}

/* Features Bottom Bar */
.sp-catalogue-features-bar {
    background: #004d5a;
    border-radius: 0 0 20px 20px;
    padding: 20px 30px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .sp-catalogue-features-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .sp-catalogue-features-bar {
        grid-template-columns: 1fr;
    }
}

.sp-cat-feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.sp-cat-feat-icon {
    width: 36px;
    height: 36px;
    color: #00D2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-cat-feat-text {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
}

/* -------------------------------------------------------------
 * 2. CATALOGUES GRID WIDGET
 * ------------------------------------------------------------- */
.sp-cat-grid-header {
    text-align: center;
    margin-bottom: 36px;
}

.sp-cat-grid-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0c1e35;
    margin: 0 0 8px 0;
}

.sp-cat-grid-sub {
    font-size: 0.95rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.sp-catalogues-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .sp-catalogues-cards-grid {
        grid-template-columns: 1fr;
    }
}

.sp-catalogue-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #eef2f6;
    box-shadow: 0 6px 20px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-catalogue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.sp-cat-card-preview {
    position: relative;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-cat-card-preview img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.sp-pdf-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sp-cat-card-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0c1e35;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-cat-card-content p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 20px 0;
}

.sp-cat-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.sp-btn-download {
    width: 100%;
    background: #00768C;
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.sp-btn-download:hover {
    background: #005a6b;
    color: #ffffff;
}

/* -------------------------------------------------------------
 * 3. CAN'T FIND WHAT YOU'RE LOOKING FOR BANNER
 * ------------------------------------------------------------- */
.sp-cat-help-banner {
    background: #f8fafc;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
}

@media (max-width: 850px) {
    .sp-cat-help-banner {
        grid-template-columns: 1fr;
    }
}

.sp-cat-help-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0c1e35;
    margin: 0 0 10px 0;
}

.sp-cat-help-sub {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 24px;
}

.sp-cat-help-img {
    text-align: right;
}

.sp-cat-help-img img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

/* -------------------------------------------------------------
 * 4. NEWSLETTER SUBSCRIBE BAR WIDGET
 * ------------------------------------------------------------- */
.sp-newsletter-bar {
    background: #004d5a;
    border-radius: 16px;
    padding: 30px 40px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 77, 90, 0.2);
}

@media (max-width: 850px) {
    .sp-newsletter-bar {
        grid-template-columns: 1fr;
    }
}

.sp-news-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sp-news-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #00D2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-news-text h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.sp-news-text p {
    font-size: 0.88rem;
    color: #cbd5e1;
    margin: 0;
}

.sp-news-form {
    display: flex;
    gap: 10px;
}

.sp-news-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    outline: none;
}

.sp-news-btn {
    background: #00768C;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.sp-news-btn:hover {
    background: #003a45;
}
