/* CSS Document */

/* 
* Tavern4 - Custom CSS
* Estilos personalizados para o site de notícias
*/

/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    
    --background-color: #ffffff;
    --background-secondary: #f8f9fa;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-sm: 0.25rem;
    
    --transition: all 0.3s ease-in-out;
    
    --gaming-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-gradient: linear-gradient(135deg, #ffc107, #fd7e14);
}

/* ==================== GLOBAL STYLES ==================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #1a1a1a;
    scroll-behavior: smooth;
}

/* Skip to content for accessibility */
.visually-hidden-focusable:focus {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1030;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    margin: 0.5rem;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
}

/* Ensure page titles are always visible on homepage */
.main-content .container h1,
.main-content .container h2,
.main-content h1.h2,
body:not(.news-page) .container h1,
body:not(.news-page) .container h2 {
    color: #ffffff !important;
    text-shadow: none !important;
}

/* Dark mode override for main content titles */
@media (prefers-color-scheme: dark) {
    .main-content .container h1,
    .main-content .container h2,
    .main-content h1.h2,
    body:not(.news-page) .container h1,
    body:not(.news-page) .container h2 {
        color: #ffffff !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    }
}

/* Specific rule for homepage main titles */
.container .row .mb-4 h1,
.container .row .mb-4 h2,
.container .my-5 h1,
.container .my-5 h2 {
    color: #ffffff !important;
    background: transparent !important;
}

/* Dark mode for specific homepage titles */
@media (prefers-color-scheme: dark) {
    .container .row .mb-4 h1,
    .container .row .mb-4 h2,
    .container .my-5 h1,
    .container .my-5 h2 {
        color: #ffffff !important;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: white;
}

.hero-summary {
    font-size: 1.2rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.9);
}

/* ==================== HEADER & NAVIGATION ==================== */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    height: calc(60vh - 50px);
    min-height: 350px;
    overflow: hidden;
}

.hero-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
}

.hero-content {
    color: white;
    z-index: 2;
}

.hero-meta {
    margin: 1rem 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* ==================== CARDS ==================== */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
    width: 100%;
}

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

.card-body {
    padding: 1.5rem;
}

