/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: #050404;
    color: #eadad3;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Terminal container */
.terminal {
    max-width: 1200px;
    margin: 0 auto;
    background: #050404;
    border: 2px solid #aa5d4e;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(170, 93, 78, 0.3);
    min-height: 100vh;
}

/* Terminal header */
.terminal-header {
    background: #312828;
    padding: 10px 20px;
    border-bottom: 1px solid #aa5d4e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca3f; }

.terminal-title {
    color: #f57c4d;
    font-weight: bold;
    margin-left: 20px;
}

/* Terminal content */
.terminal-content {
    padding: 30px;
}

/* Main title */
.main-title {
    color: #f57c4d;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(245, 124, 77, 0.5);
}

/* Command sections */
.command-section {
    margin-bottom: 2rem;
}

.command {
    color: #aa5d4e;
    font-weight: bold;
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #f57c4d;
    white-space: nowrap;
    animation: typing 2s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #f57c4d; }
}

/* Output sections */
.output {
    margin-left: 20px;
    color: #eadad3;
    line-height: 1.8;
}

.output p {
    margin-bottom: 1rem;
}

.output ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}

.output li {
    margin-bottom: 0.5rem;
    color: #768a84;
}

/* Official links */
.official-links {
    margin-left: 20px;
}

.link-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 10px;
    background: rgba(170, 93, 78, 0.1);
    border-radius: 5px;
    border-left: 3px solid #aa5d4e;
}

.onion-icon {
    margin-right: 15px;
    font-size: 1.2rem;
}

.onion-link {
    flex: 1;
    color: #687584;
    font-family: 'Share Tech Mono', monospace;
    word-break: break-all;
    margin-right: 15px;
}

.copy-btn {
    background: #aa5d4e;
    color: #eadad3;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #f57c4d;
    box-shadow: 0 0 10px rgba(245, 124, 77, 0.5);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Statistics grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(170, 93, 78, 0.1);
    border-radius: 8px;
    border: 1px solid #aa5d4e;
}

.stat-number {
    font-size: 2rem;
    color: #f57c4d;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(245, 124, 77, 0.3);
}

.stat-label {
    color: #768a84;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #334c3c;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background: rgba(51, 76, 60, 0.3);
    padding: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    color: #768a84;
    font-weight: bold;
}

.faq-question:hover {
    background: rgba(51, 76, 60, 0.5);
}

.faq-arrow {
    margin-right: 10px;
    transition: transform 0.3s ease;
    color: #aa5d4e;
}

.faq-question.active .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer {
    display: none;
    padding: 15px;
    background: rgba(5, 4, 4, 0.5);
    border-top: 1px solid #334c3c;
}

.faq-answer.show {
    display: block;
}

.faq-answer p {
    margin-bottom: 1rem;
    color: #eadad3;
}

.faq-answer ul, .faq-answer ol {
    margin-left: 20px;
    color: #768a84;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

/* Warning section */
.warning .command {
    color: #ff5f56;
    animation: warning-blink 2s infinite;
}

.warning-text {
    color: #ff5f56 !important;
}

.warning-output {
    border-left: 3px solid #ff5f56;
    padding-left: 15px;
    background: rgba(255, 95, 86, 0.1);
    border-radius: 0 5px 5px 0;
}

.warning-output p {
    color: #ff5f56;
    font-weight: bold;
}

@keyframes warning-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Flicker effect */
.flicker {
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Footer */
.terminal-footer {
    border-top: 1px solid #aa5d4e;
    padding: 20px;
    text-align: center;
    background: #312828;
    color: #768a84;
    font-size: 0.9rem;
}

/* Copy notification */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ca3f;
    color: #050404;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.copy-notification.show {
    transform: translateX(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .terminal {
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .terminal-content {
        padding: 20px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .link-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .onion-link {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .terminal-content {
        padding: 15px;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .command {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
