/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
select:focus {
    outline: 2px solid #e94560;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #e94560;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Theme Colors */
.theme-dark-1 {
    background-color: #1a1a2e;
    color: #e0e0e0;
}
.theme-dark-2 {
    background-color: #16213e;
    color: #f0f0f0;
}
.theme-dark-3 {
    background-color: #0f3460;
    color: #ffffff;
}
.theme-dark-4 {
    background-color: #0d1421;
    color: #e8e8e8;
}
.theme-dark-5 {
    background-color: #1e1e2e;
    color: #f0f0f0;
}
.theme-dark-6 {
    background-color: #2d1b69;
    color: #ffffff;
}
.theme-dark-7 {
    background-color: #1a1a1a;
    color: #e0e0e0;
}
.theme-dark-8 {
    background-color: #0f1419;
    color: #f5f5f5;
}
.theme-dark-9 {
    background-color: #1e0f1f;
    color: #e8e8e8;
}
.theme-dark-10 {
    background-color: #0f1a2e;
    color: #ffffff;
}

/* Header */
.main-header {
    padding: 1rem 0;
    border-bottom: 1px solid #ffffff20;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}
.main-header nav {
    display: flex;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: 1px solid;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    display: inline-block;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}
.btn-primary {
    background-color: #e94560;
    color: #ffffff;
    border-color: #e94560;
}
.btn-primary:hover {
    background-color: #c63a50;
    border-color: #c63a50;
}
.btn-secondary {
    background-color: #6b7280;
    color: #ffffff;
    border-color: #6b7280;
}
.btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}
#theme-switcher-btn {
    background: none;
    color: #e0e0e0;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    margin-left: 1rem;
}
#theme-switcher-btn:hover {
    background-color: #e0e0e0;
    color: #1a1a2e;
}

