/* =========================
   Blog Page Styles
   ========================= */

.blog-main {
    padding-top: 80px;
    min-height: 100vh;
    background-color: #0D0D0D;
}

/* Blog Header */
.blog-header {
    text-align: center;
    padding: 2rem 0 3rem 0;
    margin-bottom: 2rem;
}

.blog-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--soft-white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 254, 230, 0.7);
    font-weight: 400;
}

/* About Me Section */
.about-me-section {
    max-width: 900px;
    margin: 0 auto 2rem auto;
    padding: 0 2rem;
}

.about-me-card {
    background: rgba(255, 254, 230, 0.03);
    border: 1px solid rgba(255, 254, 230, 0.15);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.about-me-card:hover {
    border-color: rgba(255, 254, 230, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.about-me-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-me-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 254, 230, 0.2);
    flex-shrink: 0;
}

.about-me-info {
    flex: 1;
}

.about-me-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--soft-white);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.about-me-bio {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 254, 230, 0.8);
    margin: 0 0 1rem 0;
    font-weight: 400;
}

.about-me-bio a {
    color: rgba(255,254,230,0.7);
    text-decoration: none;
    font-style: italic;
    transition: color 0.2s;
}
.about-me-bio a:hover {
    color: var(--soft-white);
    text-decoration: underline;
}

.about-me-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 254, 230, 0.1);
}

.about-tag {
    background: rgba(255, 254, 230, 0.1);
    color: rgba(255, 254, 230, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 254, 230, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.about-tag:hover {
    background: rgba(255, 254, 230, 0.15);
    color: var(--soft-white);
    border-color: rgba(255, 254, 230, 0.3);
    transform: translateY(-1px);
}

/* Blog Feed */
.blog-feed {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-post {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 0;
    min-width: 0;
}

.post-image {
    width: 100%;
    aspect-ratio: 1.5 / 1;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-info {
    padding: 1.1rem 1.2rem 0.9rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
    flex: 1;
}

.post-date {
    font-size: 0.97rem;
    color: #888;
    font-weight: 400;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(255, 254, 230, 0.1);
    color: rgba(255, 254, 230, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 254, 230, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    background: rgba(255, 254, 230, 0.15);
    color: var(--soft-white);
    border-color: rgba(255, 254, 230, 0.3);
}

/* Remove About Me Stats styles */
/* .about-me-stats, .stat, .stat-number, .stat-label { ... } */

/* Remove Post Actions styles */
/* .post-actions, .action-btn, .action-count, .post-menu-btn { ... } */

/* Load More Button */
.load-more-container {
    text-align: center;
    padding: 2rem 0;
}

.load-more-btn {
    background: rgba(255, 254, 230, 0.1);
    border: 1px solid rgba(255, 254, 230, 0.2);
    color: var(--soft-white);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    background: rgba(255, 254, 230, 0.15);
    border-color: rgba(255, 254, 230, 0.3);
    transform: translateY(-1px);
}

.load-more-btn i {
    font-size: 0.9rem;
}

/* Animations */
@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 1100px) {
    .blog-feed {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-main {
        padding-top: 70px;
    }
    
    .blog-header {
        padding: 1.5rem 0 2rem 0;
    }
    
    .blog-title {
        font-size: 2.5rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
    
    .about-me-section {
        margin-bottom: 1.5rem;
    }
    
    .about-me-card {
        padding: 1.5rem;
    }
    
    .about-me-header {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .about-me-avatar {
        width: 60px;
        height: 60px;
    }
    
    .about-me-name {
        font-size: 1.3rem;
    }
    
    .about-me-bio {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .about-me-tags {
        justify-content: center;
    }
    
    .blog-feed {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
        gap: 1.2rem;
    }
    
    .blog-post {
        aspect-ratio: 1 / 1;
    }
    
    .post-header {
        margin-bottom: 0.75rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .author-name {
        font-size: 0.95rem;
    }
    
    .post-date {
        font-size: 0.9rem;
    }
    
    .post-text {
        font-size: 0.95rem;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .about-me-card {
        padding: 1rem;
    }
    
    .about-me-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .about-me-avatar {
        width: 70px;
        height: 70px;
        margin: 0 auto;
    }
    
    .about-me-name {
        font-size: 1.2rem;
    }
    
    .about-me-bio {
        font-size: 0.85rem;
    }
    
    .about-me-tags {
        justify-content: center;
    }
    
    .blog-post {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .load-more-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .blog-post {
        background: rgba(255, 254, 230, 0.03);
    }
    
    .blog-post:hover {
        background: rgba(255, 254, 230, 0.05);
    }
}

/* Smooth scrolling */
.blog-main {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.action-btn:focus,
.post-menu-btn:focus,
.load-more-btn:focus {
    outline: 2px solid rgba(255, 254, 230, 0.5);
    outline-offset: 2px;
}

/* Loading state for load more button */
.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.load-more-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
} 

.post-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    background: #181816;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 2.5rem 2.2rem 2.2rem 2.2rem;
    margin: 2.5rem auto;
    max-width: 1100px;
    position: relative;
}

.post-modal-flex {
    display: flex;
    width: 100%;
    gap: 3rem;
}

.post-modal-image-col {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.post-full-image {
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: block;
    object-fit: cover;
}

.post-modal-content-col {
    flex: 1;
    min-width: 0;
}

@media (max-width: 900px) {
    .post-content-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.2rem 0.7rem;
    }
    .post-modal-flex {
        flex-direction: column;
        gap: 1.5rem;
    }
    .post-modal-image-col {
        align-items: flex-start;
        max-width: 100%;
    }
    .post-full-image {
        max-width: 100%;
    }
    .back-to-blog {
        margin-top: 0.5rem;
        margin-bottom: 0;
        position: static;
        right: auto;
        top: auto;
    }
}

@media (min-width: 901px) {
  .post-modal-content-col {
    padding-left: 2.5rem;
  }
}

.back-to-blog {
    display: inline-block;
    color: #bdbbaa;
    background: none;
    border: none;
    font-size: 1.2rem;
    font-family: inherit;
    text-decoration: none;
    margin-bottom: 1.5rem;
    margin-left: 0;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.back-to-blog:hover,
.back-to-blog:focus {
    color: #fff;
    text-decoration: none;
} 

.blog-post .post-title {
  color: #f5f5f5;
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
  line-height: 1.3;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.blog-card-link:hover .post-title,
.blog-card-link:focus .post-title {
  color: #FFFEE6;
  text-decoration: none;
}

.blog-post .post-date {
  color: #bdbbaa;
  font-size: 1.05rem;
  font-weight: 400;
  margin-top: 0.2rem;
  display: block;
} 

.blog-card-link,
.blog-card-link:visited,
.blog-card-link:hover,
.blog-card-link:focus {
  text-decoration: none;
} 

@media (max-width: 600px) {
  .blog-feed {
    gap: 0.7rem;
    padding: 0 0.2rem;
  }
  .blog-post {
    padding: 0.7rem;
    border-radius: 10px;
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
  }
  .post-image {
    border-radius: 8px;
  }
  .post-full-image {
    border-radius: 8px;
    margin-bottom: 0.7rem;
  }
  .post-title {
    font-size: 0.98rem;
  }
  .post-date {
    font-size: 0.9rem;
  }
} 