/* Simulation Trading Platform Styles */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #10b981;
    border: 2px solid #10b981;
}

.btn-secondary:hover {
    background: #10b981;
    color: white;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #10b981;
}

.nav-brand i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #10b981;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Simulation Hero Section */
.simulation-hero {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.simulation-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.hero-title {
    font-size: 3rem;
    color: #064e3b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #065f46;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-pill i {
    color: #10b981;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.simulation-preview {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    border: 1px solid #e5e7eb;
}

.preview-header {
    background: #f8fafc;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.preview-controls {
    display: flex;
    gap: 0.5rem;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-dot.red { background: #ef4444; }
.control-dot.yellow { background: #f59e0b; }
.control-dot.green { background: #10b981; }

.preview-title {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.preview-content {
    padding: 1.5rem;
}

.mock-chart {
    margin-bottom: 1rem;
    height: 200px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
}

.mock-data {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.symbol {
    font-weight: 600;
    color: #374151;
}

.price {
    font-weight: 500;
    color: #111827;
}

.change {
    font-weight: 500;
    font-size: 0.875rem;
}

.change.positive { color: #10b981; }
.change.negative { color: #ef4444; }

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #064e3b;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Simulation Platform */
.simulation-platform {
    padding: 80px 0;
    background: #ffffff;
}

.platform-interface {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 3rem;
}

.platform-interface {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 600px;
}

.platform-sidebar {
    background: #f8fafc;
    padding: 2rem;
    border-right: 1px solid #e5e7eb;
}

.account-summary {
    margin-bottom: 2rem;
}

.account-summary h3 {
    color: #064e3b;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.account-balance {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.balance-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.balance-item .label {
    color: #6b7280;
    font-size: 0.9rem;
}

.balance-item .value {
    font-weight: 600;
    color: #111827;
}

.balance-item .value.positive {
    color: #10b981;
}

.balance-item .value.negative {
    color: #ef4444;
}

.quick-actions {
    margin-top: 2rem;
}

.quick-actions h4 {
    color: #064e3b;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.action-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.buy-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.buy-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.sell-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.sell-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.info-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.info-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* Platform Main */
.platform-main {
    padding: 2rem;
}

.trading-interface {
    height: 100%;
}

.interface-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.stock-selector select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    min-width: 200px;
}

.stock-price {
    text-align: right;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    display: block;
}

.price-change {
    font-size: 0.9rem;
    font-weight: 500;
}

.chart-container {
    height: 300px;
    margin-bottom: 2rem;
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
}

.trading-panel {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.order-form {
    max-width: 400px;
}

.order-type {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.type-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-btn.active,
.type-btn:hover {
    border-color: #10b981;
    background: #ecfdf5;
    color: #065f46;
}

.order-inputs {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.order-summary {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.summary-row:last-child {
    margin-bottom: 0;
    font-weight: 600;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.submit-order-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-order-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Portfolio Section */
.portfolio-section {
    margin-top: 3rem;
}

.portfolio-section h3 {
    color: #064e3b;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.holdings-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.holdings-table table {
    width: 100%;
    border-collapse: collapse;
}

.holdings-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.holdings-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.holdings-table tr:last-child td {
    border-bottom: none;
}

.holdings-table tr:hover {
    background: #f8fafc;
}

.action-btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn-small.sell-btn {
    background: #ef4444;
    color: white;
}

.action-btn-small.sell-btn:hover {
    background: #dc2626;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: #064e3b;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-card ul {
    list-style: none;
}

.feature-card li {
    padding: 0.5rem 0;
    color: #374151;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.feature-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Getting Started */
.getting-started {
    padding: 80px 0;
    background: #ffffff;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #064e3b;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.step-tag {
    background: #ecfdf5;
    color: #065f46;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bbf7d0;
}

.start-action {
    text-align: center;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid #bbf7d0;
}

.action-content h3 {
    color: #064e3b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.action-content p {
    color: #374151;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Educational Tips */
.educational-tips {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.tip-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.tip-card h4 {
    color: #064e3b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tip-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Risk Warning */
.risk-warning {
    padding: 60px 0;
    background: #fef2f2;
}

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

.warning-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.warning-header i {
    font-size: 2rem;
    color: #dc2626;
}

.warning-header h2 {
    color: #dc2626;
    margin: 0;
    font-size: 1.75rem;
}

.warning-text h3 {
    color: #991b1b;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.warning-text p {
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.warning-text ul {
    list-style: none;
    margin-bottom: 2rem;
}

.warning-text li {
    padding: 0.75rem 0;
    color: #374151;
    border-bottom: 1px solid #fecaca;
    position: relative;
    padding-left: 1.5rem;
}

.warning-text li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: bold;
}

.warning-text li:last-child {
    border-bottom: none;
}

.disclaimer {
    background: #fff1f2;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
}

.disclaimer p {
    margin: 0;
    font-size: 0.95rem;
    color: #7f1d1d;
}

/* Footer */
.footer {
    background: #111827;
    color: #d1d5db;
    padding: 60px 0 30px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 1.5rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #10b981;
}

.footer-section p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .platform-interface {
        grid-template-columns: 1fr;
    }
    
    .platform-sidebar {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .simulation-hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .holdings-table {
        overflow-x: auto;
    }
    
    .platform-main {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .simulation-hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .feature-card,
    .tip-card,
    .step-item {
        padding: 1.5rem;
    }
    
    .start-action {
        padding: 2rem 1.5rem;
    }
    
    .warning-content {
        padding: 0 1rem;
    }
}

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

.feature-card,
.tip-card,
.step-item {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }
.feature-card:nth-child(5) { animation-delay: 0.4s; }
.feature-card:nth-child(6) { animation-delay: 0.5s; }

.step-item:nth-child(2) { animation-delay: 0.1s; }
.step-item:nth-child(3) { animation-delay: 0.2s; }
.step-item:nth-child(4) { animation-delay: 0.3s; }

.tip-card:nth-child(2) { animation-delay: 0.1s; }
.tip-card:nth-child(3) { animation-delay: 0.2s; }
.tip-card:nth-child(4) { animation-delay: 0.3s; }
.tip-card:nth-child(5) { animation-delay: 0.4s; }
.tip-card:nth-child(6) { animation-delay: 0.5s; }

/* Smooth scrolling offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}