/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-color: #f2c94c;
    --secondary-color: #8a63d2;
    --dark-text-color: #1a1a1a;
    --font-title: "Montserrat", sans-serif;
    --font-body: "Roboto", sans-serif;
    --header-height: 70px;
    --bg-color: #fdfdfd;
    --text-color: #2c2c2c;
    --card-bg: #ffffff;
    --border-color: #ebebeb;
    --header-bg: rgba(253, 253, 253, 0.85);
    --form-input-bg: #f5f5f5;
}

body.dark-theme {
    --bg-color: #0d0d12;
    --text-color: #f1f5f9;
    --card-bg: rgba(20, 20, 30, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --header-bg: rgba(13, 13, 18, 0.85);
    --form-input-bg: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(20, 20, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
}

.dark-theme .post-card, 
.dark-theme .server-card, 
.dark-theme .gallery-item {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    transition: background-color 0.3s, color 0.3s;
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3 {
    font-family: var(--font-title);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

/* ===== HEADER ===== */
#header {
    background-color: transparent;
    border-bottom: 1px solid transparent;
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

#header.scrolled {
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.dark-theme #header.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--text-color);
    font-size: 1rem;
    padding: 5px 10px;
    transition: color 0.3s;
    font-weight: 700;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* ===== BOTÕES ===== */
.btn {
    background: linear-gradient(45deg, var(--primary-color), #ffd700);
    color: var(--dark-text-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    color: var(--dark-text-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 201, 76, 0.4);
}

/* ===== CONTROLES DO HEADER ===== */
.header-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s;
}

.lang-btn:hover {
    background-color: var(--form-input-bg);
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 5px;
}

#theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s;
}

#theme-toggle:hover svg {
    transform: rotate(15deg);
}

#theme-toggle .moon-icon {
    display: block;
}

#theme-toggle .sun-icon,
.dark-theme #theme-toggle .moon-icon {
    display: none;
}

.dark-theme #theme-toggle .sun-icon {
    display: block;
}

/* ===== MENU HAMBURGER ===== */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    position: relative;
    transition: transform 0.3s;
}

.hamburger:before,
.hamburger:after {
    content: "";
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    left: 0;
    transition: transform 0.3s, top 0.3s, bottom 0.3s;
}

.hamburger:before {
    top: -8px;
}

.hamburger:after {
    bottom: -8px;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url(https://custom-images.strikinglycdn.com/res/hrscywv4p/image/upload/c_limit,fl_lossy,h_9000,w_1920,f_auto,q_auto/21408796/251181_249510.jpg) no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.6rem;
    color: #f5f5f5;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    z-index: 2;
    color: #fff;
    animation: bounce 2.5s infinite;
}

.scroll-down-indicator svg {
    width: 48px;
    height: 48px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -20px);
    }
    60% {
        transform: translate(-50%, -10px);
    }
}

/* ===== SECTIONS ===== */
.content-section {
    padding: 100px 0;
    overflow-x: hidden;
}

.subtitle {
    text-align: center;
    margin-top: -2rem;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    color: #888;
}

.dark-theme .subtitle {
    color: #aaa;
}

.dark-section {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 100px 0;
    text-align: center;
}

.dark-theme .dark-section {
    background-color: #111;
}

.dark-section h2 {
    color: var(--primary-color);
}

.dark-section p {
    color: #ccc;
}

.quotes-section {
    position: relative;
    background: url(https://custom-images.strikinglycdn.com/res/hrscywv4p/image/upload/c_limit,fl_lossy,h_9000,w_1920,f_auto,q_auto/21408796/343116_636560.jpg) no-repeat center center/cover;
    background-attachment: fixed;
}

.quotes-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.85);
    z-index: 1;
}

.quotes-section .container {
    position: relative;
    z-index: 2;
}

/* ===== GRID LAYOUTS ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.video-grid {
    margin-top: 2rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dark-theme .video-container {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.watch-more-container {
    text-align: center;
    margin-top: 3rem;
}

/* ===== POST CARDS ===== */
.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.post-card:hover img {
    transform: scale(1.05);
}

.dark-theme .post-card {
    box-shadow: none;
}

.dark-theme .post-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.post-card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.post-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.post-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #666;
}

.dark-theme .post-card p {
    color: #bbb;
}

.post-card-footer {
    padding: 0 1.5rem 1.5rem;
}

.read-more-btn {
    width: 100%;
}

