/* Resources CSS (List, News, Show pages) */

.page-container {
    padding: 4rem 0;
    min-height: 60vh;
}

.page-title,
.landing-title,
.article-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.75rem;
    text-align: center;
    line-height: 1.3;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* List Items */
.list-section {
    padding: 2rem 0;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.list-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.list-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-body .date {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.card-body h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* News Grid - Modern Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.news-grid .news-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.news-card .image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.news-card:first-child .image-wrapper {
    aspect-ratio: 16/12;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover img {
    transform: scale(1.08);
}

.news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card:first-child .news-content {
    padding: 1.75rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.news-category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(199, 91, 57, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.news-content h2,
.news-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-dark);
    font-weight: 600;
}

.news-card:first-child .news-content h2,
.news-card:first-child .news-content h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

.news-content h2 a,
.news-content h3 a {
    transition: color 0.3s ease;
}

.news-content h2 a:hover,
.news-content h3 a:hover {
    color: var(--primary);
}

.news-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
}

.news-card:first-child .news-content p {
    font-size: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

.read-more svg {
    width: 16px;
    height: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s;
}

.page-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Article Detail */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 16px var(--shadow);
    border: 1px solid var(--border);
}

.article-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.article-meta .date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-content {
    color: var(--text-body);
    line-height: 1.85;
    font-size: 1.05rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--text-body);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    line-height: 1.35;
}

.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.25rem; }
.article-content h4 { font-size: 1.1rem; }

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: var(--primary-hover);
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.5rem 1.5rem;
    line-height: 1.85;
}

.article-content li {
    margin-bottom: 0.4rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 1.75rem 0;
    padding: 1rem 1.5rem;
    background: var(--bg-cream);
    border-radius: 0 8px 8px 0;
    color: var(--text-body);
    font-style: italic;
}

.article-content img {
    width: 100%;
    max-width: 100%;
    max-height: 480px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 2rem 0;
    display: block;
}

/* Section Title - used on show.html and news.html */
.section-title {
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1.25rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Show Landing */
.show-landing {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.landing-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    line-height: 1.85;
    box-shadow: 0 2px 16px var(--shadow);
    border: 1px solid var(--border);
}

.landing-content img {
    width: 100%;
    max-width: 100%;
    max-height: 480px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 0 2rem 0;
    display: block;
}

.landing-content p {
    margin-bottom: 1.5rem;
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.85;
}

.landing-content h2,
.landing-content h3,
.landing-content h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
    line-height: 1.35;
}

.landing-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.landing-content a:hover {
    color: var(--primary-hover);
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .news-grid .news-card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .show-landing {
        padding: 0 0.5rem;
    }
}

@media (max-width: 768px) {
    /* Show page */
    .show-landing {
        padding: 0;
    }

    .landing-content {
        padding: 1.5rem;
        border-radius: 10px;
        margin-bottom: 2rem;
    }

    .landing-content img {
        max-height: 260px;
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }

    .landing-content p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .landing-content h2,
    .landing-content h3 {
        font-size: 1.15rem;
        margin: 1.25rem 0 0.5rem;
    }

    /* Article detail (news.html) */
    .article-detail {
        padding: 1.75rem;
        border-radius: 10px;
    }

    .article-header {
        padding-bottom: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .article-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .article-content img {
        max-height: 300px;
        margin: 1.5rem 0;
        border-radius: 8px;
    }

    .article-content h2 { font-size: 1.3rem; }
    .article-content h3 { font-size: 1.1rem; }
    .article-content h4 { font-size: 1rem; }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }

    /* Page container */
    .page-container {
        padding: 2.5rem 0;
    }

    /* Shared news grid */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-grid .news-card:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

    .news-card .image-wrapper {
        aspect-ratio: 16/9;
    }

    .news-content {
        padding: 1.25rem;
    }

    .news-content h2,
    .news-content h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .news-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .news-date {
        font-size: 0.8rem;
    }

    .read-more {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .landing-content {
        padding: 1.25rem 1rem;
        border-radius: 8px;
    }

    .landing-content img {
        max-height: 220px;
        border-radius: 6px;
        margin-bottom: 1.25rem;
    }

    .landing-content p {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .article-detail {
        padding: 1.25rem 1rem;
        border-radius: 8px;
    }

    .article-header {
        padding-bottom: 1rem;
        margin-bottom: 1.25rem;
    }

    .article-meta {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .article-content {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .article-content h2 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
    .article-content h3 { font-size: 1.05rem; margin: 1.25rem 0 0.5rem; }
    .article-content h4 { font-size: 0.95rem; }

    .article-content img {
        max-height: 240px;
        margin: 1.25rem 0;
        border-radius: 6px;
    }

    .article-content blockquote {
        padding: 0.875rem 1rem;
        margin: 1.25rem 0;
    }

    .page-container {
        padding: 1.75rem 0;
    }

    .news-content {
        padding: 1rem;
    }

    .news-content h2,
    .news-content h3 {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .landing-content {
        padding: 1rem 0.875rem;
    }

    .landing-content img {
        max-height: 180px;
    }

    .landing-content p {
        font-size: 0.9rem;
    }

    .article-detail {
        padding: 1rem 0.875rem;
    }

    .article-header {
        padding-bottom: 0.875rem;
        margin-bottom: 1rem;
    }

    .article-meta {
        font-size: 0.8rem;
    }

    .article-content {
        font-size: 0.9rem;
    }

    .article-content img {
        max-height: 180px;
    }

    .news-content {
        padding: 0.875rem;
    }
}

/* Mobile Fixed Footer */
.mobile-fixed-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(30, 30, 40, 0.98) 0%, rgba(20, 20, 30, 0.99) 100%);
    padding: 0.875rem 1rem;
    gap: 0.875rem;
    z-index: 999;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-entrar,
.btn-cadastrar {
    flex: 1;
    min-height: 48px;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-entrar {
    background: linear-gradient(135deg, #007bff 0%, #0056d6 100%);
    color: #fff;
}

.btn-entrar:hover,
.btn-entrar:active {
    background: linear-gradient(135deg, #0056d6 0%, #004494 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.35);
}

.btn-cadastrar {
    background: linear-gradient(135deg, #28a745 0%, #1e8a3a 100%);
    color: #fff;
}

.btn-cadastrar:hover,
.btn-cadastrar:active {
    background: linear-gradient(135deg, #1e8a3a 0%, #166b2e 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.35);
}

@media (max-width: 768px) {
    .mobile-fixed-footer {
        display: flex;
    }

    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .mobile-fixed-footer {
        padding: 0.75rem 0.875rem;
        gap: 0.625rem;
    }

    .btn-entrar,
    .btn-cadastrar {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    body {
        padding-bottom: 72px;
    }
}

@media (max-width: 360px) {
    .mobile-fixed-footer {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }

    .btn-entrar,
    .btn-cadastrar {
        min-height: 40px;
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
        font-weight: 500;
    }

    body {
        padding-bottom: 64px;
    }
}