/* ============================================
   ELEPHANT BET - PROMOÇÃO PAGE STYLES
   ============================================ */

/* === CSS Variables === */
:root {
    --color-primary: #f95898;
    --color-secondary: #CB1567;
    --color-dark: #0f1021;
    --color-dark-card: #1a1a29;
    --color-light: #f3f9fb;
    --color-white: #ffffff;
    --color-text: #808285;
    --color-orange: #ff7900;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Merriweather', serif;
    --font-button: 'Montserrat', sans-serif;
    --border-color: #dddddd;
    --max-width: 1240px;
}

/* === Base Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 106.25%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5em;
    color: var(--color-light);
    background-color: var(--color-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2em;
    color: var(--color-white);
    text-transform: lowercase;
}

h1 { font-size: 2.9rem; line-height: 1.4em; }
h2 { font-size: 1.65rem; line-height: 1.3em; }
h3 { font-size: 1.3rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: var(--color-white);
}

p { margin-bottom: 1.75em; }

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border: 0;
}

ul {
    list-style: none;
}

/* === Utility === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container::after {
    content: "";
    display: table;
    clear: both;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* === Buttons === */
.btn {
    display: inline-block;
    font-family: var(--font-button);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px;
    border: 1px solid var(--color-white);
    border-radius: 3px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover, .btn:focus {
    background-color: #a01250;
    color: var(--color-white);
}

/* === Header === */
.header {
    background-color: var(--color-dark);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1B1B2A;
    padding: 4px 20px;
    font-size: 14px;
}

.top-bar a {
    color: var(--color-white);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
    padding: 10px 20px;
    background-color: var(--color-dark);
}

.logo img {
    max-width: 83px;
    height: auto;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

/* === Navigation === */
.main-nav {
    background-color: var(--color-dark);
    padding: 10px 0;
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.nav-menu li {
    display: flex;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    color: var(--color-white);
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* === Mobile Menu Toggle === */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--color-white);
    cursor: pointer;
    padding: 0.25em;
}

/* === Content Area === */
.site-content {
    padding: 4em 0;
}

.content-wrapper {
    display: flex;
    gap: 60px;
}

.main-content {
    flex: 1;
    max-width: 70%;
}

/* === Page Header === */
.page-header {
    background-color: var(--color-dark-card);
    padding: 3em;
    margin-bottom: 2em;
}

.page-title {
    font-size: 2.35rem;
    margin-bottom: 10px;
}

.page-description {
    margin-bottom: 10px;
}

/* === Breadcrumbs === */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: inline-block;
}

.breadcrumbs li::after {
    content: "»";
    padding: 0 0.3em;
}

.breadcrumbs li:last-child::after {
    display: none;
}

/* === Articles / Posts === */
.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.post-card {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--color-dark-card);
    overflow: hidden;
}

.post-thumb {
    width: 25%;
    min-height: 200px;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    width: 75%;
    padding: 1.5em;
}

.post-title {
    font-size: 1.65rem;
    margin-bottom: 0.5em;
}

.post-title a {
    color: var(--color-light);
}

.post-title a:hover {
    color: var(--color-primary);
}

.post-meta {
    color: var(--color-primary);
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 1em;
}

.post-meta a {
    color: var(--color-primary);
}

.post-excerpt {
    margin-bottom: 1em;
}

.read-more {
    color: var(--color-primary);
}

.post-categories a,
.post-tags a {
    color: var(--color-primary);
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 2em 0;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    width: 2.33em;
    height: 2.33em;
    line-height: calc(2.33em - 3px);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
}

.pagination a:hover,
.pagination .current {
    color: var(--color-white);
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 1.5em;
}

/* === Sidebar === */
.sidebar {
    width: 30%;
    margin-top: 4em;
}

.widget {
    background-color: var(--color-dark-card);
    padding: 2em;
    margin-bottom: 2em;
}

.widget-title {
    font-size: 1.4rem;
    color: var(--color-white);
    margin-bottom: 1em;
}

/* === Search Widget === */
.search-form {
    display: flex;
}

.search-input {
    flex: 1;
    padding: 0.75em;
    border: 1px solid var(--border-color);
    border-right: none;
    background-color: #fafafa;
    color: #666;
    border-radius: 2px 0 0 2px;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-btn {
    padding: 0 1em;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
}

/* === Recent Posts Widget === */
.recent-posts li {
    margin-bottom: 0.5em;
}

.recent-posts a {
    color: var(--color-light);
}

.recent-posts a:hover {
    color: var(--color-primary);
}

/* === Categories Widget === */
.categories-list li {
    margin-bottom: 0.25em;
}

.categories-list a {
    color: var(--color-light);
}

.categories-list a:hover,
.categories-list .current {
    color: var(--color-primary);
}

/* === Footer === */
.footer {
    background-color: var(--color-dark-card);
    border-top: 1px solid #c83c78;
    padding: 20px 0;
    min-height: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.copyright {
    color: var(--color-orange);
    font-size: 0.82rem;
}

.copyright span {
    color: var(--color-white);
}

/* === Scroll to Top === */
.scroll-top {
    display: none;
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 2.1em;
    height: 2.1em;
    line-height: 2.1;
    text-align: center;
    background-color: #2a3c4a;
    color: #363b4e;
    border-radius: 2px;
    cursor: pointer;
    z-index: 99;
    transition: opacity 0.3s ease;
}

.scroll-top.visible {
    display: block;
}

.scroll-top:hover {
    opacity: 0.8;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 921px) {
    html {
        font-size: 96.9%;
    }

    h1 { font-size: 40px; }
    h2 { font-size: 30px; }

    .content-wrapper {
        flex-direction: column;
    }

    .main-content,
    .sidebar {
        max-width: 100%;
        width: 100%;
    }

    .sidebar {
        margin-top: 1.5em;
        padding: 0 1em;
    }

    .page-header {
        padding: 1.5em 2.14em;
    }
}

@media (max-width: 767px) {
    .top-bar {
        flex-direction: column;
        padding: 4px 10px;
        gap: 5px;
    }

    .main-header {
        padding: 6px 15px;
    }

    .logo img {
        max-width: 48px;
    }

    .header-buttons {
        gap: 5px;
    }

    .btn {
        font-size: 10px;
        padding: 8px 12px;
    }

    .post-card {
        flex-direction: column;
    }

    .post-thumb,
    .post-content {
        width: 100%;
    }

    .post-thumb {
        margin-bottom: 1em;
    }

    .post-content {
        padding: 0 1em 1.5em;
    }

    .page-header {
        padding: 1.5em 1em;
    }

    .page-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 544px) {
    html {
        font-size: 96.9%;
    }

    h1 { font-size: 34px; }
    h2 { font-size: 24px; }

    .page-title {
        font-size: 1.8rem;
    }

    .widget {
        padding: 1.5em 1em;
        margin-bottom: 1.5em;
    }

    .pagination .prev,
    .pagination .next {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
}

/* === No Posts State === */
.no-posts {
    background-color: var(--color-dark-card);
    padding: 4em 2em;
    text-align: center;
}

.no-posts p {
    color: var(--color-text);
    font-size: 1.2rem;
    margin-bottom: 2em;
}

.no-posts .btn {
    display: inline-block;
}
