/* -------------------------------
   Base Styling
--------------------------------- */

/* Body */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #1a1a1a 0%, #121212 100%);
    background-attachment: fixed;
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    max-width: 100%;
}

/* HTML element */
html {
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    max-width: 100%;
}

/* Container with 12-column grid system */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: hidden; /* Prevent horizontal scroll */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* -------------------------------
   Header Styling
--------------------------------- */

/* Header */
#site-header {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    height: auto;
}

/* Header Inner Layout */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

/* Logo */
.site-brand img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.site-brand img:hover {
    transform: scale(1.05);
}

/* Left Area Adjustments */
.left-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo Text */
.logo-text {
    color: #D4AF37;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-text:hover {
    color: #C5A028;
}

/* Search Form Styling */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
}

.header-search form {
    margin: 0;
}

.header-search input[type="search"],
.header-search input[type="text"] {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 16px;
    color: #e0e0e0;
    font-size: 0.9rem;
    width: 240px; 
}

.header-search input[type="search"]:focus,
.header-search input[type="text"]:focus {
    outline: none;
    border-color: #D4AF37;
    background: rgba(26, 26, 26, 1);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* YouTube Link Icon */
.right-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.right-area a {
    transition: all 0.3s ease;
}

.right-area a:hover {
    transform: translateY(-2px);
}

.right-area a svg {
    transition: all 0.3s ease;
}

.right-area a:hover svg {
    filter: brightness(1.2);
}

/* -------------------------------
   Navigation Menu Styling
--------------------------------- */

/* Main Navigation */
#main-nav {
    display: none;
    flex-direction: column;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Active Menu (when toggled by JS) */
#main-nav.active {
    display: flex;
}

/* Menu Items */
#main-nav .menu {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

#main-nav .menu li {
    display: inline;
}

/* Separator Between Menu Items */
#main-nav .menu li:not(:last-child)::after {
    content: "|";
    margin: 0 10px;
    color: #555;
}

/* Menu Links */
#main-nav .menu li a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 5px 10px;
    transition: all 0.3s ease;
    position: relative;
}

#main-nav .menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #D4AF37;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#main-nav .menu li a:hover::after {
    transform: scaleX(1);
}

/* Hover Effect for Menu Links */
#main-nav .menu li a:hover {
    color: #D4AF37;
}

/* -------------------------------
   Sidebar
--------------------------------- */

#sidebar {
    flex: 0 0 280px;
    max-width: 280px;
    background: #1b1b1b;
    /* background: linear-gradient(to bottom, #151515 0%, #1a1a1a 100%); */
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); /* ← Sombra reduzida */
    position: sticky;
    top: 100px;
    transition: box-shadow 0.3s ease;
}

#sidebar:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); /* ← Hover mais suave */
}

/* -------------------------------
   Footer Styling
--------------------------------- */

/* Footer Navigation */
.footer-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.footer-nav ul li {
    display: inline;
}

/* Separator Between Footer Links */
.footer-nav ul li:not(:last-child)::after {
    content: "|";
    margin: 0 10px;
    color: #555;
}

/* Footer Links */
.footer-nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #D4AF37;
    text-decoration: underline;
}

/* Footer positioning */
#site-footer {
    position: relative;
    bottom: 0;
    width: 100%;
    clear: both;
    background: linear-gradient(to top, #0a0a0a 0%, #1a1a1a 100%);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* -------------------------------
   Content and Sidebar Layout
--------------------------------- */

/* Wrapper for Content and Sidebar */
.content-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 32px;
    align-items: flex-start;
    margin-top: 48px;
}

/* Main Content Area */
.content-area {
    flex: 1;
    min-width: 0;
}

/* Main content spacing */
main#main-content {
    margin-bottom: 80px;
    min-height: 90vh;
    padding-top: 32px;
}

/* Home layout - Perfect alignment grid */
.home-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 66.66% / 33.33% split */
    gap: 32px;
    margin-bottom: 3rem;
    align-items: center !important; /* Changed from 'start' to 'center' */
}

@media (max-width: 768px) {
    .home-layout {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
}

/* Smooth transitions for all links and buttons */
a, button, .button, .btn {
    transition: all 0.3s ease;
}

/* Box shadows for all cards */
.post-item,
.news-item,
.widget,
.youtube-videos {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.post-item:hover,
.news-item:hover,
.widget:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

/* -------------------------------
   Global Styles & Transitions
--------------------------------- */

/* Smooth transitions for all interactive elements */
a,
button,
input,
textarea,
select,
.post-item,
.news-item,
.widget,
img {
    transition: all 0.3s ease;
}

/* Box shadows - Unified */
.post-item,
.news-item,
.widget,
.latest-news-column {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.post-item:hover,
.news-item:hover,
.widget:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}