/* Blog Card Components - Soul Scrolls Design System */

/* ===== IMMORTAL SCROLL CARDS ===== */
.blog-post,
.blog-post-card {
    /* Epic immortal scroll styling - DARKER mystical theme */
    background: linear-gradient(135deg,
        rgba(13, 13, 26, 0.98),
        rgba(26, 26, 51, 0.95),
        rgba(13, 13, 26, 0.97)
    );
    border: 2px solid rgba(255, 94, 120, 0.5);
    border-radius: 20px;
    padding: 2rem;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.8),
        0 6px 20px rgba(255, 94, 120, 0.2),
        0 0 60px rgba(255, 94, 120, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(255, 94, 120, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: visible; /* Changed from hidden to allow dropdown to show */
    backdrop-filter: blur(15px);
    z-index: 1; /* Default stacking */
}

/* Elevate card when dropdown is active */
.blog-post-card.has-active-dropdown {
    z-index: 10000 !important; /* Above all other cards */
}

/* Mystical glow effect */
.blog-post::before,
.blog-post-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 94, 120, 0.6), 
        rgba(255, 202, 40, 0.4), 
        rgba(79, 195, 247, 0.4),
        rgba(255, 94, 120, 0.6)
    );
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    animation: mysticalPulse 4s ease-in-out infinite;
    transition: opacity 0.4s ease;
}


@keyframes mysticalPulse {
    0%, 100% { 
        background-size: 100% 100%;
        opacity: 0.3;
    }
    50% { 
        background-size: 120% 120%;
        opacity: 0.6;
    }
}

.blog-post:hover,
.blog-post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.9),
        0 12px 40px rgba(255, 94, 120, 0.4),
        0 0 80px rgba(255, 94, 120, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 94, 120, 0.3);
    border-color: rgba(255, 94, 120, 0.8);
    background: linear-gradient(135deg,
        rgba(13, 13, 26, 1),
        rgba(26, 26, 51, 0.98),
        rgba(13, 13, 26, 0.99)
    );
}

.blog-post:hover::before,
.blog-post-card:hover::before {
    opacity: 1;
}


.blog-post:focus-within,
.blog-post-card:focus-within {
    outline: 3px solid rgba(255, 94, 120, 0.8);
    outline-offset: 2px;
}

/* ===== CARD HEADER ===== */
.scroll-author,
.modal-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 94, 120, 0.15);
}

/* Author avatar link */
.author-avatar-link {
    display: block;
    text-decoration: none;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 94, 120, 0.4);
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 94, 120, 0.2);
}

.author-avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 94, 120, 0.6), rgba(255, 202, 40, 0.4));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.author-avatar-link:hover .author-avatar,
.author-avatar:hover {
    border-color: rgba(255, 94, 120, 0.8);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 94, 120, 0.4);
}

.author-avatar-link:hover .author-avatar::before,
.author-avatar:hover::before {
    opacity: 1;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.author-avatar:hover img {
    transform: scale(1.1);
}

/* Author name link styling */
.author-name-link {
    text-decoration: none;
    cursor: pointer;
}

.author-name {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 94, 120, 0.8), rgba(255, 202, 40, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-name-link:hover .author-name,
.author-name:hover {
    background: linear-gradient(135deg, rgba(255, 94, 120, 1), rgba(255, 202, 40, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 8px rgba(255, 94, 120, 0.5);
    transform: translateX(2px);
}

/* ===== CARD CONTENT ===== */
.scroll-title,
.blog-post h3,
.blog-post-card h3,
.blog-post-card .post-title {
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 94, 120, 0.3);
    /* Removed gradient text - solid white for better readability */
}

.scroll-excerpt,
.blog-post .content,
.blog-post-card .post-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ===== CARD FOOTER ===== */
.scroll-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid;
    border-image: linear-gradient(90deg, 
        transparent, 
        rgba(255, 94, 120, 0.4), 
        rgba(255, 202, 40, 0.3), 
        rgba(255, 94, 120, 0.4), 
        transparent
    ) 1;
    position: relative;
}


.scroll-date,
.date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-style: italic;
    font-family: 'Cinzel', serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
}

.scroll-date::before,
.date::before {
    content: '•';
    margin-right: 0.5rem;
    color: rgba(255, 202, 40, 0.6);
    font-style: normal;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* ===== MODERN INTERACTIVE ELEMENTS ===== */
.like-dislike-buttons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.like-btn, .challenge-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    min-height: 44px;
    font-family: system-ui, -apple-system, sans-serif;
}

.like-btn i, .challenge-btn i {
    font-size: 1.1rem;
}

.like-btn:hover {
    color: #ff5e78;
    background: rgba(255, 94, 120, 0.15);
    border-color: rgba(255, 94, 120, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 94, 120, 0.2);
}

.challenge-btn:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.like-btn.active {
    color: #ff5e78;
    background: rgba(255, 94, 120, 0.15);
    border-color: rgba(255, 94, 120, 0.4);
}

.challenge-btn.active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
}

