/**
 * News Slider Pro - Stylesheet
 * Plugin de slider de notícias moderno e responsivo
 */

/* ==========================================
   VARIÁVEIS GLOBAIS
   ========================================== */
:root {
    --nsp-primary: #2563eb;
    --nsp-secondary: #1e40af;
    --nsp-dark: #1e293b;
    --nsp-gray: #64748b;
    --nsp-light-gray: #f1f5f9;
    --nsp-white: #ffffff;
    --nsp-radius: 12px;
    --nsp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --nsp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --nsp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET E BASE
   ========================================== */
.nsp-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.nsp-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.nsp-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.nsp-container a {
    text-decoration: none;
    color: inherit;
    transition: var(--nsp-transition);
}

/* ==========================================
   GRID LAYOUT - SLIDER À ESQUERDA/DIREITA
   ========================================== */
.nsp-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.nsp-grid-reverse {
    grid-template-columns: 1fr 2fr;
}

/* ==========================================
   SEÇÃO DO SLIDER PRINCIPAL
   ========================================== */
.nsp-slider-section {
    position: relative;
    border-radius: var(--nsp-radius);
    overflow: hidden;
    box-shadow: var(--nsp-shadow-lg);
    background: var(--nsp-white);
}

.nsp-main-slider {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.nsp-slide-card {
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.nsp-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.nsp-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nsp-slide-card:hover .nsp-slide-image img {
    transform: scale(1.05);
}

.nsp-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.nsp-slide-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 30px;
    color: var(--nsp-white);
}

.nsp-category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--nsp-primary);
    color: var(--nsp-white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.nsp-slide-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nsp-slide-title a {
    color: var(--nsp-white);
}

.nsp-slide-title a:hover {
    color: var(--nsp-light-gray);
}

.nsp-slide-excerpt {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
    max-width: 90%;
}

.nsp-slide-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.nsp-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    opacity: 0.9;
}

.nsp-date svg {
    flex-shrink: 0;
}

.nsp-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--nsp-white);
    color: var(--nsp-primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--nsp-transition);
}

.nsp-read-more:hover {
    background: var(--nsp-primary);
    color: var(--nsp-white);
    transform: translateX(5px);
}

/* Navegação do Slider */
.swiper-button-next,
.swiper-button-prev {
    color: var(--nsp-white);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: var(--nsp-transition);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--nsp-primary);
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--nsp-white);
    opacity: 0.5;
    transition: var(--nsp-transition);
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--nsp-primary);
    width: 30px;
    border-radius: 6px;
}

/* ==========================================
   SEÇÃO DE LISTA DE POSTS
   ========================================== */
.nsp-posts-section {
    background: var(--nsp-white);
    border-radius: var(--nsp-radius);
    padding: 25px;
    box-shadow: var(--nsp-shadow);
}

.nsp-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--nsp-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nsp-title-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(to right, var(--nsp-primary), transparent);
}

.nsp-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nsp-post-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--nsp-light-gray);
    transition: var(--nsp-transition);
}

.nsp-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nsp-post-item:hover {
    transform: translateX(5px);
}

.nsp-post-thumb {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.nsp-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nsp-post-item:hover .nsp-post-thumb img {
    transform: scale(1.1);
}

.nsp-post-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nsp-post-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--nsp-light-gray);
    color: var(--nsp-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    width: fit-content;
}

.nsp-post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--nsp-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nsp-post-title a:hover {
    color: var(--nsp-primary);
}

.nsp-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.nsp-post-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--nsp-gray);
}

/* ==========================================
   LAYOUT FULL SLIDER
   ========================================== */
.nsp-layout-full-slider .nsp-full-slider-wrapper {
    width: 100%;
    border-radius: var(--nsp-radius);
    overflow: hidden;
    box-shadow: var(--nsp-shadow-lg);
}

.nsp-full-slider {
    width: 100%;
    height: 600px;
}

.nsp-full-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.nsp-full-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nsp-full-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.swiper-slide-active .nsp-full-slide-bg img {
    transform: scale(1.05);
}

.nsp-full-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.nsp-full-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.nsp-full-inner {
    max-width: 800px;
    color: var(--nsp-white);
    text-align: center;
}

.nsp-full-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--nsp-primary);
    color: var(--nsp-white);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    margin-bottom: 20px;
}

.nsp-full-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.nsp-full-title a {
    color: var(--nsp-white);
}

.nsp-full-title a:hover {
    color: var(--nsp-light-gray);
}

.nsp-full-excerpt {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.95;
}

.nsp-full-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.nsp-full-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    opacity: 0.9;
}

.nsp-full-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--nsp-white);
    color: var(--nsp-primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--nsp-transition);
}

.nsp-full-btn:hover {
    background: var(--nsp-primary);
    color: var(--nsp-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.nsp-full-nav {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.nsp-full-nav:hover {
    background: var(--nsp-primary);
}

.nsp-full-pagination .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
}

.nsp-full-pagination .swiper-pagination-bullet-active {
    width: 40px;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */

/* Tablets */
@media (max-width: 1024px) {
    .nsp-grid,
    .nsp-grid-reverse {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .nsp-slide-title {
        font-size: 24px;
    }
    
    .nsp-full-slider {
        height: 500px;
    }
    
    .nsp-full-title {
        font-size: 36px;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    .nsp-container {
        padding: 15px;
    }
    
    .nsp-main-slider {
        min-height: 400px;
    }
    
    .nsp-slide-card {
        height: 400px;
    }
    
    .nsp-slide-content {
        padding: 20px;
    }
    
    .nsp-slide-title {
        font-size: 20px;
    }
    
    .nsp-slide-excerpt {
        font-size: 14px;
        max-width: 100%;
    }
    
    .nsp-post-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }
    
    .nsp-post-thumb {
        width: 80px;
        height: 80px;
    }
    
    .nsp-post-title {
        font-size: 15px;
    }
    
    .nsp-full-slider {
        height: 450px;
    }
    
    .nsp-full-slide-content {
        padding: 30px 20px;
    }
    
    .nsp-full-title {
        font-size: 28px;
    }
    
    .nsp-full-excerpt {
        font-size: 16px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* Smartphones pequenos */
@media (max-width: 480px) {
    .nsp-slide-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nsp-read-more {
        width: 100%;
        justify-content: center;
    }
    
    .nsp-post-item {
        grid-template-columns: 1fr;
    }
    
    .nsp-post-thumb {
        width: 100%;
        height: 180px;
    }
    
    .nsp-full-title {
        font-size: 24px;
    }
    
    .nsp-full-excerpt {
        font-size: 15px;
    }
    
    .nsp-full-meta {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================
   ANIMAÇÕES
   ========================================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.swiper-slide-active .nsp-slide-content {
    animation: slideIn 0.6s ease-out;
}

.swiper-slide-active .nsp-full-inner {
    animation: slideIn 0.8s ease-out;
}
