/* 
 * RUG AI - Main Stylesheet (Updated)
 * Core styles for the RUG AI website with reduced saturation and improved spacing
 */

:root {
    /* Updated color scheme with fixed accent color */
    --bg-color: #0d0d10;
    --panel-bg: rgba(15, 15, 20, 0.7);
    --text-color: rgba(255, 255, 255, 0.85);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-primary: rgba(255, 145, 0, 0.85); /* Fixed orange accent color */
    --accent-secondary: rgba(0, 180, 230, 0.85); /* Secondary accent for specific elements */
    --border-color: rgba(255, 145, 0, 0.25);
    --error-color: rgba(220, 53, 34, 0.85);
    --success-color: rgba(66, 186, 91, 0.85);
    
    /* Spacing variables for consistency */
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 20px;
    --space-lg: 30px;
    --space-xl: 50px;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Improved container spacing */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md);
}

/* Typography with improved readability */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--space-md);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--space-md);
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
}

/* Improved button styles with better spacing */
.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, rgba(255, 145, 0, 0.8), rgba(255, 106, 0, 0.8));
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: var(--space-sm) 0;
    min-width: 200px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 145, 0, 0.3);
}

.cta-button i {
    margin-left: var(--space-sm);
}

.cta-button.large {
    padding: var(--space-md) var(--space-lg);
    font-size: 1.2rem;
    min-width: 250px;
}

.button-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 145, 0, 0.8), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cta-button:hover .button-glow {
    opacity: 0.5;
}

/* Reduced pulsing animation for buttons when progress is high */
@keyframes subtle-pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 145, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 145, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 145, 0, 0);
    }
}

.pulse-animation {
    animation: subtle-pulse-animation 3s infinite;
}

/* Improved glass panel with better spacing and reduced saturation */
.glass-panel {
    background: var(--panel-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Modern panel with enhanced styling for Web3 look */
.modern-panel {
    background: linear-gradient(145deg, rgba(15, 15, 20, 0.7), rgba(20, 20, 30, 0.7));
    border: 1px solid rgba(255, 145, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 
                inset 0 1px 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.modern-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 145, 0, 0.5), transparent);
    z-index: 1;
}

.panel-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    margin-bottom: 0;
}

/* Form elements with improved spacing */
input, select, textarea {
    width: 100%;
    padding: var(--space-sm);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: var(--space-sm);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(255, 145, 0, 0.2);
}

label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
}

/* Header styles with improved spacing */
.site-header {
    position: relative;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-lg);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.header-status {
    display: flex;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    margin-right: var(--space-xs);
    box-shadow: 0 0 5px var(--accent-primary);
}

/* Terminal header with improved spacing */
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    margin-top: var(--space-sm);
}

.terminal-controls {
    display: flex;
    align-items: center;
}

.terminal-control {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: var(--space-xs);
}

.terminal-control:nth-child(1) {
    background-color: #ff5f56;
}

.terminal-control:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-control:nth-child(3) {
    background-color: #27c93f;
}

.terminal-title {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.terminal-status {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.terminal-status .blink {
    color: var(--success-color);
    margin-right: var(--space-xs);
    animation: blink 2s infinite;
}

/* Hero section with improved spacing */
.hero-section {
    position: relative;
    padding: var(--space-xl) 0;
    text-align: center;
    overflow: hidden;
}

.main-title {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    color: var(--accent-primary);
}

.subtitle {
    margin-bottom: var(--space-lg);
}

.subtitle h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.typing-effect {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    height: 1.5em;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.typing-effect span {
    display: inline-block;
    white-space: nowrap;
}

.hero-cta {
    margin-top: var(--space-lg);
    display: flex;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.matrix-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../../../img/effects/matrix.png");
    opacity: 0.05;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 145, 0, 0.1), transparent 70%);
}

/* Final snap section with improved spacing */
.final-snap-section {
    padding: var(--space-lg) 0;
}

.panel-warning {
    background: rgba(255, 106, 0, 0.1);
    border-left: 3px solid var(--accent-primary);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

/* Enhanced progress container with more prominence */
.progress-container {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 145, 0, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Urgency text above progress bar with reduced blinking */
.urgency-text {
    text-align: center;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 145, 0, 0.5);
    animation: subtle-blink 4s infinite;
}

/* Reduced blinking animation */
@keyframes subtle-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

/* Improved dual stats layout */
.dual-stats {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: var(--space-md);
    font-size: 1.1rem;
}

.stat-item {
    display: flex;
    align-items: center;
}

.stat-label {
    margin-right: var(--space-xs);
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 600;
}

/* Enhanced progress bar with larger size and more prominent appearance */
.progress-bar-container {
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(255, 145, 0, 0.3);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Modern progress bar with gradient and glow */
.progress-bar {
    height: 100%;
    width: 100%;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 145, 0, 0.8), rgba(255, 106, 0, 0.8));
    border-radius: 15px;
    transition: width 0.5s ease;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 145, 0, 0.7);
}