/* Modern Challenge Dropdown System */
.challenge-dropdown {
    position: absolute;
    top: calc(100% + 8px); /* Position below the button to avoid bounding box */
    right: 0;
    margin-top: 0;
    margin-bottom: 0;
    z-index: var(--z-modal); /* Use high z-index from system */
    animation: dropdownSlide 0.2s ease-out;
    max-height: 300px; /* Prevent too tall */
    overflow-y: auto; /* Scroll if needed */
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(4px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.challenge-options {
    background: linear-gradient(135deg,
        rgba(13, 13, 26, 0.98),
        rgba(26, 26, 51, 0.95)
    );
    border: 2px solid rgba(255, 94, 120, 0.5);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 94, 120, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    min-width: 220px;
    backdrop-filter: blur(15px);
}

.challenge-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 94, 120, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    text-align: left;
    font-family: system-ui, -apple-system, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.challenge-option:hover {
    background: linear-gradient(135deg, rgba(255, 94, 120, 0.15), rgba(255, 202, 40, 0.1));
    color: #ffffff;
    border-color: rgba(255, 94, 120, 0.5);
    box-shadow: 0 4px 12px rgba(255, 94, 120, 0.2);
    transform: translateY(-1px);
}

.challenge-option i {
    width: 16px;
    color: rgba(255, 94, 120, 0.8);
    text-align: center;
    font-size: 1rem;
}

.challenge-option:hover i {
    color: rgba(255, 202, 40, 0.9);
}

.like-count, .dislike-count, .challenge-count {
    font-size: 0.8125rem;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
}

/* ===== MODERN ACTION BUTTONS ===== */
.whisper-link, .edit-post-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 32px;
    font-family: system-ui, -apple-system, sans-serif;
}

.whisper-link:hover, .edit-post-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.whisper-link:focus, .edit-post-btn:focus {
    outline: 2px solid rgba(255, 94, 120, 0.5);
    outline-offset: 2px;
}

.whisper-link:active, .edit-post-btn:active {
    transform: translateY(0);
}

/* ===== POST CARD ACTION BUTTONS ===== */
.action-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 94, 120, 0.3);
    transform: translateY(-2px);
}

/* Read More Button */
.read-more-btn {
    background: linear-gradient(135deg, rgba(255, 94, 120, 0.15), rgba(255, 202, 40, 0.15));
    border: 2px solid rgba(255, 94, 120, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, rgba(255, 94, 120, 0.3), rgba(255, 202, 40, 0.3));
    border-color: rgba(255, 94, 120, 0.6);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 94, 120, 0.3);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(4px);
}

/* Vote Buttons with Counts */
.vote-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.6rem;
}

.vote-btn .vote-count {
    font-weight: 700;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Comment Button */
.comment-btn {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
}

.comment-btn:hover {
    background: rgba(79, 195, 247, 0.15);
    color: rgba(79, 195, 247, 0.95);
    border-color: rgba(79, 195, 247, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.2);
}

.comment-btn i {
    font-size: 1.1rem;
}

.comment-btn .vote-count {
    font-weight: 700;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Share Button */
.share-btn {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.share-btn i {
    font-size: 1.1rem;
}

.share-btn:hover {
    background: rgba(138, 180, 248, 0.15);
    color: rgba(138, 180, 248, 0.95);
    border-color: rgba(138, 180, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 180, 248, 0.2);
}

/* Post Header Styling */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 94, 120, 0.15);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.95rem;
}

.post-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-style: italic;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
}

