/* Additional Custom Styles for MakeLab Retro Theme */

/* Pagination styling */
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    background: var(--card-bg);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 0.7rem;
    transition: all 0.3s ease;
    min-width: 50px;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--neon-cyan);
    color: var(--dark-bg);
    box-shadow: 0 0 20px var(--neon-cyan);
    transform: scale(1.1);
}

.pagination .prev,
.pagination .next {
    background: var(--neon-pink);
    border-color: var(--neon-pink);
    color: white;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: var(--neon-purple);
    border-color: var(--neon-purple);
}

/* Search form */
.search-form {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.8rem 1rem;
    background: var(--code-bg);
    border: 2px solid var(--neon-cyan);
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
}

.search-form input[type="search"]:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 16, 240, 0.5);
}

.search-form button {
    padding: 0.8rem 1.5rem;
}

/* Tags and categories */
.tag-cloud-link,
.cat-item a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    margin: 0.2rem;
    background: rgba(255, 16, 240, 0.1);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    text-decoration: none;
    font-size: 0.8rem !important;
    transition: all 0.3s ease;
}

.tag-cloud-link:hover,
.cat-item a:hover {
    background: rgba(255, 16, 240, 0.3);
    box-shadow: 0 0 10px var(--neon-pink);
    transform: scale(1.05);
}

/* Entry meta (date, author, etc) */
.posted-on,
.byline,
.cat-links,
.tags-links,
.comments-link {
    display: inline-block;
    margin-right: 1rem;
    font-size: 0.85rem;
}

.posted-on::before {
    content: "📅 ";
}

.byline::before {
    content: "👤 ";
}

.cat-links::before {
    content: "📁 ";
}

.tags-links::before {
    content: "🏷️ ";
}

.comments-link::before {
    content: "💬 ";
}

/* Featured post styling */
.sticky {
    border: 3px solid var(--neon-yellow);
    position: relative;
}

.sticky::after {
    content: "⭐ FEATURED";
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--neon-yellow);
    color: var(--dark-bg);
    padding: 0.3rem 1rem;
    font-family: var(--font-main);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    box-shadow: 0 0 15px var(--neon-yellow);
}

/* Post format icons */
.format-video .entry-title::before {
    content: "▶️ ";
}

.format-gallery .entry-title::before {
    content: "🖼️ ";
}

.format-quote .entry-title::before {
    content: "💭 ";
}

.format-link .entry-title::before {
    content: "🔗 ";
}

/* Blockquote styling */
blockquote {
    border-left: 4px solid var(--neon-orange);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(255, 102, 0, 0.1);
    font-style: italic;
    color: var(--neon-orange);
}

blockquote p {
    margin: 0;
}

blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

blockquote cite::before {
    content: "— ";
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--card-bg);
}

table th,
table td {
    padding: 0.8rem;
    border: 1px solid var(--neon-cyan);
    text-align: left;
}

table th {
    background: rgba(0, 255, 255, 0.2);
    color: var(--neon-cyan);
    font-family: var(--font-main);
    font-size: 0.8rem;
    text-transform: uppercase;
}

table tr:nth-child(even) {
    background: rgba(0, 255, 255, 0.05);
}

table tr:hover {
    background: rgba(0, 255, 255, 0.1);
}

/* Lists */
.entry-content ul,
.entry-content ol {
    padding-left: 2rem;
    margin: 1rem 0;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.5rem;
    position: relative;
}

.entry-content ul li::marker {
    color: var(--neon-green);
    content: "▸ ";
}

/* Author bio */
.author-bio {
    background: var(--card-bg);
    border: 2px solid var(--neon-orange);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-bio .avatar {
    border-radius: 50%;
    border: 3px solid var(--neon-orange);
    box-shadow: 0 0 15px var(--neon-orange);
}

.author-bio .author-name {
    font-family: var(--font-main);
    color: var(--neon-orange);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Related posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--neon-purple);
}

.related-posts h3 {
    font-family: var(--font-main);
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
    margin-bottom: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.related-post-item {
    background: var(--card-bg);
    border: 2px solid var(--neon-purple);
    padding: 1rem;
    transition: all 0.3s ease;
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(176, 36, 255, 0.5);
}

/* Social share buttons */
.social-share {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.social-share-button {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-share-button:hover {
    background: var(--neon-cyan);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--neon-cyan);
    animation: spin 1s linear infinite;
}

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

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--neon-pink);
    border: 2px solid var(--neon-pink);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 0 15px var(--neon-pink);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px var(--neon-pink);
}

/* Print styles */
@media print {
    body::before,
    body::after,
    .site-header,
    .site-footer,
    .main-navigation,
    .widget,
    .social-share,
    .scroll-to-top {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    article {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* Accessibility improvements */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--neon-cyan);
    clip: auto !important;
    clip-path: none;
    color: var(--dark-bg);
    display: block;
    font-size: 1rem;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    background-color: var(--neon-cyan);
    color: var(--dark-bg);
    font-weight: bold;
    left: -9999px;
    padding: 1rem;
    position: absolute;
    text-decoration: none;
    top: 0;
}

.skip-link:focus {
    left: 6px;
    top: 6px;
    z-index: 100000;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --dark-bg: #000000;
        --text-primary: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hide any WordPress/Theme credits that might appear */
.site-footer a[href*="wordpress.org"],
.site-footer a[href*="twentytwentyfive"],
.site-footer *:has(> a[href*="wordpress.org"]),
.wp-block-site-title,
footer [class*="wp-block-site"]:not(.site-footer) {
    display: none !important;
}

/* Ensure our custom footer content shows */
.site-footer .site-info,
.site-footer .footer-container {
    display: block !important;
}
