/* Vintajj 2025 Blog Styles */

/* ============================================
   FIX: Bottom Navigation SVG Icons
   (Parent shop theme CSS not inherited in blog app)
   ============================================ */
.v25-bottom-nav-item svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

.v25-bottom-nav-catalog-btn svg {
    width: 20px !important;
    height: 20px !important;
}

/* Mobile Menu SVG fix */
.v25-mobile-menu svg,
.v25-mobile-menu-btn svg {
    width: 20px !important;
    height: 20px !important;
}

/* Header icons fix */
.v25-header svg,
.v25-header-actions svg {
    width: 20px;
    height: 20px;
}

/* Search icon fix */
.v25-search-input-wrapper svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Layout
   ============================================ */
.v25-blog-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.v25-blog-main {
    min-width: 0;
}

.v25-blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

@media (max-width: 992px) {
    .v25-blog-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .v25-blog-sidebar {
        position: static;
    }
}

/* Stream Title */
.v25-blog-stream-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 32px !important;
    font-weight: 600 !important;
    color: #1c1917 !important;
    margin: 0 0 24px 0 !important;
}

/* Post Cards Grid */
.v25-blog-posts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.v25-blog-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e7e5e4;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.v25-blog-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .v25-blog-card {
        grid-template-columns: 1fr;
    }
}

/* Card Image */
.v25-blog-card-image {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f5f4;
}

.v25-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.v25-blog-card:hover .v25-blog-card-image img {
    transform: scale(1.05);
}

/* Card Content */
.v25-blog-card-content {
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .v25-blog-card-content {
        padding: 20px;
    }
}

/* Card Meta */
.v25-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #78716c;
}

.v25-blog-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.v25-blog-card-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Card Title */
.v25-blog-card-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 0 12px 0 !important;
}

.v25-blog-card-title a {
    color: #1c1917 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.v25-blog-card-title a:hover {
    color: #A65A3C !important;
}

/* Card Excerpt */
.v25-blog-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #57534e;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

/* Card Footer */
.v25-blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0ede8;
}

.v25-blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #A65A3C !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: gap 0.2s;
}

.v25-blog-card-link:hover {
    gap: 10px;
}

.v25-blog-card-comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #78716c !important;
    text-decoration: none !important;
    font-size: 13px;
}

.v25-blog-card-comments:hover {
    color: #A65A3C !important;
}

/* Empty State */
.v25-blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #a8a29e;
}

.v25-blog-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Pagination */
.v25-blog-paging {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e7e5e4;
}

.v25-blog-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e7e5e4;
    color: #44403c !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.v25-blog-page-link:hover {
    border-color: #A65A3C;
    color: #A65A3C !important;
}

.v25-blog-page-link.active {
    background: #A65A3C;
    border-color: #A65A3C;
    color: #fff !important;
}

.v25-blog-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    color: #44403c !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.v25-blog-load-more:hover {
    border-color: #A65A3C;
    color: #A65A3C !important;
}

/* Single Post */
.v25-blog-post {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #e7e5e4;
}

@media (max-width: 768px) {
    .v25-blog-post {
        padding: 24px;
        border-radius: 12px;
    }
}

.v25-blog-post-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0ede8;
}

.v25-blog-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #78716c;
}

.v25-blog-post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v25-blog-post-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.v25-blog-post-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 36px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #1c1917 !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .v25-blog-post-title {
        font-size: 28px !important;
    }
}

/* Post Content */
.v25-blog-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #44403c;
}

.v25-blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.v25-blog-post-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 26px !important;
    font-weight: 600 !important;
    color: #1c1917 !important;
    margin: 40px 0 16px !important;
}

.v25-blog-post-content h3 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1c1917 !important;
    margin: 32px 0 12px !important;
}

.v25-blog-post-content p {
    margin: 0 0 16px;
}

.v25-blog-post-content a {
    color: #A65A3C;
    text-decoration: underline;
}

.v25-blog-post-content a:hover {
    color: #8B4A32;
}

.v25-blog-post-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: #FDF8F3;
    border-left: 4px solid #A65A3C;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #57534e;
}

.v25-blog-post-content ul,
.v25-blog-post-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.v25-blog-post-content li {
    margin-bottom: 8px;
}

/* Post Navigation */
.v25-blog-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #f0ede8;
}

@media (max-width: 640px) {
    .v25-blog-post-nav {
        grid-template-columns: 1fr;
    }
}

.v25-blog-post-nav-prev,
.v25-blog-post-nav-next {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f5f5f4;
    border-radius: 12px;
    color: #44403c !important;
    text-decoration: none !important;
    transition: all 0.2s;
}

