/**
 * IAM Gatekeepers - Recent Posts Terminal Style
 * MS-DOS retro styling for blog post listings with ASCII Art
 */

.iam-recent-posts-terminal {
    background-color: #000000;
    border: 2px solid #00ff00;
    padding: 30px;
    margin: 40px 0;
    font-family: 'VT323', 'Share Tech Mono', 'Courier New', monospace;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

/* ASCII Art Styling */
.iam-ascii-art-header {
    text-align: center;
    margin-bottom: 20px;
}

.iam-ascii-art {
    color: #00ff00;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 14px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
    display: inline-block;
    margin: 0;
    padding: 20px;
    background-color: rgba(0, 255, 0, 0.03);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 4px;
    white-space: pre;
    font-weight: normal;
}

/* Standalone ASCII Art */
.iam-ascii-standalone {
    margin: 30px 0;
    text-align: center;
}

.iam-ascii-standalone .iam-ascii-art {
    font-size: 18px;
}

.iam-ascii-align-left {
    text-align: left;
}

.iam-ascii-align-center {
    text-align: center;
}

.iam-ascii-align-right {
    text-align: right;
}

/* ASCII Art Color Variations */
.iam-ascii-green .iam-ascii-art {
    color: #00ff00;
    border-color: rgba(0, 255, 0, 0.3);
    background-color: rgba(0, 255, 0, 0.03);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
}

.iam-ascii-cyan .iam-ascii-art {
    color: #00ffff;
    border-color: rgba(0, 255, 255, 0.3);
    background-color: rgba(0, 255, 255, 0.03);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.iam-ascii-yellow .iam-ascii-art {
    color: #ffff00;
    border-color: rgba(255, 255, 0, 0.3);
    background-color: rgba(255, 255, 0, 0.03);
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.6);
}

.iam-terminal-header {
    color: #00ff00;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    border-bottom: 2px solid #00ff00;
    padding-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.iam-terminal-prompt {
    color: #00ffff;
    margin-right: 10px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0.3;
    }
}

.iam-terminal-subheader {
    color: #00ff00;
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.8;
    letter-spacing: 1px;
}

.iam-posts-list {
    margin-top: 30px;
}

.iam-post-item {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #008000;
    position: relative;
    transition: all 0.3s ease;
}

.iam-post-item:last-child {
    border-bottom: none;
}

.iam-post-item:hover {
    background-color: rgba(0, 255, 0, 0.05);
    padding: 15px;
    margin-left: -15px;
    margin-right: -15px;
}

.iam-post-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
}

.iam-post-date {
    color: #ffff00;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
}

.iam-post-categories {
    color: #00ffff;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.iam-post-author {
    color: #808080;
    font-size: 14px;
    letter-spacing: 1px;
}

.iam-post-title {
    font-size: 28px;
    margin: 15px 0;
    color: #00ff00;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
    font-weight: normal;
}

.iam-post-title .iam-prompt {
    color: #00ffff;
    margin-right: 10px;
    font-size: 32px;
}

.iam-post-title a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.iam-post-title a:hover {
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    letter-spacing: 3px;
}

.iam-post-excerpt {
    color: #00ff00;
    font-size: 18px;
    line-height: 1.6;
    margin: 15px 0;
    padding-left: 30px;
    opacity: 0.9;
}

.iam-post-read-more {
    margin-top: 15px;
    padding-left: 30px;
}

.iam-read-more-link {
    color: #ffff00;
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ffff00;
    background-color: transparent;
}

.iam-read-more-link:hover {
    color: #000000;
    background-color: #ffff00;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.6);
    transform: translateX(5px);
}

.iam-view-all-posts {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #00ff00;
}

.iam-border-decoration {
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    opacity: 0.6;
    text-align: center;
}

.iam-view-all-link {
    color: #00ffff;
    text-decoration: none;
    font-size: 22px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid #00ffff;
    background-color: transparent;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.iam-view-all-link:hover {
    color: #000000;
    background-color: #00ffff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
    transform: scale(1.05);
}

.iam-no-posts {
    color: #ffff00;
    font-size: 20px;
    text-align: center;
    padding: 40px 20px;
    letter-spacing: 2px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .iam-recent-posts-terminal {
        padding: 20px;
        margin: 20px 0;
    }

    .iam-terminal-header {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .iam-terminal-subheader {
        font-size: 16px;
    }

    .iam-post-title {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .iam-post-excerpt {
        font-size: 16px;
        padding-left: 15px;
    }

    .iam-post-read-more {
        padding-left: 15px;
    }

    .iam-read-more-link,
    .iam-view-all-link {
        font-size: 16px;
        padding: 10px 20px;
    }

    .iam-post-meta {
        font-size: 14px;
        gap: 10px;
    }
}

/* Animation for new posts loading */
@keyframes fadeInTerminal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.iam-post-item {
    animation: fadeInTerminal 0.5s ease-out;
}

.iam-post-item:nth-child(1) {
    animation-delay: 0.1s;
}

.iam-post-item:nth-child(2) {
    animation-delay: 0.2s;
}

.iam-post-item:nth-child(3) {
    animation-delay: 0.3s;
}

.iam-post-item:nth-child(4) {
    animation-delay: 0.4s;
}

.iam-post-item:nth-child(5) {
    animation-delay: 0.5s;
}

/* Terminal cursor effect on hover */
.iam-post-title a::after {
    content: '_';
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: blink 1s infinite;
}

.iam-post-title a:hover::after {
    opacity: 1;
}
