:root {
    --bg-color: #0b0c10;
    --card-bg: rgba(31, 40, 51, 0.6);
    --primary: #f21368;
    --primary-glow: #f21368b3;
    --text-main: #c5c6c7;
    --text-light: #ffffff;
    --accent: #45a29e;
    --accent-glow: #66fcf1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background gradient effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(242, 19, 104, 0.05), transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(102, 252, 241, 0.05), transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.hero {
    text-align: center;
    padding: 100px 20px 40px;
    position: relative;
}

.logo {
    position: absolute;
    top: 20px;
    left: 40px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-light);
    letter-spacing: 2px;
}

.neon-text {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 800;
}

.hero .highlight {
    color: var(--accent-glow);
    text-shadow: 0 0 15px rgba(102, 252, 241, 0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 50vh;
}

.loader {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(242, 19, 104, 0.2);
    border-color: rgba(242, 19, 104, 0.3);
}

.post-title {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 600;
    margin-top: auto; /* Empurra o título (e a data) para o fim do card, alinhando tudo horizontalmente! */
}

.post-date {
    font-size: 0.85rem;
    color: rgba(197, 198, 199, 0.6);
}

.post-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

/* Para imagens secundárias - Grid layout */
.post-images .image-wrapper:not(:first-child) {
    display: inline-block;
    width: calc(50% - 5px);
}
.post-images .secondary-images-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* Modal/Carousel */
.carousel-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#carousel-image {
    max-height: 85vh;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(242, 19, 104, 0.3);
    object-fit: contain;
    transition: none;
}

#carousel-image:hover {
    transform: none;
}

.carousel-nav {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 3rem;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.3s, transform 0.3s, text-shadow 0.3s;
}

.carousel-nav:hover {
    color: var(--primary-glow);
    text-shadow: 0 0 15px var(--primary);
    transform: translateY(-50%) scale(1.2);
}

#prev-btn { left: -60px; }
#next-btn { right: -60px; }

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--text-light);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.close-modal:hover { color: var(--primary); }

.carousel-counter {
    position: absolute;
    bottom: -30px;
    color: var(--text-light);
    font-size: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
}

.multiple-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 0 10px var(--primary-glow);
    z-index: 10;
    pointer-events: none;
}

/* Contact Form Styles */
.contact-section {
    padding: 60px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.input-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
}

input[type="email"], input[type="text"], textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s ease;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(242, 19, 104, 0.2);
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-secondary {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
}

.btn-primary {
    flex: 2;
    padding: 15px;
    background: linear-gradient(45deg, var(--primary), #a60d47);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.file-label {
    padding: 20px;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: border 0.3s, background 0.3s;
}

.file-label:hover {
    border-color: var(--accent);
    background: rgba(102, 252, 241, 0.05);
}

.file-label input[type="file"] {
    display: none;
}

.status-msg { margin-top: 15px; font-size: 0.95rem; }
.status-error { color: #ff4c4c; }
.status-success { color: #66fcf1; }

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
    color: rgba(197, 198, 199, 0.5);
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    #prev-btn { left: 10px; }
    #next-btn { right: 10px; }
}
