/* ========================================
   StockBhai - Main Stylesheet
   ======================================== */

/* Color Variables */
:root {
    --primary-color: #FF6B2C;
    --secondary-color: #0052CC;
    --accent-color: #27AE60;
    --neutral-light: #FAFAFA;
    --neutral-dark: #2B2B2B;
    --warning: #F39C12;
    --danger: #E74C3C;
    --success: #27AE60;
    --info: #3498DB;
    --light-gray: #F5F7FA;
    --border-gray: #E0E0E0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--neutral-dark);
    background-color: var(--neutral-light);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1rem;
}

/* Navigation Styling */
.navbar {
    border-bottom: 2px solid var(--light-gray);
    background-color: white !important;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 800;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--neutral-dark) !important;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.cta-btn {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--secondary-color) !important;
    color: white !important;
}

.dropdown-menu {
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn-primary,
.btn-success,
.btn-secondary {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 44, 0.3);
}

.btn-success {
    background-color: var(--accent-color);
    color: white;
}

.btn-success:hover {
    background-color: #219653;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    color: white;
    border-color: white;
    border-width: 2px;
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Cards */
.card {
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--light-gray);
    border-bottom: 2px solid var(--border-gray);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 0.5rem;
}

/* Section Styling */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card h4 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 107, 44, 0.15);
}

/* Pillar Cards */
.pillar {
    background: linear-gradient(135deg, rgba(255, 107, 44, 0.05) 0%, rgba(0, 82, 204, 0.05) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.pillar:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.pillar h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-gray);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.blog-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--neutral-dark);
}

.blog-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    justify-content: space-between;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 1rem;
    color: var(--secondary-color);
}

/* Quiz Section */
.quiz-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0041A3 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.quiz-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.quiz-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Learning Path */
.learning-track {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
}

.learning-track:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.track-number {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
}

.learning-track h3 {
    color: var(--neutral-dark);
    margin-bottom: 0.5rem;
}

.track-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

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

.content-badge {
    background-color: var(--light-gray);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--neutral-dark);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--border-gray);
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(255, 107, 44, 0.15);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tool-card h4 {
    margin-bottom: 0.5rem;
}

/* Glossary */
.glossary-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.glossary-term {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.glossary-definition {
    color: #555;
    line-height: 1.8;
}

/* Forms */
.form-control,
.form-select {
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 44, 0.15);
}

.form-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--neutral-dark);
}

/* Newsletter Signup */
.newsletter-form {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 3rem;
    border-radius: 12px;
    color: white;
}

.newsletter-form h3 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-form p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.newsletter-form .form-control {
    border: none;
    padding: 0.75rem 1rem;
}

.newsletter-form .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: none;
}

.newsletter-form .btn-primary:hover {
    background-color: var(--neutral-light);
}

/* Footer */
footer {
    background-color: var(--neutral-dark);
    color: white;
    margin-top: 5rem;
}

footer h5, footer h6 {
    color: white;
}

footer a {
    color: var(--primary-color);
}

footer a:hover {
    color: white;
}

footer .text-muted {
    color: #999 !important;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 107, 44, 0.2);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background-color: var(--primary-color);
    color: white !important;
}

/* Badges and Tags */
.badge {
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.badge-success {
    background-color: var(--accent-color);
}

.badge-warning {
    background-color: var(--warning);
}

.badge-info {
    background-color: var(--secondary-color);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: var(--border-gray);
}

.timeline-item {
    margin-bottom: 2rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 3rem;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    top: 1rem;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -40px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -40px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 0;
        text-align: left;
        margin-bottom: 1.5rem;
    }
    
    .timeline-dot {
        display: none;
    }
    
    .nav-link {
        margin: 0.25rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--accent-color) !important; }
.text-muted { color: #999 !important; }

.bg-light-gradient {
    background: linear-gradient(135deg, rgba(255, 107, 44, 0.05) 0%, rgba(0, 82, 204, 0.05) 100%);
}

.shadow-sm { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); }

.underline-accent {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.rounded-12 { border-radius: 12px; }
.rounded-20 { border-radius: 20px; }

.transition-all {
    transition: all 0.3s ease;
}