.v25-blog-post-nav-prev:hover,
.v25-blog-post-nav-next:hover {
    background: #FDF8F3;
    color: #A65A3C !important;
}

.v25-blog-post-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.v25-blog-post-nav-prev span,
.v25-blog-post-nav-next span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.v25-blog-post-nav-prev small,
.v25-blog-post-nav-next small {
    font-size: 12px;
    color: #a8a29e;
}

/* Sidebar Widgets */
.v25-blog-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e7e5e4;
    margin-bottom: 20px;
}

.v25-blog-widget-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1c1917 !important;
    margin: 0 0 16px 0 !important;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0ede8;
}

/* Archive */
.v25-blog-archive-year {
    font-weight: 600;
    margin-bottom: 8px;
}

.v25-blog-archive-year a {
    color: #1c1917 !important;
    text-decoration: none !important;
}

.v25-blog-archive-year.active a {
    color: #A65A3C !important;
}

.v25-blog-archive-months {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.v25-blog-archive-months li {
    margin-bottom: 6px;
}

.v25-blog-archive-months a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    color: #57534e !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: all 0.2s;
}

.v25-blog-archive-months a:hover {
    background: #f5f5f4;
    color: #A65A3C !important;
}

.v25-blog-archive-months li.active a {
    background: #FDF8F3;
    color: #A65A3C !important;
}

.v25-blog-archive-count {
    font-size: 12px;
    color: #a8a29e;
    background: #f5f5f4;
    padding: 2px 8px;
    border-radius: 10px;
}

/* RSS Link */
.v25-blog-rss {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f97316 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
}

.v25-blog-rss:hover {
    text-decoration: underline !important;
}

/* Comments */
.v25-blog-comments {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e7e5e4;
    margin-top: 24px;
}

.v25-blog-comments-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #1c1917 !important;
    margin: 0 0 24px 0 !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.v25-blog-comments-count {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #A65A3C;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
}

.v25-blog-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.v25-blog-comments-empty {
    color: #a8a29e;
    text-align: center;
    padding: 20px;
}

/* Single Comment */
.v25-blog-comment {
    display: flex;
    gap: 16px;
}

.v25-blog-comment-avatar img,
.v25-blog-comment-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.v25-blog-comment-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #A65A3C, #D4A574);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.v25-blog-comment-body {
    flex: 1;
    background: #f5f5f4;
    padding: 16px;
    border-radius: 12px;
}

.v25-blog-comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.v25-blog-comment-author {
    font-weight: 600;
    color: #1c1917;
}

.v25-blog-comment-date {
    font-size: 13px;
    color: #a8a29e;
}

.v25-blog-comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #44403c;
}

/* Comment Form */
.v25-blog-comment-form {
    padding-top: 24px;
    border-top: 1px solid #f0ede8;
}

.v25-blog-comment-form h4 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1c1917 !important;
    margin: 0 0 16px 0 !important;
}

.v25-blog-form-row {
    margin-bottom: 16px;
}

.v25-blog-input,
.v25-blog-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.v25-blog-input:focus,
.v25-blog-textarea:focus {
    outline: none;
    border-color: #A65A3C;
}

.v25-blog-textarea {
    resize: vertical;
    min-height: 100px;
}

.v25-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #A65A3C;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none !important;
}

.v25-blog-btn:hover {
    background: #8B4A32;
}

/* Error Page */
.v25-blog-error {
    text-align: center;
    padding: 60px 20px;
}

.v25-blog-error svg {
    color: #a8a29e;
    margin-bottom: 24px;
}

.v25-blog-error h1 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 32px !important;
    font-weight: 600 !important;
    color: #1c1917 !important;
    margin: 0 0 12px 0 !important;
}

.v25-blog-error p {
    color: #78716c;
    margin: 0 0 24px 0;
}

/* Utilities */
.v25-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e7e5e4;
    border-top-color: #A65A3C;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Categories from Plugin Override */
.v25-blog-categories .menu-v,
.v25-blog-categories ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.v25-blog-categories .menu-v li,
.v25-blog-categories ul li {
    margin-bottom: 4px !important;
}

.v25-blog-categories .menu-v a,
.v25-blog-categories ul a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: #57534e !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: all 0.2s;
}

.v25-blog-categories .menu-v a:hover,
.v25-blog-categories ul a:hover {
    background: #f5f5f4;
    color: #A65A3C !important;
}

.v25-blog-categories .menu-v li.selected a,
.v25-blog-categories ul li.selected a {
    background: #FDF8F3;
    color: #A65A3C !important;
}
