/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, 'Courier New', monospace;
    line-height: 1.4;
    color: #1a1a1a;
    background: #f5f5f5;
    min-height: 100vh;
}

/* Container and layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 2px solid #000000;
}

/* Header */
.header {
    background: #ffffff;
    color: #000000;
    padding: 1.5rem 0;
    border-bottom: 3px solid #000000;
    position: relative;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #40fba7;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.1;
}

.site-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.7;
    color: #666666;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

/* Buttons */
.download-btn,
.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid #000000;
    background: #ffffff;
    color: #000000;
    border-radius: 0;
    cursor: pointer;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.1s ease;
    position: relative;
}

.download-btn:hover,
.copy-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: none;
}

.download-btn:active,
.copy-btn:active {
    transform: translate(1px, 1px);
}

.download-icon,
.copy-icon {
    width: 16px;
    height: 16px;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 2rem;
    background: #ffffff;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-section {
    margin-bottom: 2rem;
}

.intro-text {
    background: #40fba7;
    color: #000000;
    padding: 1rem 1.5rem;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #000000;
    border-radius: 0;
    line-height: 1.3;
    text-align: center;
}

.architecture-text {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #f8f8f8;
    border: 2px solid #000000;
    border-radius: 0;
    padding: 3rem 2rem 2rem 2rem;
    margin: 0;
    color: #1a1a1a;
    overflow-x: auto;
    tab-size: 4;
    position: relative;
}

.architecture-text::before {
    content: "> ARCHITECTURE.MD";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #000000;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #000000;
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 3px solid #000000;
    padding: 1.5rem;
    text-align: center;
    color: #666666;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    background-color: #F0F0F0;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-credits {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-credits a {
    color: #000000;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.1s ease;
    border-bottom: 1px solid transparent;
}

.footer-credits a:hover {
    color: #000000;
    border-bottom-color: #40fba7;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #ffffff;
    color: #000000;
    padding: 1rem 1.5rem;
    border: 2px solid #000000;
    border-radius: 0;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 1000;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    box-shadow: 4px 4px 0px #000000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .site-title {
        font-size: 2rem;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .download-btn,
    .copy-btn {
        width: 100%;
        justify-content: center;
    }

    .main-content {
        padding: 1rem;
    }

    .architecture-text {
        padding: 2.5rem 1rem 1rem 1rem;
        font-size: 0.8rem;
    }

    .intro-text {
        padding: 0.75rem 1rem;
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }

    .footer-content {
        gap: 0.75rem;
    }

    .footer-credits {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }

    .architecture-text {
        font-size: 0.75rem;
        padding: 2rem 0.75rem 0.75rem 0.75rem;
    }

    .intro-text {
        padding: 0.5rem 0.75rem;
        font-size: 0.65rem;
        letter-spacing: 0.25px;
    }
}

/* Print styles */
@media print {
    .header,
    .header-actions,
    .toast,
    .footer-credits {
        display: none;
    }

    .footer {
        background: white;
        border: none;
        padding: 1rem 0;
        color: black;
    }

    .container {
        border: none;
        background: white;
    }

    .architecture-text {
        background: white;
        border: 1px solid #ccc;
        padding: 1rem;
        font-size: 10pt;
        color: black;
    }

    .architecture-text::before {
        background: #000000;
        color: white;
        border-bottom: 1px solid #000000;
    }

    body {
        background: white;
        color: black;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.download-btn:focus,
.copy-btn:focus {
    outline: 2px solid #ff0000;
    outline-offset: 2px;
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animation for buttons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.download-btn:active,
.copy-btn:active {
    animation: pulse 0.2s ease;
} 