/* Blog Specific Styles */

:root {
    --primary-color: #1CB698;
    --dark-bg: #1e2326;
    --card-bg: rgba(37, 42, 46, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --text-color: #ffffff;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
}

.blog-banner {
    background: linear-gradient(to top, rgba(30, 35, 38, .8), rgba(30, 35, 38, 1)),
        url('../../img/fondo-min.png');
    background-size: cover;
    padding: 100px 20px 50px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
}

.banner-content h1 {
    font-family: 'Righteous';
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(28, 182, 152, 0.3);
}

.banner-content p {
    font-size: 1.2rem;
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
    /* Adjust based on banner/nav height */
    display: flex;
    flex-direction: column;
}

footer {
    padding: 50px 20px;
    background: var(--dark-bg);
    border-top: 1px solid rgba(28, 182, 152, 0.2);
    text-align: center;
}

.content {
    flex: 1;
    /* Pushes the footer to the bottom */
}

.content-title {
    font-family: 'Righteous';
    font-size: 2rem;
    margin-bottom: 20px;
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    margin-bottom: 40px;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(28, 182, 152, 0.2);
    border-color: var(--primary-color);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-info {
    padding: 20px;
}

.post-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
}

.post-title-link {
    text-decoration: none;
    color: white;
}

.post-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.post-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
}

/* Button overlay style from portfolio */
.read-more {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.read-more:hover {
    background: var(--primary-color);
}

/* Logged in info */
.logged_in_info {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    text-align: right;
    font-size: 0.9rem;
}

.logged_in_info a {
    color: white;
    font-weight: bold;
}

/* Post Content Styling (TinyMCE friendly) */
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
    color: var(--primary-color);
    font-family: 'Righteous', sans-serif;
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-body h1 {
    font-size: 2.2rem;
}

.post-body h2 {
    font-size: 1.8rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.post-body h3 {
    font-size: 1.5rem;
}

.post-body p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.post-body ul {
    margin-bottom: 30px;
    padding-left: 40px;
    list-style-type: disc;
}

.post-body ol {
    margin-bottom: 30px;
    padding-left: 40px;
    list-style-type: decimal;
}

.post-body li {
    margin-bottom: 10px;
}

.post-body blockquote {
    background: rgba(28, 182, 152, 0.1);
    border-left: 5px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #ddd;
    border-radius: 0 10px 10px 0;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.post-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: 0.3s;
}

.post-body a:hover {
    color: white;
    border-bottom-style: solid;
}

.post-entry-category {
    padding: 10px 20px 0;
}

.post-categories-list i {
    font-size: 0.8rem;
    margin-right: 5px;
}