@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;700&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #c2d916;
    color: #c2d916;
    font-family: 'Source Code Pro', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

/* Layout */
.container {
    position: fixed; /* Fixed position to cover the screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10003; /* Above overlay and flash */
    display: none; /* Initially hidden */
    border: 0px solid transparent;
}

/* Logo Styles */
.logo-container {
    margin: 2rem 0;
}

.logo {
    font-size: 5rem;
    font-weight: bold;
    text-shadow: 0 0 10px #c2d916;
    display: inline-block;
    animation: flicker 4s infinite alternate;
}

@keyframes flicker {
    0%, 95% {
        opacity: 1;
        text-shadow: 0 0 10px #c2d916, 0 0 20px #c2d916, 0 0 40px #c2d916;
    }
    96%, 96.5% {
        opacity: 0.8;
        text-shadow: none;
    }
    97%, 97.5% {
        opacity: 1;
        text-shadow: 0 0 10px #c2d916, 0 0 20px #c2d916;
    }
    98%, 98.5% {
        opacity: 0.9;
        text-shadow: none;
    }
    99%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px #c2d916, 0 0 20px #c2d916, 0 0 40px #c2d916;
    }
}

/* Content Section */
.content-section {
    margin: 2rem 0;
}

.description {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #c2d916;
}

/* Wallet Section */
.wallet-addresses {
    margin-bottom: 2rem;
}

.wallet-address {
    word-break: break-all;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #c2d916;
}

/* Section Styles */
.section, .proof-section {
    margin: 2rem 0;
    padding: 2rem;
    border: 1px solid #c2d916;
    border-radius: 8px;
}

.section h2 {
    margin-bottom: 1rem;
    color: #c2d916;
}

/* Command Input Section */
.proof-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #c2d916;
    margin-bottom: 1.5rem;
}

.command-input {
    width: 100%;
    padding: 1rem;
    background: #c2d916;
    border: 1px solid #c2d916;
    color: #c2d916;
    font-family: 'Source Code Pro', monospace;
    margin-bottom: 1rem;
    resize: vertical;
    min-height: 100px;
    max-height: 300px;
}

.command-input:focus {
    outline: none;
    border-color: #c2d916;
    box-shadow: 0 0 10px #0ff5;
}

.command-submit {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #c2d916;
    color: #c2d916;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.command-submit:hover {
    background: #c2d916;
    box-shadow: 0 0 15px #c2d916;
}

/* Response Container */
.response-container {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #c2d916;
    min-height: 100px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    color: #c2d916;
    line-height: 1.4;
}

/* Tweet Styles */
.tweet {
    padding: 1rem;
    border-bottom: 1px solid #c2d916;
    transition: background-color 0.3s ease;
}

.tweet:last-child {
    border-bottom: none;
}

.tweet:hover {
    background-color: #0ff1;
}

.tweet a {
    color: #c2d916;
    text-decoration: none;
    display: block;
}

.tweet-content {
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.tweet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.tweet-metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #c2d916;
}

.tweet-metric {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tweet-metric-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.tweet-timestamp {
    color: #c2d916;
    font-size: 0.75rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .tweet-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .tweet-metrics {
        gap: 0.75rem;
    }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links .button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: 120px;
    background: transparent;
    border: 2px solid #c2d916;
    color: #c2d916;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.3s ease;
    text-align: center;
}

.social-links .button:hover {
    background: #c2d916;
    box-shadow: 0 0 15px #c2d916;
}

/* Animation */
.typing {
    color: #c2d916;
}

.cursor {
    display: inline-block;
    width: 0.5em;
    height: 1.2em;
    background-color: #c2d916;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

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

/* Media Queries */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .social-links .button {
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .tweet-metrics {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }
    
    .section, .proof-section {
        padding: 1rem;
    }
}

/* Security-related UI Components */
.error-message {
    background-color: #c2d91610;
    border: 1px solid #c2d91655;
    color: #c2d916;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-family: 'Source Code Pro', monospace;
    animation: errorPulse 2s infinite;
}
  
.error-message a {
    color: #c2d916;
    text-decoration: underline;
}
  
@keyframes errorPulse {
    0% { border-color: #c2d91655; }
    50% { border-color: #c2d91699; }
    100% { border-color: #c2d91655; }
  }
  
.warning-message {
    background-color: #ffbf0010;
    border: 1px solid #ffbf0055;
    color: #ffbf00;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}
  
.rate-limit-warning {
    font-size: 0.8rem;
    color: #ffbf00;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
  
.rate-limit-warning::before {
    content: '⚠';
    font-size: 1rem;
}
  
.security-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    color: #c2d916;
    opacity: 0.7;
}
  
/* Enhanced Input Security */
.command-input.invalid {
    border-color: #c2d916;
    animation: invalidShake 0.5s;
}
  
@keyframes invalidShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
  
/* Loading States */
.loading-indicator {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #c2d916;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}
  
@keyframes spin {
    to { transform: rotate(360deg); }
}
  
/* Enhanced Response Container */
.response-container {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0ff3 #c2d916;
}
  
.response-container::-webkit-scrollbar {
    width: 6px;
}
  
.response-container::-webkit-scrollbar-track {
    background: #c2d916;
}
  
.response-container::-webkit-scrollbar-thumb {
    background-color: #c2d916;
    border-radius: 3px;
}
  
/* Sanitized Content Markers */
.sanitized-content {
    position: relative;
    padding-left: 1rem;
}
  
.sanitized-content::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #c2d916;
    opacity: 0.5;
}
  
/* Disabled State Enhancements */
.command-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}
  
.command-submit:disabled::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 5px,
      #0ff1 5px,
      #0ff1 10px
    );
}