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

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header and Navigation */
header {
    padding: 20px 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #000000;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-weight: 400;
    position: relative;
}

.twitter-btn {
    background-color: #000000;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.twitter-btn:hover {
    background-color: #333333;
    color: #ffffff !important;
}

/* Hero Section */
.hero {
    padding: 60px 0 50px 0;
    text-align: center;
    border-bottom: 1px solid #333;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: 8px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.hero h2 {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #cccccc;
}

.tagline {
    font-size: 1.1rem;
    color: #999999;
    margin-bottom: 20px;
    font-weight: 300;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid #333;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Sections */
.section {
    padding: 50px 0;
    border-bottom: 1px solid #333;
}

.section h3 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-align: center;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    padding: 30px;
    border: 1px solid #333;
    background-color: rgba(255, 255, 255, 0.02);
}

.card h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.card p {
    color: #cccccc;
    font-weight: 300;
    line-height: 1.7;
}

/* About Content */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-content p {
    color: #cccccc;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* History Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background-color: #000000;
    margin: 2% auto;
    padding: 30px;
    border: 1px solid #333;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #999999;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.close:hover {
    color: #ffffff;
}

.chart-container {
    width: 100%;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    margin: 20px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    color: #666666;
    font-size: 1.2rem;
    text-align: center;
}

.confidence-scale {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.confidence-bar {
    width: 200px;
    height: 20px;
    background: linear-gradient(to right, #ff4444, #ffaa00, #00ff00);
    border: 1px solid #333;
    position: relative;
}

.confidence-indicator {
    position: absolute;
    top: -2px;
    width: 4px;
    height: 24px;
    background-color: #ffffff;
    border: 1px solid #000000;
}

.trade-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.entry-marker, .exit-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid;
}

.entry-marker {
    background-color: #00ff00;
    border-color: #ffffff;
}

.exit-marker {
    background-color: #ff4444;
    border-color: #ffffff;
}

/* Tech Stack */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.tech-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border: 1px solid #333;
    background-color: rgba(255, 255, 255, 0.02);
}

.tech-label {
    font-weight: 300;
    color: #999999;
    letter-spacing: 1px;
}

.tech-value {
    font-weight: 500;
    color: #ffffff;
}

/* Code Snippet */
.code-snippet {
    margin-top: 40px;
}

.code-snippet h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #cccccc;
    letter-spacing: 1px;
}

