/* Import Poppins font */
body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #181A1B;
    color: #F5F6FA;
    margin: 0;
    padding: 0;
}

/* Hero/Banner Section */
.hero {
    position: relative;
    width: 100%;
    height: 320px;
    background: url('../img/pexels-souvenirpixels-1574181.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    background: rgba(24, 26, 27, 0.7);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.blog-title {
    font-size: 2.8rem;
    font-weight: 600;
    margin: 0;
}
.blog-tagline {
    font-size: 1.2rem;
    color: #F5F6FA;
    margin-top: 0.5rem;
    opacity: 0.85;
}

/* Main Content Container */
.container {
    background: rgba(24, 26, 27, 0.98);
    border-radius: 5px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.25);
    padding: 2rem 1.5rem 3rem 1.5rem;
}

.main-content {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    position: relative;
    z-index: 2;
    margin: 0 auto 0 auto;
}

.search-container {
    margin-top: -60px;
    padding-bottom: 2rem;
}

.post-container {
    margin-top: -60px;
}

/* Search Bar */
.search-bar {
    display: flex;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}
.search-bar input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 5px;
    background: #232526;
    color: #F5F6FA;
    font-size: 1rem;
    width: 100%;
}
.search-bar button {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 5px;
    background: #A82EFF;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.search-bar button:hover {
    opacity: 0.85;
}

/* Tag Filter */
.tag-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tag {
    padding: 0.4rem 1rem;
    border: 2px solid transparent;
    border-radius: 999px;
    background: #232526;
    color: #F5F6FA;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border 0.2s, background 0.2s;
}
.tag.active, .tag:hover {
    border-image: linear-gradient(to left, #743ad5, #d53a9d) 1;
    background: rgba(116, 58, 213, 0.12);
}

/* Blog Post List */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.post-card {
    background: #202124;
    border-radius: 5px;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s;
}
.post-card:hover {
    box-shadow: 0 4px 24px rgba(116, 58, 213, 0.15);
}
.post-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}
.post-meta {
    font-size: 0.95rem;
    color: #A9A9B3;
    margin-bottom: 0.7rem;
}
.post-tags a {
    text-decoration: none;
    color: #d53a9d;
    font-weight: 500;
}

.post-tags a:hover {
    color: #743ad5;
}

.post-excerpt {
    margin: 0 0 1.2rem 0;
    color: #F5F6FA;
    opacity: 0.92;
}
.read-more {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 999px;
    background: none;
    color: #F5F6FA;
    font-weight: 600;
    text-decoration: none;
    background-color: #202124;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
    overflow: hidden;
}
.read-more::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(to left, #743ad5, #d53a9d);
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.read-more:hover {
    background: rgba(116, 58, 213, 0.12);
}

.tag.active, .tag:hover {
    position: relative;
    border: none;
    border-radius: 999px;
    background: rgba(116, 58, 213, 0.12);
    color: #F5F6FA;
    z-index: 1;
    overflow: hidden;
}
.tag.active::before, .tag:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(to left, #743ad5, #d53a9d);
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.post-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 12px;
    /* box-shadow: 0 2px 12px rgba(116, 58, 213, 0.15); */
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0 1rem 0;
    color: #A9A9B3;
    font-size: 0.95rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 800px) {
    .main-content {
        max-width: 90%;
    }
    .search-container {
        margin-top: -40px;
    }
    .post-container {
        margin-top: -40px;
    }
    .hero {
        height: 200px;
    }
    .blog-title {
        font-size: 2rem;
    }
}