/* Enhanced countdown timer with larger size and more prominence */
.countdown {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: 0 0 5px rgba(255, 145, 0, 0.5);
}

/* Security and Privacy Section */
.security-privacy-section {
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid var(--accent-secondary);
}

.security-privacy-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

.security-privacy-content strong {
    color: var(--accent-secondary);
}

.final-snap-cta {
    margin-top: var(--space-lg);
    text-align: center;
}

.cta-info {
    margin-top: var(--space-md);
    font-size: 0.9rem;
}

.cta-info p {
    margin-bottom: var(--space-xs);
}

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Dashboard section with improved spacing */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.wallet-info {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-md);
    border-radius: 8px;
    margin-bottom: var(--space-md);
}

.wallet-address, .wallet-tier {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
}

.tier-badge {
    background: var(--accent-primary);
    padding: 2px var(--space-xs);
    border-radius: 4px;
    font-size: 0.8rem;
}

.simulator-container {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-md);
    border-radius: 8px;
}

.simulator-header {
    margin-bottom: var(--space-md);
}

.simulator-header h4 {
    margin-bottom: 0;
}

.input-group {
    margin-bottom: var(--space-md);
}

.output-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.chart-container {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-md);
    border-radius: 8px;
    margin-bottom: var(--space-md);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.chart-header h4 {
    margin-bottom: 0;
}

.chart-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.chart-wrapper {
    height: 200px;
    position: relative;
}

.terminal-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.terminal-content {
    padding: var(--space-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    height: 200px;
    overflow-y: auto;
}

.log-entry {
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
}

.log-entry:nth-child(odd) {
    color: var(--text-color);
}

/* How it works section with improved spacing */
.how-it-works-section {
    padding: var(--space-lg) 0;
}

/* Chains section with improved spacing */
.chains-section {
    padding: var(--space-lg) 0;
}

.chain-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
}

.chain-item {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-md);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}

.chain-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--accent-primary);
}

.chain-name {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.chain-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Manifesto section with improved spacing */
.manifesto-section {
    padding: var(--space-lg) 0;
}

.manifesto-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.feature-item {
    display: flex;
    align-items: center;
}

.feature-cross, .feature-check {
    margin-right: var(--space-sm);
    font-weight: 700;
}

.feature-cross {
    color: var(--error-color);
}

.feature-check {
    color: var(--success-color);
}

.quote-block {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-md);
    border-left: 3px solid var(--accent-primary);
    margin-bottom: var(--space-lg);
}

.quote-block blockquote {
    font-style: italic;
}

.final-cta {
    text-align: center;
}

/* Footer with improved spacing */
.site-footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-color);
    margin-top: var(--space-xl);
}

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

.footer-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
}

.footer-link {
    margin-left: var(--space-md);
    font-size: 0.8rem;
}

/* Scanline effect with reduced intensity */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 145, 0, 0.1);
    opacity: 0.3;
    z-index: 9;
    pointer-events: none;
}

/* Utility classes */
.blink {
    animation: subtle-blink 4s infinite;
}

/* Settings Container Styles */
.settings-container {
    width: 100%;
}

.settings-content {
    width: 100%;
}

/* Settings Block Styles */
.settings-block {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    border-left: 3px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.settings-block:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.settings-block-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(255, 145, 0, 0.3);
}

.settings-block-header i {
    font-size: 1.5rem;
    margin-right: var(--space-sm);
    color: var(--accent-primary);
}

.settings-block-header h4 {
    margin-bottom: 0;
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-option:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.option-label {
    font-weight: 500;
}

.option-control {
    min-width: 150px;
    display: flex;
    justify-content: flex-end;
}

.settings-select {
    width: 100%;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
}

.settings-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.3);
    outline: none;
}

.settings-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(255, 145, 0, 0.5);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-color);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.connected-wallet {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.wallet-address {
    font-family: 'Courier New', monospace;
}

.disconnect-btn {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    font-size: 1rem;
}

/* Responsive styles with improved spacing */
@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: var(--space-sm);
    }
    
    .glass-panel {
        padding: var(--space-md);
    }
    
    .settings-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .option-control {
        width: 100%;
        margin-top: var(--space-xs);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
}