/* Post Footer Styling */
.post-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid;
    border-image: linear-gradient(90deg,
        transparent,
        rgba(255, 94, 120, 0.4),
        rgba(255, 202, 40, 0.3),
        rgba(255, 94, 120, 0.4),
        transparent
    ) 1;
}

/* Hide any text nodes or unwanted content in post-footer */
.post-footer::after {
    content: none;
}

.post-footer > *:not(.post-interactions) {
    display: none !important;
}

.post-interactions {
    font-size: 1rem; /* Reset font-size for buttons */
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.post-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.post-stats .stat i {
    color: rgba(255, 94, 120, 0.6);
    font-size: 0.95rem;
}

.post-interactions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Post Content Styling */
.post-content {
    cursor: pointer;
}

.post-title {
    margin-bottom: 0.75rem;
}

.post-excerpt {
    margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE DESIGN - Mobile First ===== */
@media (max-width: 640px) {
    .blog-post {
        padding: var(--space-4);
    }
    
    .scroll-footer {
        flex-direction: column;
        gap: var(--space-3);
        align-items: stretch;
    }
    
    .post-actions {
        justify-content: center;
    }
    
    .author-avatar {
        width: 32px;
        height: 32px;
    }
    
    .scroll-title,
    .blog-post h3 {
        font-size: var(--text-lg);
    }
}

/* ===== GRID LAYOUT ===== */
.scroll-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .scroll-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .scroll-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .blog-post {
        transition: none;
    }
    
    .blog-post:hover {
        transform: none;
    }
}

@media (prefers-contrast: high) {
    .blog-post {
        border-width: 2px;
    }
    
    .author-name, .scroll-title {
        color: var(--text);
    }
}

/* ===== LOADING STATES ===== */
.scroll-grid:empty::after {
    content: "Loading scrolls...";
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-8);
    color: var(--text-muted);
    font-style: italic;
}

/* ===== ERROR STATES ===== */
.empty-message, .error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-8);
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
}

/* ===== MODERN DELETE BUTTON ===== */
.delete-btn {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 6px;
    color: #ef4444;
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    min-height: 32px;
    font-family: system-ui, -apple-system, sans-serif;
}

.delete-btn:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
    color: #dc2626;
    transform: translateY(-1px);
}

.delete-btn:active {
    transform: translateY(0);
}

.delete-btn:focus {
    outline: 2px solid rgba(220, 38, 38, 0.5);
    outline-offset: 2px;
}

/* Scroll controls layout for card buttons */
.scroll-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ===== PRINT STYLES ===== */
@media print {
    .blog-post {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        background: white;
        color: black;
    }
    
    .post-actions,
    .like-dislike-buttons,
    .delete-btn {
        display: none;
    }
}

/* ===== BLOG SEARCH SECTION ===== */
.blog-search-section {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

.blog-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,
        rgba(13, 13, 26, 0.95),
        rgba(26, 26, 51, 0.9)
    );
    border: 2px solid rgba(255, 94, 120, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.blog-search-box:focus-within {
    border-color: rgba(255, 94, 120, 0.6);
    box-shadow: 0 0 20px rgba(255, 94, 120, 0.3);
}

.blog-search-box i {
    color: rgba(255, 94, 120, 0.7);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.blog-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Crimson Text', serif;
}

.blog-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.search-results-info {
    text-align: center;
    padding: 0.75rem;
    margin-top: 0.75rem;
    background: rgba(255, 94, 120, 0.1);
    border: 1px solid rgba(255, 94, 120, 0.3);
    border-radius: 8px;
    color: rgba(255, 94, 120, 0.9);
    font-size: 0.9rem;
    font-family: 'Crimson Text', serif;
}

/* Light Theme Search Styles */
body.light-theme .blog-search-box {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95),
        rgba(248, 248, 252, 0.9)
    );
    border-color: rgba(255, 94, 120, 0.4);
}

body.light-theme .blog-search-box:focus-within {
    border-color: rgba(255, 94, 120, 0.7);
}

body.light-theme .blog-search-box i {
    color: rgba(255, 94, 120, 0.8);
}

body.light-theme .blog-search-input {
    color: #1a1a2e;
}

