/* ================================================
   Página "Histórias" - Design do Santuário
   Substituindo a energia de "urgência" pela de "convite e narrativa"
   ================================================ */

/* Título principal da página */
.stories-page-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

/* Subtítulo da página */
.page-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: #AAAAAA;
    text-align: center;
    margin-top: -40px;
    margin-bottom: 60px;
}

/* ================================================
   História em Destaque
   ================================================ */
.featured-story {
    max-width: 1000px;
    margin: 0 auto 80px auto;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.featured-story-image {
    width: 100%;
    height: 0;
    padding-bottom: 40%; /* Proporção panorâmica editorial */
    position: relative;
    overflow: hidden;
}

.featured-story-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-story-image-link {
    display: block;
}

.featured-story-title-link {
    text-decoration: none;
}

.featured-story-title-link:hover {
    text-decoration: none;
}

.featured-story-content {
    padding: 40px;
}

.featured-story-title {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.featured-story-synopsis {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #d0d0d0;
    margin-bottom: 30px;
    font-weight: 400;
}

.featured-story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 30px;
    color: #AAAAAA;
    font-size: 0.9em;
}

.featured-story-author {
    font-style: italic;
}

.featured-story-date {
    font-weight: 500;
}

.featured-story-cta {
    display: inline-block;
    padding: 14px 28px;
    background-color: #feaf50;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.featured-story-cta:hover {
    background-color: #e67e22;
    color: #000;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ================================================
   Outras Histórias
   ================================================ */
.other-stories {
    max-width: 1000px;
    margin: 0 auto;
}


.stories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.story-item {
    background: #1a1a1a;
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid #303030;
}

.story-item-container {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 0;
    align-items: start;
    padding: 30px;
}

.story-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
}

.story-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-image-link {
    display: block;
}

.story-title-link {
    text-decoration: none;
}

.story-title-link:hover {
    text-decoration: none;
}

.story-text-container {
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.story-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.story-date {
    color: #AAAAAA;
    font-size: 0.9em;
    margin-top: 16px;
    margin-bottom: 24px;
    font-style: italic;
}

.story-synopsis {
    font-size: 1rem;
    line-height: 1.6;
    color: #d0d0d0;
    margin-bottom: 24px;
    flex-grow: 1;
}

.story-cta {
    display: inline-block;
    padding: 10px 20px;
    background-color: #feaf50;
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.story-cta:hover {
    background-color: #e67e22;
    color: #000;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ================================================
   Responsivo
   ================================================ */
@media (max-width: 1040px) {
    .featured-story,
    .other-stories {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    .stories-page-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .featured-story-content {
        padding: 30px 20px;
    }

    .featured-story-title {
        font-size: 1.6rem;
    }

    .featured-story-synopsis {
        font-size: 1rem;
    }

    .featured-story-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .story-item-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .story-text-container {
        padding-left: 0;
    }

    .story-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .featured-story {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .featured-story-content {
        padding: 20px 15px;
    }

    .story-item {
        border-radius: 0;
        margin-left: -20px;
        margin-right: -20px;
    }

    .story-item-container {
        padding: 15px;
    }
}

/* ================================================
   Estilos para Paginação
   ================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    gap: 12px;
}

.page-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: transparent;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #303030;
    padding: 0 12px;
}

.page-item.active {
    background-color: #feaf50;
    color: #000;
    border-color: #feaf50;
}

.page-item:hover:not(.active) {
    background-color: rgba(254, 175, 80, 0.1);
    border-color: #feaf50;
    color: #feaf50;
}

.page-item.next,
.page-item.prev {
    font-size: 16px;
}

/* ================================================
   Compatibilidade com o sistema atual
   ================================================ */
.content-section {
    padding: 40px 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

/* Grid antigo (fallback) */
.news-grid {
    display: none; /* Esconder o grid antigo quando usar o novo layout */
}

/* ================================================
   Página de Detalhes da História (preservado)
   ================================================ */
.news-detail-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.breadcrumb-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid #303030;
    color: #888;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.breadcrumb-nav-btn:hover {
    border-color: #feaf50;
    color: #feaf50;
    text-decoration: none;
}

.breadcrumb-nav-btn.disabled {
    visibility: hidden;
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.breadcrumb a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #555;
}

.breadcrumb-current {
    color: #fff;
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-detail-header {
    margin-bottom: 24px;
}

.news-detail-title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.news-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 32px;
}

.news-detail-author {
    display: flex;
    align-items: center;
}

.news-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.news-detail-featured-image {
    width: 100%;
    height: 0;
    padding-bottom: 42%;
    margin-bottom: 40px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.news-detail-featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.news-detail-content p {
    margin-bottom: 24px;
}

.news-detail-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #fff;
}

.news-detail-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #fff;
}

/* Biografia do autor */
.author-bio {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #303030;
}

.author-bio-header h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #fff;
}

.author-bio-content {
    display: flex;
    gap: 20px;
}

.author-bio-image {
    flex-shrink: 0;
}

.author-bio-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.author-bio-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d0d0d0;
}

@media (max-width: 768px) {
    .news-detail-title {
        font-size: 2rem;
    }

    .news-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .author-bio-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .news-detail-title {
        font-size: 1.6rem;
    }

    .news-detail-content {
        font-size: 1rem;
    }

    .breadcrumb-current {
        max-width: 150px;
    }
}

/* ================================================
   Navegação entre histórias (prev/next)
   ================================================ */
.story-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #303030;
}

.story-nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #303030;
    text-decoration: none;
    flex: 1;
    max-width: 45%;
    transition: border-color 0.2s ease;
}

.story-nav-link:hover {
    border-color: #feaf50;
    text-decoration: none;
}

.story-nav-link.disabled {
    visibility: hidden;
}

.story-nav-link.prev {
    align-items: flex-start;
}

.story-nav-link.next {
    align-items: flex-end;
    text-align: right;
}

.story-nav-direction {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.story-nav-title {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .story-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .story-nav-link {
        max-width: 100%;
    }

    .story-nav-link.next {
        align-items: flex-start;
        text-align: left;
    }
}