/* El Tor Website Styles - Dark Theme */
/* Color palette from eltor-app theme.ts */

:root {
    /* Purple shades */
    --purple-0: #f5e6ff;
    --purple-1: #e5d1fa;
    --purple-2: #d4baf5;
    --purple-3: #c3a1f0;
    --purple-4: #b388eb;
    --purple-5: #a273e8;
    --purple-6: #9163d7;
    --purple-7: #8050c6;
    --purple-8: #7044b1;
    --purple-9: #60379c;
    
    /* Teal shades */
    --teal-0: #E6FFFA;
    --teal-1: #B2F5EA;
    --teal-2: #80E2D0;
    --teal-3: #4DC0B5;
    --teal-4: #38A196;
    --teal-5: #2A847C;
    --teal-6: #226F68;
    --teal-7: #1B5E55;
    --teal-8: #144D44;
    --teal-9: #0F3D37;
    
    /* Dark theme colors */
    --bg-primary: #1e1e1e;
    --bg-secondary: #2a2a2a;
    --bg-tertiary: #333333;
    --text-primary: #d4d4d4;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;
    
    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #1a1a1a;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Testnet Banner */
.testnet-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 250px;
    overflow: hidden;
    z-index: 1000;
    pointer-events: none;
}

.testnet-banner::before {
    content: '*EARLY TESTNET';
    position: absolute;
    width: 350px;
    background: #dc2626;
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 12px 0;
    transform: rotate(-45deg);
    top: 50px;
    left: -100px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Map Background */
.map-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.map-background canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Ensure content is above map */
.header,
.hero,
.video-section,
.download-section,
.relay-section,
.footer {
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-6);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--purple-6);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-more-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-more-btn:hover {
    color: var(--purple-5);
    background: rgba(139, 92, 246, 0.1);
}

.nav-secondary {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 0;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.nav-secondary.active {
    display: flex;
}

.nav-secondary .nav-link {
    padding: 0.75rem 1.25rem;
    border-radius: 0;
}

.nav-secondary .nav-link:hover {
    background: rgba(139, 92, 246, 0.15);
}

.nav-secondary .nav-link::after {
    display: none;
}

/* Hero Section */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--purple-6) 0%, var(--teal-4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    margin-top: -2rem;
}

.hero-text-box {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem 2.5rem 3.5rem 2.5rem;
    display: inline-block;
    max-width: 1000px;
    margin-bottom: 3rem;
    position: relative;
}

.hero-text-box::after {
    content: '*EARLY TESTNET: Use at your own risk. Reckless';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #dc2626;
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 8px 0;
    border-radius: 0 0 12px 12px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--purple-5);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.2;
    margin-bottom: 1rem;
    list-style: none;
    padding-left: 0;
    text-align: left;
    display: inline-block;
}

.hero-description li {
    margin-bottom: 0.5rem;
}

/* Install Section */
.install-section {
    margin-bottom: 4rem;
}

.install-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--purple-5);
}

.terminal-block {
    background: var(--bg-primary);
    border: 1px solid var(--purple-7);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 1.1rem;
    color: var(--text-primary);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(144, 99, 215, 0.2);
    transition: all 0.3s ease;
}

.terminal-block:hover {
    border-color: var(--purple-6);
    box-shadow: 0 6px 20px rgba(144, 99, 215, 0.3);
}

.terminal-block code {
    flex: 1;
    word-break: break-all;
}

.copy-btn {
    background: var(--purple-7);
    border: none;
    color: white;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--purple-6);
    transform: scale(1.05);
}

.copy-btn.copied {
    background: var(--teal-4);
}

.copy-btn svg {
    width: 20px;
    height: 20px;
}

.install-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-6);
    box-shadow: 0 8px 24px rgba(144, 99, 215, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--purple-5);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Video Section */
.video-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--purple-5);
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(144, 99, 215, 0.4);
    border: 2px solid var(--purple-7);
}

/* Download Section */
.download-section {
    padding: 4rem 0;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-6);
    box-shadow: 0 8px 32px rgba(144, 99, 215, 0.4);
}

