/* Variáveis CSS */
:root {
    --primary-color: #9B5DE5; /* Roxo vibrante */
    --primary-glow: rgba(155, 93, 229, 0.3);
}

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121214;
    color: #FFFFFF;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.6;
    padding-bottom: 40px;
}

/* Cabeçalho e título */
.hero-section {
    background: linear-gradient(135deg, #1a1a1c 0%, #202024 100%);
    padding: 40px 20px 50px;
    text-align: center;
    border-bottom: 1px solid var(--primary-color);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.hero-title {
    margin: 0 0 30px;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.title-secondary {
    color: #FFFFFF;
}

/* Campo de pesquisa */
.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: #202024;
    border: 2px solid #323236;
    border-radius: 50px;
    padding: 5px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px var rgba(155, 93, 229,0.2);
}

.search-icon {
    padding: 0 15px;
    color: #afafaf;
    font-size: 18px;
    transition: color 0.3s ease;
}

.search-box:focus-within .search-icon {
    color: var(--primary-color);
}

#search-input {
    flex: 1;
    padding: 15px 0;
    border: none;
    background: transparent;
    color: #FFFFFF;
    font-size: 16px;
    font-family: 'Space Grotesk', sans-serif;
    outline: none; /*Remove contorno padrao do navegador */
}

#search-input::placeholder {
    color: #afafaf;
}

#search-button {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-family: 'Rajdhani', sans-serif;
    white-space: nowrap;
    box-shadow: 0 0 6px rgba(155, 93, 229, 0.3); /* glow discreto */
}

#search-button:hover {
    background-color: #7a3ecb;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 93, 229, 0.3);
    animation: pulse 1.2s infinite;
}

/* Conteúdo principal */
.main-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Posts */
.post {
    background: linear-gradient(135deg, #1a1a1c 0%, #202024 100%);
    border: 1px solid #323236;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.post:hover::before {
    height: 100%;
}

.post-date {
    color: var(--primary-color);
    font-size: 0.9em;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.post-title {
    color: #FFFFFF;
    margin: 8px 0 15px;
    font-size: 1.8em;
    font-weight: 600;
    line-height: 1.3;
}

.post-description {
    color: #afafaf;
    line-height: 1.6;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 20px;
}

/* Ações do post */
.post-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #323236;
    justify-content: flex-end;
}

.like-button, .share-button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
}

.like-button:hover, .share-button:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--primary-glow);
    animation: pulse 1.2s infinite;
}

.like-button i, .share-button i {
    font-size: 1.1em;
}

.like-button.liked {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 60px;
    color: #afafaf;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
        
    .search-box {
        position: relative;
        flex-direction: column;
        padding: 0;
        border: none;
        background: transparent;
    }

    .search-icon {
        position: absolute;
        left: 15px;
        top: 15px;
        font-size: 18px;
        color: #afafaf;
        pointer-events: none;
    }

    #search-input {
        width: 100%;
        padding: 15px 15px 15px 75px;
        background: #202024;
        border: 2px solid #323236;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    #search-button {
        width: 100%;
    }
        
    .post-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .like-button, .share-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
        
    .post {
        padding: 20px;
    }
        
    .post-title {
        font-size: 1.3rem;
    }

    .main-content {
        margin: 20px auto;
        padding: 0 15px;
    }
}

/* Animação pulse */
@keyframes pulse {
    0% {
        box-shadow: 0 0 8px var(--primary-glow);
    }
    50% {
        box-shadow: 0 0 15px var(--primary-glow);
    }
    100% {
        box-shadow: 0 0 8px var(--primary-glow);
    }
}


/* Css pagina inicial do site */