.post-status {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-status.status-aprovado {
    background-color: #4CAF50;
    color: white;
}

.post-status.status-distribuído {
    background-color: #2196F3;
    color: white;
}

.post-status.status-incompleto {
    background-color: #FF9800;
    color: white;
}

.post-author {
    font-size: 0.9rem;
    color: #999;
    margin: 0.5rem 0 1rem !important;
}

.dark-theme .post-author {
    color: #888;
}

/* ===== CITAÇÕES ===== */
.quotes blockquote {
    font-size: 1.8rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 3rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    color: #f5f5f5;
}

.quotes footer {
    font-size: 1.1rem;
    font-style: normal;
    color: #ccc;
    margin-top: 0.8rem;
}

/* ===== SERVER STATUS ===== */
.server-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.server-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
}

.server-card h3 {
    margin-top: 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.server-card p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.server-card .status-line {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.status-indicator {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #f39c12;
}

.status-indicator.checking {
    animation: pulse 1.5s infinite;
}

.status-indicator.online {
    background-color: #2ecc71;
}

.status-indicator.offline {
    background-color: #e74c3c;
}

.bedrock-note {
    font-size: 0.9rem !important;
    font-style: italic;
    color: #888;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.dark-theme .bedrock-note {
    color: #aaa;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

/* ===== FORMULÁRIOS ===== */
form {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    background: var(--form-input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(242, 201, 76, 0.2);
}

.dark-section input,
.dark-section textarea {
    background-color: #2c2c2c;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

form button {
    align-self: center;
    cursor: pointer;
    border: none;
    margin-top: 1rem;
}

.form-label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.dark-section input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    color-scheme: dark;
}

.btn .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--dark-text-color);
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 8px;
}

.btn.loading {
    cursor: not-allowed;
}

.btn.loading .spinner {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#newsletter-status {
    margin-top: 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.newsletter-success {
    color: #3d9970;
}

.newsletter-error {
    color: #ff4136;
}

/* ===== GALERIA ===== */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s, filter 0.4s;
}

.gallery-item img:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* ===== FOOTER ===== */
#footer {
    background: #111;
    padding: 60px 0 30px;
    text-align: center;
    color: #e0e0e0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.footer-content a {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 2rem;
}

.social-icons a {
    color: #aaa;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    transform: translateY(-4px);
}

.social-icons .social-youtube:hover {
    color: red;
}

.social-icons .social-tiktok:hover {
    color: #00f2ea;
}

.social-icons .social-instagram:hover {
    color: #e1306c;
}

.social-icons svg {
    width: 32px;
    height: 32px;
}

.copyright {
    border-top: 1px solid #3a3a3a;
    padding-top: 30px;
    font-size: 0.9rem;
    color: #888;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: var(--text-color);
}

.modal-content h2,
.modal-content h3,
.modal-content h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-content p,
.modal-content li {
    margin-bottom: 0.75rem;
}

.modal-content ol,
.modal-content ul {
    padding-left: 20px;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.modal-close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.lang-modal-content {
    max-width: 400px;
    text-align: center;
    overflow-y: visible;
    max-height: none;
}

.lang-modal-content h2 {
    margin-top: 0;
}

#lang-select-input {
    width: 100%;
    padding: 12px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    background: var(--form-input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-body);
}

#lang-select-confirm {
    width: 100%;
}

/* ===== ANIMAÇÕES ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.posts-grid .animate-on-scroll:nth-child(2),
.video-grid .animate-on-scroll:nth-child(2),
.server-status-grid .animate-on-scroll:nth-child(2),
.grid-gallery .animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.posts-grid .animate-on-scroll:nth-child(3),
.video-grid .animate-on-scroll:nth-child(3),
.grid-gallery .animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.posts-grid .animate-on-scroll:nth-child(4),
.grid-gallery .animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

.posts-grid .animate-on-scroll:nth-child(5),
.grid-gallery .animate-on-scroll:nth-child(5) {
    transition-delay: 0.4s;
}

.grid-gallery .animate-on-scroll:nth-child(6) {
    transition-delay: 0.5s;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--dark-text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 201, 76, 0.4);
}

.back-to-top svg {
    width: 28px;
    height: 28px;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 900px) {
    .nav-menu ul {
        gap: 0.5rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    #header .container {
        position: relative;
    }
    
    #menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu ul {
        display: none;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: var(--header-height);
        right: 0;
        background: var(--bg-color);
        width: 100%;
        height: calc(100vh - var(--header-height));
        padding-top: 2rem;
        gap: 1.5rem;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu ul.active {
        display: flex;
    }
    
    .header-controls-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-menu.active .hamburger {
        transform: rotate(45deg);
    }
    
    .nav-menu.active .hamburger:before {
        transform: rotate(90deg);
        top: 0;
    }
    
    .nav-menu.active .hamburger:after {
        display: none;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}
