/* Main Styles for 100% Monthly Return Trading System Website */

/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gold-accent: #ffc107;
    --body-font: 'Roboto', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
}

body {
    font-family: var(--body-font);
    color: var(--dark-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--gold-accent);
}

.dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    padding: 5rem 0;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

.card-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    top: 0.25rem;
}

.timeline-content {
    padding-left: 1rem;
}

/* Buttons */
.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
}

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

footer a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Content Pages */
.content-page {
    padding: 3rem 0;
}

.content-page h1 {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.content-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-page h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-page p {
    margin-bottom: 1.5rem;
}

.content-page ul, .content-page ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 5rem;
}

.sidebar .nav-link {
    color: var(--dark-color);
    padding: 0.5rem 0;
}

.sidebar .nav-link:hover {
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Table of Contents */
.toc {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.toc-title {
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.toc-list {
    list-style-type: none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--dark-color);
    text-decoration: none;
}

.toc-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 1rem 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* Code Blocks */
pre {
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

code {
    color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

/* Tables */
table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

th {
    background-color: var(--light-color);
    font-weight: 600;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Print Styles */
@media print {
    header, footer, .sidebar, .toc {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    a {
        text-decoration: none;
        color: var(--dark-color);
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
    
    pre, blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
    
    @page {
        margin: 2cm;
    }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
}

/* Dark Mode */
.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .card {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.dark-mode .bg-light {
    background-color: #1e1e1e !important;
}

.dark-mode .text-dark {
    color: #e0e0e0 !important;
}

.dark-mode .btn-outline-primary {
    color: var(--info-color);
    border-color: var(--info-color);
}

.dark-mode .btn-outline-primary:hover {
    background-color: var(--info-color);
    color: #121212;
}

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

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Interactive Elements */
.tool-container {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.tool-result {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    border: 1px solid #dee2e6;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