/* Theme Selector Dropdown */
.theme-selector {
    margin-left: 1rem;
    position: relative;
}
.theme-selector select {
    background-color: transparent;
    color: #e0e0e0;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}
.theme-selector select:focus {
    outline: none;
    border-color: #e94560;
}
.theme-selector select option {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

/* Landing Page */
.landing-page .hero {
    text-align: center;
    padding: 4rem 0;
}
.landing-page .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.landing-page .hero p {
    margin-bottom: 2rem;
}
.btn-large {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
}
.features {
    padding: 4rem 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.feature-item {
    padding: 2rem;
    border-radius: 8px;
}
.theme-dark-1 .feature-item { background-color: #161625; }
.theme-dark-2 .feature-item { background-color: #0e1a30; }
.theme-dark-3 .feature-item { background-color: #0d2c54; }
.theme-dark-4 .feature-item { background-color: #0a0f1a; }
.theme-dark-5 .feature-item { background-color: #16161e; }
.theme-dark-6 .feature-item { background-color: #231a4a; }
.theme-dark-7 .feature-item { background-color: #161616; }
.theme-dark-8 .feature-item { background-color: #0a0e13; }
.theme-dark-9 .feature-item { background-color: #160f16; }
.theme-dark-10 .feature-item { background-color: #0a1424; }

/* Live Charts Section */
.live-charts {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}
.live-charts h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}
.chart-widget {
    background-color: #1f1f38;
    border: 1px solid #2a2a4a;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.chart-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}
.chart-widget h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    color: #667eea;
    text-align: center;
    font-weight: 600;
}
.tradingview-widget-container {
    border-radius: 8px;
    overflow: hidden;
    background-color: #161625;
    min-height: 300px;
}
.tradingview-widget-copyright {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #888888;
}
.tradingview-widget-copyright a {
    color: #667eea;
    text-decoration: none;
}
.tradingview-widget-copyright a:hover {
    text-decoration: underline;
}


/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.summary-card {
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: background-color 0.3s;
}
.summary-card.long::before {
    background: linear-gradient(90deg, #4ade80, #22c55e);
}
.summary-card.short::before {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

/* Enhanced coin pair title styling */
.summary-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

/* Recommendation badge styling */
.recommendation-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}
.recommendation-badge.long {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}
.recommendation-badge.short {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Widget date styling */
.widget-date {
    font-size: 0.75rem;
    color: #888888;
    margin-top: 1rem;
    text-align: right;
    font-style: italic;
    opacity: 0.8;
}

/* Risk vs Reward styling */
.risk-percent {
    color: #ef4444;
    font-weight: 600;
    font-size: 0.9rem;
}
.reward-percent {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.9rem;
}
.risk-reward-summary {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 4px solid #667eea;
}
.risk-reward-summary h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #667eea;
}
.risk-reward-summary p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* Timeframe Analysis Grid */
.timeframe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.timeframe-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.timeframe-item h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.timeframe-item p {
    margin: 0.4rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Rationale List */
.rationale-list {
    margin-top: 1rem;
}
.rationale-list p {
    margin: 0.8rem 0;
    padding-left: 1rem;
    line-height: 1.5;
    position: relative;
}
.rationale-list p:before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Base card backgrounds with subtle color hints */
.theme-dark-1 .summary-card { 
    background-color: #1f1f38; 
    border: 1px solid #2a2a4a;
}
.theme-dark-1 .summary-card.long { 
    background: linear-gradient(135deg, #1f1f38 0%, #1a2f1a 100%);
    border-color: #2a4a2a;
}
.theme-dark-1 .summary-card.short { 
    background: linear-gradient(135deg, #1f1f38 0%, #2f1a1a 100%);
    border-color: #4a2a2a;
}

.theme-dark-2 .summary-card { 
    background-color: #1f2a47; 
    border: 1px solid #2a3a5a;
}
.theme-dark-2 .summary-card.long { 
    background: linear-gradient(135deg, #1f2a47 0%, #1a2f1a 100%);
    border-color: #2a4a2a;
}
.theme-dark-2 .summary-card.short { 
    background: linear-gradient(135deg, #1f2a47 0%, #2f1a1a 100%);
    border-color: #4a2a2a;
}

.theme-dark-3 .summary-card { 
    background-color: #1a4a8d; 
    border: 1px solid #2a5a9d;
}
.theme-dark-3 .summary-card.long { 
    background: linear-gradient(135deg, #1a4a8d 0%, #1a2f1a 100%);
    border-color: #2a4a2a;
}
.theme-dark-3 .summary-card.short { 
    background: linear-gradient(135deg, #1a4a8d 0%, #2f1a1a 100%);
    border-color: #4a2a2a;
}

.theme-dark-4 .summary-card { 
    background-color: #1a1f2e; 
    border: 1px solid #2a2f3e;
}
.theme-dark-4 .summary-card.long { 
    background: linear-gradient(135deg, #1a1f2e 0%, #1a2f1a 100%);
    border-color: #2a4a2a;
}
.theme-dark-4 .summary-card.short { 
    background: linear-gradient(135deg, #1a1f2e 0%, #2f1a1a 100%);
    border-color: #4a2a2a;
}

.theme-dark-5 .summary-card { 
    background-color: #2a2a3e; 
    border: 1px solid #3a3a4e;
}
.theme-dark-5 .summary-card.long { 
    background: linear-gradient(135deg, #2a2a3e 0%, #1a2f1a 100%);
    border-color: #2a4a2a;
}
.theme-dark-5 .summary-card.short { 
    background: linear-gradient(135deg, #2a2a3e 0%, #2f1a1a 100%);
    border-color: #4a2a2a;
}

.theme-dark-6 .summary-card { 
    background-color: #3a2a69; 
    border: 1px solid #4a3a79;
}
.theme-dark-6 .summary-card.long { 
    background: linear-gradient(135deg, #3a2a69 0%, #1a2f1a 100%);
    border-color: #2a4a2a;
}
.theme-dark-6 .summary-card.short { 
    background: linear-gradient(135deg, #3a2a69 0%, #2f1a1a 100%);
    border-color: #4a2a2a;
}

.theme-dark-7 .summary-card { 
    background-color: #2a2a2a; 
    border: 1px solid #3a3a3a;
}
.theme-dark-7 .summary-card.long { 
    background: linear-gradient(135deg, #2a2a2a 0%, #1a2f1a 100%);
    border-color: #2a4a2a;
}
.theme-dark-7 .summary-card.short { 
    background: linear-gradient(135deg, #2a2a2a 0%, #2f1a1a 100%);
    border-color: #4a2a2a;
}

.theme-dark-8 .summary-card { 
    background-color: #1a1f24; 
    border: 1px solid #2a2f34;
}
.theme-dark-8 .summary-card.long { 
    background: linear-gradient(135deg, #1a1f24 0%, #1a2f1a 100%);
    border-color: #2a4a2a;
}
.theme-dark-8 .summary-card.short { 
    background: linear-gradient(135deg, #1a1f24 0%, #2f1a1a 100%);
    border-color: #4a2a2a;
}

.theme-dark-9 .summary-card { 
    background-color: #2a1f2a; 
    border: 1px solid #3a2f3a;
}
.theme-dark-9 .summary-card.long { 
    background: linear-gradient(135deg, #2a1f2a 0%, #1a2f1a 100%);
    border-color: #2a4a2a;
}
.theme-dark-9 .summary-card.short { 
    background: linear-gradient(135deg, #2a1f2a 0%, #2f1a1a 100%);
    border-color: #4a2a2a;
}

.theme-dark-10 .summary-card { 
    background-color: #1a2a3e; 
    border: 1px solid #2a3a4e;
}
.theme-dark-10 .summary-card.long { 
    background: linear-gradient(135deg, #1a2a3e 0%, #1a2f1a 100%);
    border-color: #2a4a2a;
}
.theme-dark-10 .summary-card.short { 
    background: linear-gradient(135deg, #1a2a3e 0%, #2f1a1a 100%);
    border-color: #4a2a2a;
}

/* Details Page */
#details-container h1 {
    border-bottom: 2px solid #ffffff30;
    padding-bottom: 0.5rem;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}
.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.details-section {
    padding: 1.5rem;
    border-radius: 8px;
}
.theme-dark-1 .details-section { background-color: #1f1f38; }
.theme-dark-2 .details-section { background-color: #1f2a47; }
.theme-dark-3 .details-section { background-color: #1a4a8d; }
.theme-dark-4 .details-section { background-color: #1a1f2e; }
.theme-dark-5 .details-section { background-color: #2a2a3e; }
.theme-dark-6 .details-section { background-color: #3a2a69; }
.theme-dark-7 .details-section { background-color: #2a2a2a; }
.theme-dark-8 .details-section { background-color: #1a1f24; }
.theme-dark-9 .details-section { background-color: #2a1f2a; }
.theme-dark-10 .details-section { background-color: #1a2a3e; }

.chart-thumbnails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.chart-thumbnail {
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.2s;
}
.chart-thumbnail:hover {
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


/* Footer */
.main-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #ffffff20;
}

/* Disclaimer Modal */
.disclaimer-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}
.disclaimer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1f1f38;
    border: 2px solid #667eea;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.disclaimer-header {
    padding: 1.5rem;
    border-bottom: 1px solid #ffffff20;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px 10px 0 0;
}
.disclaimer-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}
.disclaimer-body {
    padding: 1.5rem;
    line-height: 1.6;
    color: #e0e0e0;
}
.disclaimer-body h3 {
    color: #667eea;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}
.disclaimer-body h3:first-child {
    margin-top: 0;
}
.disclaimer-body p {
    margin: 0.8rem 0;
    text-align: justify;
}
.disclaimer-footer {
    padding: 1.5rem;
    border-top: 1px solid #ffffff20;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background-color: #161625;
    border-radius: 0 0 10px 10px;
}

/* Unauthorized Page */
.unauthorized-page {
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
}
.unauthorized-content {
    text-align: center;
    padding: 3rem;
    background-color: #1f1f38;
    border: 2px solid #ef4444;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.unauthorized-content h1 {
    color: #ef4444;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.unauthorized-content p {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}