:root {
    --primary-color: #c5a059; /* Gold accent */
    --secondary-color: #4b5563;
    --header-bg: #1f2937; /* Dark charcoal */
    --body-bg: #f4f1ea; /* Antique paper */
    --card-border: #111827;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --font-heading: 'Crimson Pro', 'Georgia', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--body-bg);
}

/* Header Area */
.navbar-custom {
    background: var(--header-bg) !important;
    padding: 1.5rem 0;
    border-bottom: 4px solid var(--primary-color);
}

.navbar-custom .navbar-brand {
    font-family: var(--font-heading);
    color: #fff !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-custom .nav-link {
    color: #d1d5db !important;
    font-size: 0.95rem;
    font-weight: 500;
}

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

.search-input-top {
    background: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Alphabet Grid */
.alphabet-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 3rem;
}

.letter-box {
    width: 45px;
    height: 45px;
    background: #374151;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.letter-box:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Encyclopedia Cards */
.curiosity-card {
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 2rem;
}

.card-img-wrapper {
    position: relative;
    border: 3px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    background: #000;
}

.letter-overlay {
    position: absolute;
    top: 0px;
    left: 10px;
    font-size: 5.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.25);
    font-family: var(--font-heading);
    pointer-events: none;
    line-height: 1;
    z-index: 1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.card-badge {
    position: relative;
    margin-top: -16px;
    margin-left: 12px;
    background: var(--primary-color);
    color: #fff;
    padding: 3px 12px;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    z-index: 5;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-title-link h2 {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 12px;
    margin-bottom: 8px;
    color: var(--text-dark);
    transition: color 0.2s;
}

.card-title-link:hover h2 {
    color: var(--primary-color);
}

.curiosity-card img {
    opacity: 0.95;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.curiosity-card:hover img {
    opacity: 1;
    transform: scale(1.08);
}

.author-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.lela-mais {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 10px;
}

.lela-mais:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.author-meta img {
    border: 1px solid #e2e8f0;
}

/* Sidebar Styles */
.sidebar-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.destaques-list {
    list-style: none;
    padding: 0;
}

.destaques-list li {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 0.95rem;
}

.destaques-list li span {
    color: var(--primary-color);
    margin-right: 10px;
}

.random-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 2.5rem;
}

.footer-links-sidebar {
    margin-top: 3rem;
    font-size: 0.85rem;
}

.footer-links-sidebar a {
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
}

/* Mega Slider Section */
.mega-slider-container {
    display: flex;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
    height: 480px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.mega-slider-main {
    flex: 2;
    position: relative;
    overflow: hidden;
}

.mega-slider-main .main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mega-slider-main:hover .main-img {
    transform: scale(1.05);
}

.mega-slider-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2563eb; /* Blue as in image */
    padding: 2rem;
    color: #fff;
    z-index: 2;
}

.mega-slider-category {
    background: #000;
    color: #fff;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    position: absolute;
    top: -32px;
    left: 2rem;
}

.mega-slider-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.mega-slider-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #111;
}

.mega-slider-sidebar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
}

.mega-slider-sidebar-item .item-img-box {
    height: 55%;
    overflow: hidden;
}

.mega-slider-sidebar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.3s;
}

.mega-slider-sidebar-item:hover img {
    transform: scale(1.1);
}

.mega-slider-sidebar-content {
    padding: 1.2rem;
    flex-grow: 1;
}

.sidebar-category-tag {
    background: #000;
    color: #fff;
    border: 2px solid #ea580c; /* Orange border */
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sidebar-item-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-footer-arrow {
    text-align: center;
    padding: 10px;
    color: #fff;
    background: #1a1a1a;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease backwards;
}
