/* -------------------------------
   Post Cards & Components
--------------------------------- */

/* Post Item Base */
.post-item {
    background: #1b1b1b;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 48px;
    animation: fadeInUp 0.5s ease forwards;
    border: 1px solid #222;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    background: #222222;
    border-color: #333;
}

/* Post Thumbnail */
.post-thumbnail {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Post Item Content - Typography */
.post-item h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #e0e0e0;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.post-item h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.post-item h2 a:hover {
    color: #D4AF37;
}

/* Post Meta */
.post-meta {
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 20px 0;
    font-weight: 300;
    letter-spacing: 0.5px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-meta .separator {
    color: #555;
}

.post-meta svg {
    flex-shrink: 0;
}

/* Post Subtitle & Excerpt */
.post-subtitle {
    font-size: 1rem;
    color: #999;
    margin: 0 0 16px 0;
    font-weight: 400;
}

.post-excerpt {
    color: #d1d1d1;
    margin: 16px 0 20px 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Read More Link */
a.read-more {
    color: #D4AF37;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

a.read-more:hover {
    text-decoration: underline;
    color: #C5A028;
}

/* Video Posts */
.post-item.video-post {
    border: 2px solid #D4AF37;
}

.video-embed a {
    display: inline-block;
    margin-top: 16px;
    background-color: #D4AF37;
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.video-embed a:hover {
    background-color: #C5A028;
}

/* -------------------------------
   News Items
--------------------------------- */

/* -------------------------------
   News Items - Horizontal Layout
--------------------------------- */

.news-item {
    background: #1b1b1b; 
    padding: 0;
    border-radius: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    animation: fadeInUp 0.5s ease forwards;
    border: 1px solid #222;
}

.news-item:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #1c1c1c 0%, #252525 100%);
    transform: translateY(-3px);
    /* border-color: rgba(212, 175, 55, 0.2); */
}

/* News Item Thumbnail - Square on left */
.news-item img {
    width: 200px; /* Wider for more presence */
    height: 100%; /* Takes full available height */
    object-fit: contain; /* Shows full image without cropping */
    border-radius: 0px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: transparent; 
}

.news-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* News Item Content - On right */
.news-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 16px; /* Add padding here */
}

/* Category/Author Badge */
.news-item-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.news-item-meta-top .category {
    color: #D4AF37;
}

.news-item-meta-top .separator {
    color: #555;
}

/* News Item Titles */
.news-item h4 {
    color: #e0e0e0;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.35;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item h4 a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item:hover h4 a {
    color: #D4AF37;
}

/* Post Meta (Date) */
.news-item .post-meta {
    font-size: 0.8rem;
    color: #777;
    margin: 4px 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* News Item Description */
.news-item p {
    color: #c0c0c0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -------------------------------
   News List Container
--------------------------------- */

#news-container {
    display: flex;
    flex-direction: column;
    gap: 0.50rem; /* Slightly larger gap for better spacing */
}

/* -------------------------------
   Widget Styling
--------------------------------- */

.widget {
    margin-bottom: 28px;
    background: linear-gradient(to bottom, #0f0f0f 0%, #151515 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #222;
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    border-color: #333;
}

.widget h2 {
    color: #ffffff; /* ← Branco como títulos de seção */
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

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

.widget ul li {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #1a1a1a;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.widget ul li a:hover {
    color: #D4AF37;
}

/* -------------------------------
   YouTube Section
--------------------------------- */

.youtube-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* YouTube Grid */
.youtube-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem; 
}

/* YouTube Card */
.youtube-card {
    text-decoration: none;
    display: block;
    transform: scale(1); 
    transition: all 0.3s ease;
}

.youtube-card:hover {
    transform: scale(1.02); 
}

.youtube-card-inner {
    background: #1a1a1a;
    border-radius: 0; /* ← Removido arredondamento (era 10px) */
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #222;
}

.youtube-card:hover .youtube-card-inner {
    transform: translateY(-3px); /* ← Reduzido de -5px */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    border-color: #333;
}

.youtube-card:hover .youtube-card-inner {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    border-color: #333;
}

/* YouTube Thumbnail */
.youtube-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 62% !important;
    overflow: hidden;
    background: #000;
    border-radius: 0; 
}

.youtube-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youtube-card:hover .youtube-thumbnail img {
    transform: scale(1.05);
}

/* Play Overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.play-overlay svg {
    fill: rgba(255, 255, 255, 0.9);
}

.youtube-card:hover .play-overlay {
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%) scale(1.1);
}

/* YouTube Content */
.youtube-content {
    padding: 14px;
}

.youtube-content h4 {
    color: #e0e0e0;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.youtube-card:hover .youtube-content h4 {
    color: #D4AF37;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #777;
    font-size: 0.8rem;
}

/* -------------------------------
   Featured Post Specific
--------------------------------- */

.featured-post {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-height: auto !important; /* Remove fixed height */
}

.featured-post .post-item {
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: hidden !important;
    width: 100% !important;
}

.featured-post .post-item:hover {
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Featured Thumbnail - Taller for more visual impact */
.featured-post .post-thumbnail {
    margin: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    padding-bottom: 75% !important; /* 4:3 aspect ratio (3/4 = 0.75) - Taller image */
}

.featured-post .post-thumbnail img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Fills space without distortion */
    object-position: center !important;
    display: block !important;
}

/* Featured Content - Text overlay at bottom */
.featured-post .post-item-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.4) 50%, transparent 100%) !important;
    padding: 16px 28px !important;
    color: #fff !important;
}

