:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --primary-color: #0056b3;
    --secondary-bg: #f9f9f9;
    --border-color: #dddddd;
    --star-color: #ffc107;
    --star-inactive: #e4e5e9;
    --carousel-bg: #1a1a1a;
    --carousel-text: #ffffff;
}

body.dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --primary-color: #4da3ff;
    --secondary-bg: #1e1e1e;
    --border-color: #333333;
    --carousel-bg: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    padding-top: 50px; /* Espaço para o topo fixo */
}

.carousel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--carousel-bg);
    color: var(--carousel-text);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 6px 15px;
}

.carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
}

.carousel-track a {
    color: var(--carousel-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.carousel-track a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.animated-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-color), #ff8c00, var(--primary-color));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineTitle 3s linear infinite;
}

@keyframes shineTitle {
    to {
        background-position: 200% center;
    }
}

.image-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.main-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.content h2 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.content p {
    margin-bottom: 15px;
    text-align: justify;
}

.sources {
    margin-top: 40px;
    background-color: var(--secondary-bg);
    padding: 15px;
    border-left: 5px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.sources ul {
    margin-left: 20px;
    margin-top: 10px;
}

hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 40px 0;
}

.comments-section h2 {
    margin-bottom: 20px;
}

.rating-box {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stars i {
    color: var(--star-inactive);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.stars i.active {
    color: var(--star-color);
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
}

.btn-submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s;
}

.btn-submit:hover {
    opacity: 0.9;
}

.comments-list {
    margin-top: 40px;
}

.comment-card {
    background-color: var(--secondary-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-header strong {
    font-size: 1.1rem;
}

.comment-stars i {
    color: var(--star-color);
    font-size: 14px;
}

@media (max-width: 768px) {
    .animated-title {
        font-size: 2rem;
    }

    .carousel-track {
        gap: 15px;
    }

    .carousel-track a {
        font-size: 13px;
    }
}