/* Terminal Newsletter Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

body {
    background: #000000;
    color: #00ff00;
    font-family: 'Fira Code', 'Courier New', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

.terminal-container {
    max-width: 1200px;
    margin: 20px auto;
    background: #000000;
    border: 2px solid #00ff00;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    min-height: calc(100vh - 40px);
}

/* Terminal Header */
.terminal-header {
    background: #1a1a1a;
    padding: 8px 16px;
    border-bottom: 1px solid #00ff00;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.control:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.control.close { 
    background: #ff5f56; 
}

.control.close:hover {
    background: #ff7a71;
    box-shadow: 0 0 8px rgba(255, 95, 86, 0.6);
}

.control.minimize { 
    background: #ffbd2e; 
}

.control.minimize:hover {
    background: #ffd14a;
    box-shadow: 0 0 8px rgba(255, 189, 46, 0.6);
}

.control.maximize { 
    background: #27ca3f; 
}

.control.maximize:hover {
    background: #4dd964;
    box-shadow: 0 0 8px rgba(39, 202, 63, 0.6);
}

.terminal-title {
    color: #00ff00;
    font-size: 14px;
    font-weight: 500;
}

/* Terminal Content */
.terminal-content {
    padding: 20px;
    position: relative;
}

/* Galaga-style background animation */
.galaga-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.ascii-logo {
    position: relative;
    z-index: 2;
}

.enemy-ship {
    position: absolute;
    color: #00ff00;
    font-size: 16px;
    opacity: 0.3;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.enemy-1 {
    animation: flyAcross1 8s infinite;
    animation-delay: 0s;
    top: 10%;
}

.enemy-2 {
    animation: flyAcross2 10s infinite;
    animation-delay: 2s;
    top: 25%;
}

.enemy-3 {
    animation: flyAcross3 12s infinite;
    animation-delay: 4s;
    top: 40%;
}

.enemy-4 {
    animation: flyAcross1 9s infinite;
    animation-delay: 1s;
    top: 55%;
}

.enemy-5 {
    animation: flyAcross2 11s infinite;
    animation-delay: 6s;
    top: 70%;
}

.enemy-6 {
    animation: flyAcross3 7s infinite;
    animation-delay: 3s;
    top: 85%;
}

.star {
    position: absolute;
    color: #00ff00;
    font-size: 12px;
    opacity: 0.2;
    animation: twinkle 3s infinite;
}

.star-1 { top: 15%; left: 10%; animation-delay: 0s; }
.star-2 { top: 30%; left: 80%; animation-delay: 0.5s; }
.star-3 { top: 45%; left: 20%; animation-delay: 1s; }
.star-4 { top: 60%; left: 90%; animation-delay: 1.5s; }
.star-5 { top: 75%; left: 15%; animation-delay: 2s; }
.star-6 { top: 20%; left: 60%; animation-delay: 2.5s; }
.star-7 { top: 50%; left: 70%; animation-delay: 1.2s; }
.star-8 { top: 80%; left: 40%; animation-delay: 0.8s; }

@keyframes flyAcross1 {
    0% {
        left: -50px;
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-20px);
    }
    50% {
        transform: translateY(10px);
    }
    75% {
        transform: translateY(-10px);
    }
    100% {
        left: calc(100% + 50px);
        transform: translateY(0px);
    }
}

@keyframes flyAcross2 {
    0% {
        left: calc(100% + 50px);
        transform: translateY(0px);
    }
    25% {
        transform: translateY(15px);
    }
    50% {
        transform: translateY(-25px);
    }
    75% {
        transform: translateY(5px);
    }
    100% {
        left: -50px;
        transform: translateY(0px);
    }
}

@keyframes flyAcross3 {
    0% {
        left: -50px;
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(90deg);
    }
    50% {
        transform: translateY(20px) rotate(180deg);
    }
    75% {
        transform: translateY(-5px) rotate(270deg);
    }
    100% {
        left: calc(100% + 50px);
        transform: translateY(0px) rotate(360deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* ASCII Logo */
.ascii-logo {
    text-align: center;
    margin-bottom: 20px;
}

.ascii-logo pre {
    color: #00ff00;
    font-size: 8px;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Prompt styling */
.prompt, .command-line, .nav-prompt {
    margin: 10px 0;
    font-weight: 500;
}

.user {
    color: #00ff00;
}

.path {
    color: #00ccff;
}

.cursor {
    color: #00ff00;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Navigation */
.terminal-nav {
    margin: 30px 0;
    border: 1px solid #333;
    padding: 15px;
    background: #0a0a0a;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.nav-link {
    color: #00ff00;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    border: 1px solid #00ff00;
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.nav-link::before {
    content: attr(data-command);
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 10px;
    color: #666;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

/* Main Content */
.terminal-main {
    margin-top: 30px;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.output {
    background: #0a0a0a;
    padding: 20px;
    border-left: 4px solid #00ff00;
    margin: 15px 0;
}

.output h1, .output h2 {
    color: #00ff00;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.output p {
    margin-bottom: 10px;
    color: #cccccc;
}

.output ul {
    margin-left: 20px;
    color: #cccccc;
}

.output li {
    margin-bottom: 5px;
}

/* Features container with image */
.features-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 20px;
}

.features-list {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.features-list li {
    margin-bottom: 8px;
    color: #cccccc;
    font-size: 16px;
}

.about-image {
    flex-shrink: 0;
    max-width: 350px;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 3px solid #00ff00;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transition: all 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.7);
}

.about-image .tenor-gif-embed {
    border: 2px solid #00ff00;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    overflow: hidden;
}

.about-image .gif-attribution {
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
}

.about-image .gif-attribution a {
    color: #00ff00;
    text-decoration: none;
    opacity: 0.8;
}

.about-image .gif-attribution a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .features-container {
        flex-direction: column;
        align-items: center;
    }
    
    .about-image {
        max-width: 200px;
        margin-top: 15px;
    }
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.article-card {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
}

.article-title {
    color: #00ff00;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

.article-meta {
    color: #666;
    font-size: 12px;
    margin-bottom: 15px;
}

.article-preview {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.4;
}



/* Article Detail Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #000;
    margin: 5% auto;
    padding: 30px;
    border: 2px solid #00ff00;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.modal-title {
    color: #00ff00;
    font-size: 24px;
    margin: 0;
}

.close-modal {
    color: #666;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ff6b6b;
}

.modal-body {
    color: #cccccc;
    line-height: 1.8;
}

.modal-body h1, .modal-body h2, .modal-body h3 {
    color: #00ff00;
    margin: 20px 0 10px 0;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body code {
    background: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
    color: #00ff00;
}

.modal-body pre {
    background: #1a1a1a;
    padding: 15px;
    border-left: 4px solid #00ff00;
    overflow-x: auto;
    margin: 15px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-container {
        margin: 10px;
        border-radius: 0;
    }
    
    .terminal-content {
        padding: 15px;
    }
    
    .ascii-logo pre {
        font-size: 6px;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 10px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .ascii-logo {
        display: none;
    }
    
    .terminal-header {
        padding: 8px;
    }
    
    .terminal-title {
        font-size: 12px;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    color: #666;
    font-style: italic;
}

.loading::after {
    content: '';
    animation: dots 2s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Success/Error Messages */
.message {
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid;
}

.message.success {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
}

.message.error {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff00;
} 