.download-card.platform-detected {
    border-color: var(--purple-6);
    box-shadow: 0 0 20px rgba(144, 99, 215, 0.5);
    background: rgba(144, 99, 215, 0.1);
}

.download-icon {
    color: var(--purple-5);
    transition: transform 0.3s ease;
}

.download-card:hover .download-icon {
    transform: scale(1.1);
}

.download-card h3 {
    font-size: 1.8rem;
    margin: 0;
}

.download-card p {
    color: var(--text-secondary);
    margin: 0;
}

.download-badge {
    background: var(--purple-7);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.download-card:hover .download-badge {
    background: var(--purple-6);
}

.download-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
}

.download-footer a {
    color: var(--purple-5);
    text-decoration: none;
    border-bottom: 1px solid var(--purple-7);
    transition: color 0.3s ease;
}

.download-footer a:hover {
    color: var(--purple-4);
}

/* Relay Section */
.relay-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.2);
}


.relay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.relay-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.relay-card:hover {
    transform: translateY(-5px);
    border-color: var(--teal-4);
    box-shadow: 0 8px 24px rgba(56, 161, 150, 0.3);
}

.relay-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.relay-card h3 {
    color: var(--teal-4);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.relay-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Relay Flow */
.relay-flow {
    margin: 4rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 3rem;
}

.relay-flow h3 {
    text-align: center;
    color: var(--purple-5);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.flow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--purple-7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.flow-step p {
    text-align: center;
    max-width: 150px;
    color: var(--text-secondary);
}

.flow-arrow {
    color: var(--purple-5);
    font-size: 2rem;
    font-weight: 300;
}

/* Relay CTA */
.relay-cta {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
}

.relay-cta h3 {
    color: var(--teal-4);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.relay-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.relay-terminal {
    max-width: 800px;
    margin: 2rem auto;
}

.btn-secondary {
    display: inline-block;
    background: var(--teal-5);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: var(--teal-4);
    transform: scale(1.05);
}

/* Twitter Feed Section */
.twitter-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.tweets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1400px;
    justify-items: center;
}

.tweet-item {
    width: 100%;
    max-width: 550px;
    display: flex;
    justify-content: center;
}

.twitter-tweet {
    margin: 0 auto !important;
    background: rgba(10, 13, 18, 0.90) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(145, 99, 215, 0.2) !important;
    border-radius: 12px !important;
}

@media (max-width: 768px) {
    .testnet-banner {
        display: none;
    }
    
    .map-background {
        display: none;
    }
    
    .tweets-grid {
        grid-template-columns: 1fr;
    }
}

.tweet-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tweet-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-6);
    box-shadow: 0 8px 24px rgba(144, 99, 215, 0.3);
}

.tweet-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tweet-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--purple-7);
}

.tweet-author {
    flex: 1;
}

.tweet-author-name {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    font-size: 1rem;
}

.tweet-author-handle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tweet-logo {
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

.tweet-content {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
}

.tweet-content a {
    color: var(--purple-5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tweet-content a:hover {
    color: var(--purple-4);
    text-decoration: underline;
}

.tweet-media {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.tweet-media img,
.tweet-media video {
    width: 100%;
    height: auto;
    display: block;
}

.tweet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.tweet-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.tweet-link {
    color: var(--purple-5);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tweet-link:hover {
    color: var(--purple-4);
}

.twitter-cta {
    text-align: center;
    margin-top: 2rem;
}

.btn-twitter {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--purple-7);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-twitter:hover {
    background: var(--purple-6);
    transform: scale(1.05);
}

.tweet-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.tweet-error-message {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--purple-5);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--purple-5);
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .terminal-block {
        font-size: 0.9rem;
        padding: 1rem;
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .flow-steps {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .features-grid,
    .download-grid,
    .relay-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .terminal-block {
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.feature-card,
.download-card,
.relay-card {
    animation: fadeIn 0.6s ease-out;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--purple-7);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-6);
}