body.light-theme .blog-search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body.light-theme .search-results-info {
    background: rgba(255, 94, 120, 0.15);
    border-color: rgba(255, 94, 120, 0.4);
    color: rgba(200, 50, 80, 0.9);
}

/* Mobile Responsive Search */
@media (max-width: 768px) {
    .blog-search-section {
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }

    .blog-search-box {
        padding: 0.6rem 0.8rem;
    }

    .blog-search-input {
        font-size: 0.9rem;
    }

    .search-results-info {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}

/* ===== ARCHIVE NAVIGATION (BOTTOM) ===== */
.archive-navigation-bottom {
    margin: 4rem auto 2rem;
    max-width: 800px;
    padding: 0 1rem;
}

.archive-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary, #c9b3e0);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.divider-ornament {
    color: var(--accent, #ff5e78);
    font-size: 1.5rem;
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
}

.divider-text {
    color: var(--text-secondary, #c9b3e0);
}

.view-archive-btn {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg,
        rgba(26, 26, 51, 0.95),
        rgba(42, 64, 102, 0.9)
    );
    border: 2px solid rgba(255, 94, 120, 0.4);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 5px 15px rgba(255, 94, 120, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.view-archive-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 94, 120, 0.1),
        rgba(255, 202, 40, 0.05)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.view-archive-btn:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 94, 120, 0.7);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.7),
        0 8px 20px rgba(255, 94, 120, 0.3),
        0 0 60px rgba(255, 94, 120, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.view-archive-btn:hover::before {
    opacity: 1;
}

.btn-icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 94, 120, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(255, 94, 120, 0.3);
    transition: all 0.3s ease;
}

.view-archive-btn:hover .btn-icon-wrapper {
    background: rgba(255, 94, 120, 0.25);
    border-color: rgba(255, 94, 120, 0.5);
    transform: rotate(-5deg) scale(1.1);
}

.btn-icon-wrapper i {
    font-size: 1.8rem;
    color: var(--accent, #ff5e78);
    transition: all 0.3s ease;
}

.view-archive-btn:hover .btn-icon-wrapper i {
    color: #ffca28;
    transform: scale(1.2);
}

.btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text, #f0e6ff);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.view-archive-btn:hover .btn-title {
    color: #ffca28;
}

.btn-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary, #c9b3e0);
    opacity: 0.8;
}

.btn-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.btn-arrow i {
    font-size: 1.5rem;
    color: var(--accent, #ff5e78);
}

.view-archive-btn:hover .btn-arrow {
    transform: translateX(8px);
}

/* Mobile Responsive Archive Button */
@media (max-width: 768px) {
    .archive-navigation-bottom {
        margin: 3rem 0 1.5rem;
        padding: 0 0.75rem;
    }

    .archive-divider {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        font-size: 0.85rem;
    }

    .divider-ornament {
        font-size: 1.2rem;
    }

    .view-archive-btn {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
        padding: 1.75rem 1.5rem;
    }

    .btn-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .btn-icon-wrapper i {
        font-size: 2rem;
    }

    .btn-content {
        align-items: center;
    }

    .btn-title {
        font-size: 1.3rem;
    }

    .btn-subtitle {
        font-size: 0.85rem;
        text-align: center;
    }

    .btn-arrow {
        display: none; /* Hide arrow on mobile for cleaner look */
    }
}

@media (max-width: 480px) {
    .archive-navigation-bottom {
        margin: 2.5rem 0 1rem;
    }

    .view-archive-btn {
        padding: 1.5rem 1.25rem;
    }

    .btn-title {
        font-size: 1.2rem;
    }

    .btn-subtitle {
        font-size: 0.8rem;
    }
}

/* Light Theme Support */
body.light-theme .view-archive-btn {
    background: linear-gradient(135deg,
        rgba(248, 248, 252, 0.95),
        rgba(255, 255, 255, 0.9)
    );
    border-color: rgba(255, 94, 120, 0.4);
}

body.light-theme .btn-icon-wrapper {
    background: rgba(255, 94, 120, 0.1);
}

body.light-theme .btn-title {
    color: #1a1a2e;
}

body.light-theme .btn-subtitle {
    color: rgba(0, 0, 0, 0.6);
} 