/* Featured Post Typography */
.featured-post .post-item h2 {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 4px !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
}

.featured-post .post-item h2 a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.featured-post .post-item h2 a:hover {
    color: #D4AF37 !important;
}

.featured-post .post-excerpt {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    color: #e0e0e0 !important;
    margin-top: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
/* -------------------------------
   Latest News Column (Recentes)
--------------------------------- */

.latest-news-column {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
}

.latest-news {
    background: linear-gradient(to bottom, #1a1a1a 0%, #222 100%);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    padding: 15px;
}

.latest-news ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-news ul li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: all 0.3s ease;
}

.latest-news ul li:not(:last-child) {
    border-bottom: 1px solid #333;
}

.latest-news ul li:hover {
    transform: translateX(4px);
}

.latest-news-thumbnail {
    flex-shrink: 0;
}

.latest-news-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.latest-news-content {
    flex: 1;
    min-width: 0;
}

.latest-news-content a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.latest-news-content a:hover {
    color: #D4AF37;
}

/* -------------------------------
   Post Tags
--------------------------------- */

.post-tags {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #333;
}

.post-tags strong {
    color: #D4AF37;
    margin-right: 8px;
    font-weight: 600;
}

.post-tags a {
    display: inline-block;
    background: #222;
    color: #b0b0b0;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.post-tags a:hover {
    background: #D4AF37;
    color: #000;
    border-color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* -------------------------------
   Post Navigation
--------------------------------- */

.post-navigation {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #333;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(to bottom, #1a1a1a 0%, #222 100%);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.post-navigation a:hover {
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
    background: linear-gradient(to bottom, #1c1c1c 0%, #252525 100%);
}

/* -------------------------------
   No Content Messages
--------------------------------- */

.no-posts,
.no-videos {
    color: #999;
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 0;
}

/* -------------------------------
   Responsive Adjustments
--------------------------------- */

@media (max-width: 768px) {
    .post-item {
        padding: 24px;
        margin-bottom: 32px;
    }
    
    .news-item {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }
    
    .news-item img {
        width: 100%;
        height: 200px;
    }
    
    .news-list {
        padding: 24px;
        margin-bottom: 32px;
    }
    
    .featured-post .post-item {
        padding: 24px;
    }
    
    #sidebar {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

/* -------------------------------
   Button Styles
--------------------------------- */

button,
.button,
.btn,
input[type="submit"] {
    background: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);
    border: none;
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

button:hover,
.button:hover,
.btn:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #C5A028 0%, #B8941F 100%);
}

/* Image Hover */
img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

img:hover {
    filter: brightness(1.05);
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* -------------------------------
   Animations
--------------------------------- */

/* Card Entrance Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-item,
.news-item {
    animation: fadeInUp 0.5s ease forwards;
}
/* Stagger Animation for News Items */
.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }

/* -------------------------------
   Global Title Styles - ÚNICO LUGAR
--------------------------------- */

/* Títulos de seção (Recentes, YouTube, Últimas Notícias) */
.latest-news-column h3,
.youtube-section h3,
.news-list h3 {
    font-family: 'Sora', sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #ffffff !important; /* BRANCO */
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    text-align: left !important;
    transition: color 0.3s ease !important;
    cursor: default !important;
    letter-spacing: 0.02em !important;
}

.latest-news-column h3:hover,
.youtube-section h3:hover,
.news-list h3:hover {
    color: #D4AF37 !important; /* Dourado no hover */
}

/* Título centralizado (Recentes) */
.latest-news-column h3 {
    text-align: center !important;
}

/* Título centralizado (Recentes) */
.latest-news-column h3 {
    text-align: center;
}

/* Load More Button */
#load-more-posts {
    background: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);
    border: none;
    color: #000;
    padding: 16px 48px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#load-more-posts:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, #C5A028 0%, #B8941F 100%);
}

#load-more-posts:active {
    transform: translateY(0);
}

#load-more-posts svg {
    transition: transform 0.3s ease;
}

#load-more-posts:hover svg {
    transform: translateY(3px);
}

/* Loading state */
#load-more-posts.loading {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}