.card-title a {
    color: white !important;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.card-title a:hover {
    color: var(--primary-color) !important;
}

.card-footer-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Clickable card overlay */
.card-clickable {
    position: relative;
    cursor: pointer;
}

.card-clickable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.card-clickable .card-title a,
.card-clickable .btn {
    position: relative;
    z-index: 2;
}

/* Homepage cards text colors - only apply to cards in homepage */
.container .row-cols-1 .card .card-text,
.container .news-grid .card .card-text {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.5;
}

.container .row-cols-1 .card .card-footer-info .text-muted,
.container .news-grid .card .card-footer-info .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.container .row-cols-1 .card .card-footer-info .small,
.container .news-grid .card .card-footer-info .small {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* News page content - keep normal colors */
.article-content {
    color: var(--text-color);
    line-height: 1.7;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2, 
.article-content h3, 
.article-content h4 {
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Lead text (subtitle) in news page */
.lead {
    color: var(--text-muted) !important;
    font-size: 1.125rem;
    font-weight: 400;
}

/* ==================== BADGES ==================== */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: var(--border-radius-sm);
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: var(--dark-color) !important;
}

/* ==================== BUTTONS ==================== */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.btn-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-floating.show {
    opacity: 1;
    visibility: visible;
}

.btn-floating:hover {
    transform: translateY(-3px);
}

/* ==================== PAGINATION ==================== */
.pagination {
    --bs-pagination-border-radius: var(--border-radius);
    --bs-pagination-color: var(--primary-color);
    --bs-pagination-hover-color: white;
    --bs-pagination-hover-bg: var(--primary-color);
    --bs-pagination-active-bg: var(--primary-color);
    --bs-pagination-active-border-color: var(--primary-color);
}

.page-link {
    transition: var(--transition);
}

.page-link:hover {
    transform: translateY(-1px);
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--dark-color) !important;
}

footer h5, footer h6 {
    color: var(--warning-color) !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==================== FORMS ==================== */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Password toggle button styling */
.input-group .btn {
    border-left: none;
    z-index: 3;
}

.input-group .form-control {
    border-right: none;
    z-index: 2;
}

.input-group .form-control:focus {
    border-right: none;
    box-shadow: none;
}

.input-group .form-control:focus + .btn {
    border-color: var(--primary-color);
}

/* Remove duplicate password visibility icons from browsers */
.form-control[type="password"]::-ms-reveal,
.form-control[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
}

/* Ensure consistent styling for password toggle buttons */
.input-group .btn-outline-secondary {
    color: #6c757d;
    border-color: #ced4da;
}

.input-group .btn-outline-secondary:hover {
    color: #495057;
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.input-group .btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* Password toggle button improvements */
.password-toggle {
    min-width: 2.5rem !important;
    position: relative;
    background-color: #f8f9fa !important;
    border-color: #ced4da !important;
    color: #495057 !important;
    cursor: pointer;
}

.password-toggle i {
    font-size: 1.1rem !important;
    transition: all 0.2s ease;
    color: #495057 !important;
}

.password-toggle:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #212529 !important;
    transform: none !important;
}

.password-toggle:hover i {
    transform: scale(1.1);
    color: #212529 !important;
}

.password-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
    border-color: var(--primary-color) !important;
    outline: none;
}

.password-toggle:active {
    background-color: #dee2e6 !important;
    border-color: #adb5bd !important;
}

/* Dark theme adjustments for auth pages */
@media (prefers-color-scheme: dark) {
    .password-toggle {
        background-color: #2a2a2a !important;
        border-color: #444 !important;
        color: #e0e0e0 !important;
    }
    
    .password-toggle i {
        color: #e0e0e0 !important;
    }
    
    .password-toggle:hover {
        background-color: #3a3a3a !important;
        border-color: #555 !important;
        color: #f0f0f0 !important;
    }
    
    .password-toggle:hover i {
        color: #f0f0f0 !important;
    }
    
    .password-toggle:active {
        background-color: #1a1a1a !important;
        border-color: #333 !important;
    }
}

/* ==================== DROPDOWNS ==================== */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.dropdown-item.active {
    background-color: var(--primary-color);
}

/* ==================== UTILITIES ==================== */
.text-decoration-none {
    text-decoration: none !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* ==================== LOADING ANIMATIONS ==================== */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1300px;
    }
    .hero-section {
        height: calc(65vh - 70px);
        min-height: 360px;
    }
}

/* Medium screens */
@media (max-width: 991.98px) {
    .hero-section {
        height: calc(55vh - 50px);
        min-height: 320px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .card-img-top {
        height: 200px;
    }
    .navbar-nav {
        padding-top: 1rem;
    }
    .social-links {
        margin-top: 2rem;
    }
}

/* Small screens */
@media (max-width: 767.98px) {
    .hero-section {
        height: calc(50vh - 50px);
        min-height: 300px;
    }
    .hero-content {
        text-align: center;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-summary {
        font-size: 0.9rem;
    }
    .card-img-top {
        height: 180px;
    }
    .card-body {
        padding: 1rem;
    }
    .btn-floating {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    .pagination {
        font-size: 0.875rem;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
    }
    .logo-img {
        height: 35px;
    }
}

/* Extra small screens */
@media (max-width: 575.98px) {
    .hero-section {
        height: 35vh;
        min-height: 250px;
    }
    .hero-title {
        font-size: 1.3rem;
    }
    .card-img-top {
        height: 150px;
    }
    .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    .navbar-brand {
        font-size: 1.3rem;
    }
    .navbar-brand img {
        height: 35px !important;
    }
    .logo-img {
        height: 30px;
    }
}

/* ==================== DARK MODE SUPPORT ==================== */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #121212;
        --background-secondary: #1e1e1e;
        --text-color: #ffffff;
        --text-muted: #b0b0b0;
        --border-color: #333333;
    }
    
    .card {
        background-color: var(--background-secondary);
        border: 1px solid var(--border-color);
    }
    
    .form-control {
        background-color: var(--background-secondary);
        border-color: var(--border-color);
        color: var(--text-color);
    }
    
    .dropdown-menu {
        background-color: var(--background-secondary);
        border: 1px solid var(--border-color);
    }
    
    .dropdown-item {
        color: var(--text-color);
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .navbar,
    .carousel,
    .btn-floating,
    footer,
    .pagination {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .hero-section {
        height: auto !important;
        min-height: auto !important;
    }
    
    .hero-overlay {
        background: none !important;
    }
    
    .hero-content {
        color: black !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
    
    .col {
        page-break-inside: avoid;
    }
}

/* ==================== ACCESSIBILITY IMPROVEMENTS ==================== */

/* Focus styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Remove focus outline for buttons in newsletter forms to prevent yellow partial outline */
.newsletter-form button:focus,
footer .newsletter-form button:focus,
body.news-page footer .newsletter-form button:focus {
    outline: none !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --text-color: #000000;
        --background-color: #ffffff;
        --border-color: #000000;
    }
    
    .card {
        border: 2px solid var(--border-color);
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .carousel {
        animation: none;
    }
}

/* ==================== PERFORMANCE OPTIMIZATIONS ==================== */

/* Hardware acceleration for animations */
.card,
.btn,
.btn-floating,
.carousel-item,
.nav-link::after {
    will-change: transform;
    transform: translateZ(0);
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

.card-img-top {
    object-fit: cover;
    object-position: center;
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ==================== ADDITIONAL COMPONENTS ==================== */

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alert styles */
.alert {
    border-radius: var(--border-radius-lg);
    border: none;
    padding: 1rem 1.5rem;
}

/* Modal improvements */
.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Table styles */
.table {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

/* ==================== ANIMATION CLASSES ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.hover-grow {
    transition: var(--transition);
}

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

.hover-shadow {
    transition: var(--transition);
}

.hover-shadow:hover {
    box-shadow: var(--shadow-lg);
}

/* ==================== CUSTOM STYLES ==================== */

/* Logo gradient text */
.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

/* Logo Image */
.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Top Bar */
.top-bar {
    background: var(--dark-color) !important;
    border-bottom: 2px solid var(--warning-color);
}

.top-bar .navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 700;
    transition: all 0.3s ease;
}

.top-bar .navbar-brand:hover {
    transform: scale(1.05);
}

.top-bar .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.top-bar .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    color: white;
}

.top-bar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Main Header (Categories) */
.main-header {
    background: #000000 !important;
    background-color: #000000 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header .navbar-nav {
    gap: 0.5rem;
}

.main-header .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-header .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateY(-2px);
}

.main-header .nav-link i {
    color: var(--warning-color);
    font-size: 0.9rem;
}

/* Slogan Bar */
.slogan-bar {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.slogan-bar .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Language Selector */
.language-selector .dropdown-toggle {
    min-width: 80px;
    font-size: 0.875rem;
}

.language-selector .dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

/* Buttons */
.btn-outline-light:hover {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--dark-color);
}

/* Cards */
.card {
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    transition: transform 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    position: relative;
}

.hero-image {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-summary {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

footer h5, footer h6 {
    color: var(--warning-color) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--warning-color) !important;
}

/* Utility Classes */
.bg-gaming {
    background: var(--gaming-gradient) !important;
}

.gaming-theme {
    background-color: #f8f9fa;
}

/* Search Highlight */
.search-highlight {
    background-color: rgba(255, 193, 7, 0.3);
    padding: 0.1rem 0.2rem;
    border-radius: 0.2rem;
}

/* ==================== NEWS PAGE SPECIFIC STYLES ==================== */

/* Dark theme for news page */
body.news-page {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

body.news-page .container {
    background-color: #1a1a1a;
}

/* News page main content area */
body.news-page main {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Article content styling for dark theme with better typography */
body.news-page .article-content {
    color: #ffffff !important;
    background-color: #1a1a1a;
    padding: 1rem 0; /* Reduced horizontal padding */
    margin: 2rem 0;
    border-radius: 8px;
}

body.news-page .article-content p {
    color: #ffffff !important; /* Pure white for better contrast */
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem; /* Slightly reduced from 1.1rem */
    font-family: 'Inter', 'Open Sans', 'Lato', 'Roboto', 'Helvetica Neue', Arial, sans-serif; /* Popular reading fonts */
    font-weight: 300; /* Lighter weight for better readability */
    margin-left: 0 !important; /* Remove left margin */
    margin-right: 0 !important; /* Remove right margin */
    padding-left: 0 !important; /* Remove left padding */
    padding-right: 0 !important; /* Remove right padding */
}

/* Ensure all article content has no excessive margins */
body.news-page .article-content > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Article headings with better contrast */
body.news-page .article-content h2,
body.news-page .article-content h3,
body.news-page .article-content h4,
body.news-page .article-content h5,
body.news-page .article-content h6 {
    color: #ffffff !important; /* Pure white headings */
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Lists in article content */
body.news-page .article-content ul,
body.news-page .article-content ol {
    color: #ffffff !important;
    margin-left: 1.5rem !important; /* Only minimal left margin for lists */
    margin-right: 0 !important;
    font-family: 'Inter', 'Open Sans', 'Lato', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Consistent lighter weight */
}

body.news-page .article-content li {
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    line-height: 1.8;
    font-weight: 300; /* Consistent lighter weight */
}

/* Blockquotes in article content */
body.news-page .article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-style: italic;
    color: #ffffff !important;
    font-family: 'Inter', 'Open Sans', 'Lato', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Consistent lighter weight */
}

/* News page title */
body.news-page .display-5 {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* News page subtitle/lead */
body.news-page .lead {
    color: #cccccc !important;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* Breadcrumb for dark theme */
body.news-page .breadcrumb {
    background-color: #2d2d2d !important;
}

body.news-page .breadcrumb-item a {
    color: #ffffff !important;
}

body.news-page .breadcrumb-item.active {
    color: #cccccc !important;
}

/* Article meta information */
body.news-page .article-meta {
    color: #cccccc !important;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Social share buttons */
body.news-page .social-share {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

/* Author bio section */
body.news-page .author-bio {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

body.news-page .author-bio h5,
body.news-page .author-bio h6 {
    color: #ffffff !important;
}

body.news-page .author-bio p {
    color: #e0e0e0 !important;
}

/* Tags section */
body.news-page .article-tags {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-top: 1px solid #444 !important;
}

body.news-page .article-tags h6 {
    color: #ffffff !important;
}

/* Sidebar styling for news page */
body.news-page aside {
    background-color: #1a1a1a;
}

body.news-page .related-news h4 {
    color: #ffffff !important;
}

body.news-page .list-group-item {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
    color: #ffffff !important;
}

body.news-page .list-group-item a {
    color: #ffffff !important;
}

body.news-page .list-group-item .text-muted {
    color: #cccccc !important;
}

/* Table of contents */
body.news-page .table-of-contents {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

body.news-page .table-of-contents h5 {
    color: #ffffff !important;
}

body.news-page .table-of-contents a {
    color: #cccccc !important;
}

body.news-page .table-of-contents a:hover {
    color: var(--primary-color) !important;
}

/* Figure captions */
body.news-page figcaption {
    color: #cccccc !important;
}

/* ==================== NEWS PAGE FOOTER OVERRIDE ==================== */

/* Ensure footer maintains original colors on news pages - override news-page global styles */
body.news-page footer {
    background: var(--dark-color) !important;
    color: inherit !important;
}

/* Override container background inside footer specifically */
body.news-page footer .container {
    background-color: transparent !important;
    background: transparent !important;
}

body.news-page footer h5, 
body.news-page footer h6 {
    color: var(--warning-color) !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

body.news-page footer p {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.6;
}

body.news-page footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
}

body.news-page footer a:hover {
    color: var(--warning-color) !important;
}

body.news-page footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.news-page footer .social-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

body.news-page footer .social-links a:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Language selector in footer for news pages */
body.news-page footer .language-selector .dropdown-toggle {
    color: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body.news-page footer .language-selector .dropdown-toggle:hover {
    color: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
}

/* Ensure active language is properly highlighted in news pages */
body.news-page footer .language-selector .dropdown-toggle.active,
body.news-page footer .language-selector .dropdown-item.active,
body.news-page footer .language-selector-footer .text-warning {
    color: var(--warning-color) !important;
    background-color: transparent !important;
}

/* Ensure inactive languages remain white */
body.news-page footer .language-selector-footer .text-light {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Override any dark backgrounds that might be inherited inside footer */
body.news-page footer *:not(.btn),
body.news-page footer .row,
body.news-page footer .col,
body.news-page footer .col-md-3,
body.news-page footer .col-md-6,
body.news-page footer .col-md-12,
body.news-page footer div:not(.btn) {
    background-color: transparent !important;
    background: transparent !important;
}

/* Ensure btn-warning keeps its proper background in footer */
body.news-page footer .btn-warning {
    background-color: var(--warning-color) !important;
    background: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
    color: #000 !important;
    box-shadow: none !important;
}

body.news-page footer .btn-warning:hover {
    background-color: #e0a800 !important;
    background: #e0a800 !important;
    border-color: #d39e00 !important;
    color: #000 !important;
    box-shadow: none !important;
}

body.news-page footer .btn-warning:focus {
    background-color: var(--warning-color) !important;
    background: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
    color: #000 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Ensure all footer content inherits proper colors - exclude buttons */
body.news-page footer .container *:not(.btn):not(.btn-warning):not(button) {
    background-color: inherit !important;
}

/* ==================== NEWS PAGE HEADER FIXES ==================== */

/* Make entire header black on news pages */
body.news-page .top-bar {
    background-color: #000000 !important;
}

body.news-page .main-header {
    background: #000000 !important;
    background-color: #000000 !important;
}

body.news-page .main-header .navbar {
    background-color: #000000 !important;
}

body.news-page .slogan-bar {
    background-color: #000000 !important;
    background: #000000 !important;
}

body.news-page .slogan-bar .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Override any gradient or colored backgrounds in header */
body.news-page .bg-primary:not(.badge),
body.news-page .bg-info:not(.badge) {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* Ensure badges keep their proper colors */
body.news-page .badge.bg-primary {
    background-color: var(--primary-color) !important;
    background: var(--primary-color) !important;
    color: white !important;
}

/* Ensure navigation links are visible on black background */
body.news-page .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.news-page .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* ==================== NEWS PAGE BREADCRUMB FIXES ==================== */

/* Light breadcrumb for news pages - be very specific to avoid affecting header/footer */
body.news-page nav[aria-label="breadcrumb"] {
    background-color: #f8f9fa !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 0.5rem 0 !important;
    min-height: auto !important;
}

body.news-page nav[aria-label="breadcrumb"] .container {
    background-color: transparent !important;
    background: transparent !important;
}

body.news-page nav[aria-label="breadcrumb"] .breadcrumb {
    background-color: transparent !important;
    background: transparent !important;
    margin-bottom: 0 !important;
    padding: 0.5rem 0 !important;
    border-radius: 0 !important;
}

body.news-page nav[aria-label="breadcrumb"] .breadcrumb-item {
    color: #495057 !important;
    background: transparent !important;
    background-color: transparent !important;
}

body.news-page nav[aria-label="breadcrumb"] .breadcrumb-item a {
    color: #007bff !important;
    text-decoration: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

body.news-page nav[aria-label="breadcrumb"] .breadcrumb-item a:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
    background: transparent !important;
    background-color: transparent !important;
}

body.news-page nav[aria-label="breadcrumb"] .breadcrumb-item.active {
    color: #6c757d !important;
    background: transparent !important;
    background-color: transparent !important;
}

body.news-page nav[aria-label="breadcrumb"] .breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* ==================== NEWS SECTION DESCRIPTION ==================== */
.all-news-description {
    font-size: 0.9rem;
    color: #495057 !important;
    line-height: 1.5;
    max-width: none;
    margin: 0;
    font-weight: 400;
    text-shadow: none !important;
    text-align: center;
}

/* Ensure dark colors override any theme */
@media (prefers-color-scheme: dark) {
    .all-news-description {
        color: #495057 !important;
        background-color: transparent !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .all-news-description {
        font-size: 0.8rem;
    }
}

/* AdSense Container */
.adsense-container {
    text-align: center;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .adsense-container {
        margin: 1.5rem 0;
    }
}

/* ==================== NEWSLETTER SIDEBAR ==================== */

/* Newsletter box in news page sidebar - use same blue as category badges - high specificity */
section.newsletter-sidebar.bg-primary.text-white,
.newsletter-sidebar.bg-primary.text-white,
body.news-page section.newsletter-sidebar.bg-primary,
body.news-page .newsletter-sidebar.bg-primary,
section.newsletter-sidebar.bg-primary {
    background-color: #0d6efd !important; /* Explicit blue color */
    background: #0d6efd !important;
    border: none !important;
}

/* Override any Bootstrap bg-primary that might interfere */
body.news-page .bg-primary:not(.badge):not(.btn) {
    background-color: #0d6efd !important;
    background: #0d6efd !important;
}

.newsletter-sidebar h5 {
    color: white !important;
}

.newsletter-sidebar p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.newsletter-sidebar .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.newsletter-sidebar .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-sidebar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-sidebar .btn-light {
    background-color: white;
    border-color: white;
    color: #0d6efd;
    font-weight: 500;
}

.newsletter-sidebar .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: #0d6efd;
    transform: translateY(-1px);
}

/* ==================== IMPROVED ARTICLE CONTENT STYLING ==================== */

/* Article content styling for dark theme with better typography */
body.news-page .article-content {
    color: #ffffff !important;
    background-color: #1a1a1a;
    padding: 1rem 0; /* Reduced horizontal padding */
    margin: 2rem 0;
    border-radius: 8px;
}

body.news-page .article-content p {
    color: #ffffff !important; /* Pure white for better contrast */
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem; /* Slightly reduced from 1.1rem */
    font-family: 'Inter', 'Open Sans', 'Lato', 'Roboto', 'Helvetica Neue', Arial, sans-serif; /* Popular reading fonts */
    font-weight: 300; /* Lighter weight for better readability */
    margin-left: 0 !important; /* Remove left margin */
    margin-right: 0 !important; /* Remove right margin */
    padding-left: 0 !important; /* Remove left padding */
    padding-right: 0 !important; /* Remove right padding */
}

/* Ensure all article content has no excessive margins */
body.news-page .article-content > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Article headings with better contrast */
body.news-page .article-content h2,
body.news-page .article-content h3,
body.news-page .article-content h4,
body.news-page .article-content h5,
body.news-page .article-content h6 {
    color: #ffffff !important; /* Pure white headings */
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Lists in article content */
body.news-page .article-content ul,
body.news-page .article-content ol {
    color: #ffffff !important;
    margin-left: 1.5rem !important; /* Only minimal left margin for lists */
    margin-right: 0 !important;
    font-family: 'Inter', 'Open Sans', 'Lato', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Consistent lighter weight */
}

body.news-page .article-content li {
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    line-height: 1.8;
    font-weight: 300; /* Consistent lighter weight */
}

/* Blockquotes in article content */
body.news-page .article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-style: italic;
    color: #ffffff !important;
    font-family: 'Inter', 'Open Sans', 'Lato', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Consistent lighter weight */
}

/* ==================== NEWS ARTICLE IMAGE SIZE CONSTRAINTS ==================== */

/* Main news article image (banner/thumb at top) - size constraints */
body.news-page figure img,
body.news-page .article-content figure img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 500px !important; /* Maximum height */
    min-height: 200px !important; /* Minimum height */
    min-width: 300px !important; /* Minimum width */
    object-fit: cover !important; /* Maintain aspect ratio */
    object-position: center !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Ensure images are responsive on smaller screens */
@media (max-width: 768px) {
    body.news-page figure img,
    body.news-page .article-content figure img {
        min-width: 100% !important; /* Full width on mobile */
        min-height: 150px !important; /* Smaller min height on mobile */
        max-height: 300px !important; /* Smaller max height on mobile */
    }
}

/* Figure styling */
body.news-page figure {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
}

body.news-page figcaption {
    color: #cccccc !important;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* ======================================
   CONTENT IMAGES STYLES
   Estilos para imagens dentro do conteúdo
   ====================================== */

/* Wrapper das imagens de conteúdo */
.content-image-wrapper {
    margin: 2.5rem 0; /* Increased margin for better spacing */
    padding: 0;
    text-align: center;
}

/* Imagens de conteúdo */
.content-image {
    max-height: 500px;
    min-height: 200px;
    min-width: 300px;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.content-image-caption {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0;
    line-height: 1.4;
    padding: 0 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Extra spacing div after content images */
.content-image-spacer {
    height: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Content Images Management Interface */
.content-image-upload {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    background-color: #f8f9fa;
}

.content-image-upload:hover {
    border-color: #0d6efd;
}

.content-image-upload.dragover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.content-image-preview {
    max-width: 200px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* Content Images List in Editor */
.content-images-list {
    max-height: 400px;
    overflow-y: auto;
}

.content-image-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 0.5rem;
}

.content-image-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-image-item img {
    width: 50px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.content-image-info {
    flex-grow: 1;
}

.content-image-position {
    font-weight: 600;
    color: #0d6efd;
    font-size: 0.85rem;
}

.content-image-caption-preview {
    color: #6c757d;
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 0.25rem;
}

.content-image-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-content-image {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-image {
        max-height: 400px;
        min-height: 150px;
        min-width: 250px;
    }
    
    .content-image-wrapper {
        margin: 2rem 0;
    }
    
    .content-image-caption {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    
    .content-image-item {
        padding: 0.75rem;
    }
    
    .content-image-item img {
        width: 40px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .content-image {
        max-height: 300px;
        min-height: 120px;
        min-width: 200px;
    }
    
    .content-image-upload {
        padding: 1.5rem 1rem;
    }
}

/* Loading animation for content images */
.content-image-loading {
    position: relative;
    display: inline-block;
}

.content-image-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== CONTENT VIDEOS STYLES ==================== */

/* Content Video Wrapper */
.content-video-wrapper {
    margin: 2rem 0;
    padding: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: transparent;
}

/* Twitter/X Embed Container */
.twitter-embed-container {
    position: relative;
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.twitter-iframe-container {
    position: relative;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.twitter-iframe-container iframe {
    border: none;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #ffffff;
    transition: opacity 0.3s ease-in-out;
}

/* Twitter Widget Fallback */
.twitter-widget-fallback {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    text-align: center;
}

.twitter-widget-fallback .twitter-tweet {
    margin: 0 auto;
    max-width: 100%;
}

/* Twitter Direct Link */
.twitter-direct-link {
    text-align: center;
    padding: 0.5rem;
}

.twitter-direct-link .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.twitter-direct-link .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Content Video Caption */
.content-video-caption {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-top: 0.75rem;
    padding: 0 1rem;
    text-align: center;
}

/* Content Video Spacer */
.content-video-spacer {
    height: 1rem;
    clear: both;
}

/* Dark mode adjustments for news pages */
body.news-page .twitter-embed-container {
    background: #2d3748;
    border: 1px solid #4a5568;
}

body.news-page .twitter-iframe-container {
    background: #2d3748;
}

body.news-page .twitter-widget-fallback {
    background: #2d3748;
    color: #e2e8f0;
}

body.news-page .content-video-caption {
    color: #a0aec0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-video-wrapper {
        margin: 1.5rem 0;
    }
    
    .twitter-iframe-container iframe {
        min-height: 300px;
    }
    
    .content-video-caption {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .content-video-wrapper {
        margin: 1rem 0;
    }
    
    .twitter-iframe-container iframe {
        min-height: 250px;
    }
    
    .twitter-direct-link .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Loading state for Twitter embeds */
.twitter-iframe-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 2px solid #e2e8f0;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* Error state for Twitter embeds */
.twitter-iframe-container.error {
    background: #fed7d7;
    border: 1px solid #fc8181;
    color: #c53030;
    text-align: center;
    padding: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.twitter-iframe-container.error::before {
    content: '⚠️ Erro ao carregar o conteúdo do X/Twitter';
    font-size: 1rem;
    font-weight: 500;
}

/* ==================== CONTENT POSTS STYLES ==================== */

/* Content Post Wrapper */
.content-post-wrapper {
    margin: 2rem 0;
    padding: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: transparent;
}

/* Social Media Embed Containers */
.facebook-embed-container,
.instagram-embed-container,
.reddit-embed-container,
.linkedin-embed-container,
.tiktok-embed-container {
    position: relative;
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    padding: 1rem;
}

/* Facebook Embed Styles */
.facebook-embed-container iframe {
    border: none;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #ffffff;
    border-radius: var(--border-radius-sm);
}

/* Instagram Embed Styles */
.instagram-embed-container .instagram-media {
    margin: 0 auto !important;
    max-width: 540px !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Reddit Embed Styles */
.reddit-embed-container .reddit-embed-bq {
    margin: 0 auto;
    max-width: 100%;
    border-radius: var(--border-radius);
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

/* LinkedIn Embed Styles */
.linkedin-embed-container iframe {
    border: none;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #ffffff;
    border-radius: var(--border-radius-sm);
}

/* TikTok Embed Styles */
.tiktok-embed-container .tiktok-embed {
    margin: 0 auto;
    max-width: 605px;
    border-radius: var(--border-radius);
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

/* Social Direct Link */
.social-direct-link {
    text-align: center;
    padding: 0.5rem;
}

.social-direct-link .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    text-decoration: none;
}

.social-direct-link .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Platform-specific button colors */
.social-direct-link .btn i.bi-twitter,
.social-direct-link .btn i.fab.fa-twitter {
    color: #1da1f2;
}

.social-direct-link .btn i.bi-facebook,
.social-direct-link .btn i.fab.fa-facebook {
    color: #1877f2;
}

.social-direct-link .btn i.bi-instagram,
.social-direct-link .btn i.fab.fa-instagram {
    color: #e4405f;
}

.social-direct-link .btn i.bi-reddit,
.social-direct-link .btn i.fab.fa-reddit {
    color: #ff4500;
}

.social-direct-link .btn i.bi-linkedin,
.social-direct-link .btn i.fab.fa-linkedin {
    color: #0077b5;
}

.social-direct-link .btn i.fab.fa-tiktok {
    color: #000000;
}

/* Content Post Caption */
.content-post-caption {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-top: 0.75rem;
    padding: 0 1rem;
    text-align: center;
}

/* Content Post Spacer */
.content-post-spacer {
    height: 1rem;
    clear: both;
}

/* Dark mode adjustments for news pages */
body.news-page .facebook-embed-container,
body.news-page .instagram-embed-container,
body.news-page .reddit-embed-container,
body.news-page .linkedin-embed-container,
body.news-page .tiktok-embed-container {
    background: #2d3748;
    border: 1px solid #4a5568;
}

body.news-page .content-post-caption {
    color: #a0aec0;
}

body.news-page .reddit-embed-bq {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #e2e8f0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-post-wrapper {
        margin: 1.5rem 0;
    }
    
    .facebook-embed-container,
    .instagram-embed-container,
    .reddit-embed-container,
    .linkedin-embed-container,
    .tiktok-embed-container {
        padding: 0.75rem;
    }
    
    .facebook-embed-container iframe,
    .linkedin-embed-container iframe {
        min-height: 250px;
    }
    
    .content-post-caption {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .instagram-embed-container .instagram-media {
        max-width: 100% !important;
    }
    
    .tiktok-embed-container .tiktok-embed {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .content-post-wrapper {
        margin: 1rem 0;
    }
    
    .facebook-embed-container iframe,
    .linkedin-embed-container iframe {
        min-height: 200px;
    }
    
    .social-direct-link .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Loading state for social embeds */
.facebook-embed-container.loading::before,
.instagram-embed-container.loading::before,
.reddit-embed-container.loading::before,
.linkedin-embed-container.loading::before,
.tiktok-embed-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 2px solid #e2e8f0;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* Error state for social embeds */
.facebook-embed-container.error,
.instagram-embed-container.error,
.reddit-embed-container.error,
.linkedin-embed-container.error,
.tiktok-embed-container.error {
    background: #fed7d7;
    border: 1px solid #fc8181;
    color: #c53030;
    text-align: center;
    padding: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facebook-embed-container.error::before {
    content: '⚠️ Erro ao carregar o post do Facebook';
    font-size: 1rem;
}

.instagram-embed-container.error::before {
    content: '⚠️ Erro ao carregar o post do Instagram';
    font-size: 1rem;
}

.reddit-embed-container.error::before {
    content: '⚠️ Erro ao carregar o post do Reddit';
    font-size: 1rem;
}

.linkedin-embed-container.error::before {
    content: '⚠️ Erro ao carregar o post do LinkedIn';
    font-size: 1rem;
}

.tiktok-embed-container.error::before {
    content: '⚠️ Erro ao carregar o vídeo do TikTok';
    font-size: 1rem;
}

/* ==================== CATEGORY PAGE STYLES ==================== */

/* Category page background - aggressive override */
body.category-page,
body.category-page *:not(.card):not(.btn):not(.badge):not(.navbar):not(.navbar-nav):not(.nav-link):not(.dropdown-menu):not(.pagination):not(.page-link) {
    background-color: #2d3748 !important;
    color: #ffffff !important;
}

body.category-page main,
body.category-page main * {
    background-color: #2d3748 !important;
}

body.category-page .main-content {
    background-color: #2d3748 !important;
    min-height: calc(100vh - 200px);
}

/* Force dark background on all category page sections */
body.category-page section,
body.category-page section.py-5,
body.category-page section.bg-light,
body.category-page .container,
body.category-page .row,
body.category-page .col,
body.category-page .col-12 {
    background-color: #2d3748 !important;
}

body.category-page .container {
    background-color: transparent;
}

/* Ensure cards are visible on dark background */
body.category-page .card {
    background-color: #4a5568;
    border: 1px solid #68737d;
    color: #ffffff;
}

body.category-page .card:hover {
    background-color: #525f73;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.category-page .card-title a {
    color: #ffffff !important;
}

body.category-page .card-text {
    color: #e2e8f0;
}

body.category-page .text-muted {
    color: #a0aec0 !important;
}

/* Breadcrumb on category pages */
body.category-page nav[aria-label="breadcrumb"] {
    background-color: #1a202c;
}

body.category-page .breadcrumb-item a {
    color: #63b3ed;
}

body.category-page .breadcrumb-item.active {
    color: #e2e8f0;
}

/* Category header styling */
body.category-page .category-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-bottom: 3px solid var(--primary-color);
}

body.category-page .category-header h1 {
    color: #000000 !important;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

/* Pagination on category pages */
body.category-page .pagination .page-link {
    background-color: #4a5568;
    border-color: #68737d;
    color: #ffffff;
}

body.category-page .pagination .page-link:hover {
    background-color: #525f73;
    border-color: #7c8794;
    color: #ffffff;
}

body.category-page .pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 4-column layout for news grid on large screens */
@media (min-width: 1200px) {
    .news-grid-4col .row-cols-lg-3 {
        --bs-columns: 4;
    }
    
    .news-grid-4col .col-lg-4 {
        flex: 0 0 auto;
        width: 25%;
        max-width: 325px; /* Increased from 300px to accommodate 1300px width */
    }
    
    /* 4-column layout for index.php grid */
    .row.row-cols-xl-4 .col {
        max-width: 325px; /* ~325px each column for 1300px total */
    }
    
    /* Adjust card heights for 4-column layout */
    .news-grid-4col .card-img-top,
    .row.row-cols-xl-4 .card-img-top {
        height: 180px;
        object-fit: cover;
    }
    
    .news-grid-4col .card-body,
    .row.row-cols-xl-4 .card-body {
        padding: 1rem;
        min-height: 120px;
    }
    
    .news-grid-4col .card-title,
    .row.row-cols-xl-4 .card-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .news-grid-4col .card-text,
    .row.row-cols-xl-4 .card-text {
        font-size: 0.875rem;
        line-height: 1.4;
    }
}