pre {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 25px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

code {
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
}

/* Syntax Highlighting */
.keyword { color: #569cd6; }
.string { color: #ce9178; }
.comment { color: #6a9955; }
.function { color: #dcdcaa; }
.variable { color: #9cdcfe; }
.number { color: #b5cea8; }
.operator { color: #d4d4d4; }
.punctuation { color: #cccccc; }

/* Performance Metrics */
.performance-metrics {
    margin-top: 30px;
    text-align: center;
}

.stats-heading {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 25px;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
}

.metric-label {
    font-size: 0.85rem;
    color: #999999;
    letter-spacing: 1px;
    font-weight: 300;
}

/* Sample Tweet Section */
.sample-tweet-section {
    margin-top: 40px;
    text-align: center;
}

.sample-tweet-section h4 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #ffffff;
}

/* Twitter Post Styles */
.twitter-post {
    max-width: 450px;
    margin: 0 auto;
    background-color: #000000;
    border: 1px solid #2f3336;
    border-radius: 16px;
    overflow: visible;
    position: relative;
    transform: scale(0.9);
}

.tweet-article {
    padding: 12px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tweet-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.tweet-avatar {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.tweet-user-info {
    flex: 1;
    min-width: 0;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.display-name {
    font-weight: 700;
    font-size: 15px;
    color: #e7e9ea;
    line-height: 20px;
}

.verified-badge {
    width: 20px;
    height: 20px;
    fill: #1d9bf0;
}

.username {
    font-weight: 400;
    font-size: 15px;
    color: #71767b;
    line-height: 20px;
}

.tweet-menu {
    margin-left: auto;
    padding: 8px;
    cursor: pointer;
}

.menu-icon {
    width: 20px;
    height: 20px;
    fill: #71767b;
}

.tweet-content {
    margin-bottom: 12px;
}

.tweet-text {
    font-size: 15px;
    line-height: 20px;
    color: #e7e9ea;
    white-space: pre-line;
    word-wrap: break-word;
    text-align: left;
}

.tweet-footer {
    margin-bottom: 12px;
}

.tweet-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    color: #71767b;
}

.separator {
    margin: 0 4px;
}

.views {
    font-weight: 400;
}

.tweet-actions {
    display: flex;
    justify-content: space-between;
    max-width: 425px;
    margin-top: 12px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #71767b;
    font-size: 13px;
}

.action-item:hover {
    background-color: rgba(29, 155, 240, 0.1);
}

.action-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}


/* API Endpoints */
.api-endpoints {
    margin: 30px 0;
}

.endpoint {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    border: 1px solid #333;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.02);
    transition: background-color 0.3s ease;
}

.endpoint:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.method {
    background-color: #333;
    color: #ffffff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    min-width: 60px;
    text-align: center;
}

.path {
    font-family: 'JetBrains Mono', monospace;
    color: #cccccc;
    font-weight: 400;
    min-width: 200px;
}

.desc {
    color: #999999;
    font-weight: 300;
}

.integration-note {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #333;
    background-color: rgba(255, 255, 255, 0.02);
}

.integration-note p {
    color: #cccccc;
    font-weight: 300;
    line-height: 1.7;
}

/* Trades Header */
.trades-header {
    padding: 80px 0 40px 0;
    text-align: center;
    border-bottom: 1px solid #333;
}

.trades-header h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.trades-subtitle {
    font-size: 1.1rem;
    color: #999999;
    font-weight: 300;
    margin-bottom: 40px;
}

/* Algorithm Header */
.algorithm-header {
    padding: 80px 0 40px 0;
    text-align: center;
    border-bottom: 1px solid #333;
}

.algorithm-header h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.algorithm-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.algorithm-intro p {
    color: #cccccc;
    font-weight: 300;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Performance Overview */
.performance-overview {
    margin-top: 40px;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    border: 1px solid #333;
    background-color: rgba(255, 255, 255, 0.02);
    transition: background-color 0.3s ease;
}

.stat-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 0.9rem;
    color: #999999;
    letter-spacing: 1px;
    font-weight: 300;
}

/* Trades Sections */
.trades-section {
    padding: 60px 0;
    border-bottom: 1px solid #333;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: #ffffff;
}

.filter-controls select {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #333;
    padding: 8px 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.trades-container {
    overflow-x: auto;
}

.unified-trades-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
}

.unified-trades-table th,
.unified-trades-table td {
    padding: 18px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
}

.unified-trades-table th {
    background-color: rgba(255, 255, 255, 0.08);
    font-weight: 500;
    letter-spacing: 1px;
    color: #cccccc;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.unified-trades-table tbody tr {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.unified-trades-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.unified-trades-table td {
    font-weight: 400;
    color: #ffffff;
}

/* Footer */
footer {
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #999999;
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: #999999;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ffffff;
}

/* History Page Specific Styles */
.history-container {
    padding: 40px 0;
}

.history-header {
    text-align: center;
    margin-bottom: 60px;
}

.history-header h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    border: 1px solid #333;
    background-color: rgba(255, 255, 255, 0.02);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #999999;
    letter-spacing: 1px;
}

.trades-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.trades-table th,
.trades-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.trades-table th {
    background-color: rgba(255, 255, 255, 0.05);
    font-weight: 500;
    letter-spacing: 1px;
    color: #cccccc;
}

.trades-table td {
    font-weight: 300;
}

.signal-long {
    color: #00ff00;
    font-weight: 500;
}

.signal-short {
    color: #ff4444;
    font-weight: 500;
}

.pnl-positive {
    color: #00ff00;
}

.pnl-negative {
    color: #ff4444;
}

/* Trades Sections */
.trades-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.active-trades, .historic-trades {
    border: 1px solid #333;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 20px;
}

.active-trades h4, .historic-trades h4 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff;
}

.trades-table tbody tr {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.trades-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Trade Details */
.trade-info {
    margin-top: 20px;
}

.trade-info h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 1px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border: 1px solid #333;
    background-color: rgba(255, 255, 255, 0.02);
}

.info-label {
    color: #999999;
    font-weight: 300;
}

.info-value {
    color: #ffffff;
    font-weight: 500;
}

@media (max-width: 768px) {
    .trades-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Performance Details */
.performance-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.performance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid #333;
    background-color: rgba(255, 255, 255, 0.02);
}

.performance-label {
    font-weight: 300;
    color: #999999;
    letter-spacing: 1px;
}

.performance-value {
    font-weight: 500;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .hero h2 {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .endpoint {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .trades-table {
        font-size: 0.8rem;
    }
    
    .trades-table th,
    .trades-table td {
        padding: 10px 5px;
    }
}
