/* Global Styles */
:root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --success-color: #dc3545;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --accent-color: #dc3545;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-primary: #000000;
    --text-secondary: #6c757d;
    --red-accent: #dc3545;
    --red-light: #f8d7da;
    --red-dark: #721c24;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #ffffff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(220,53,69,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(220,53,69,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(220,53,69,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(220,53,69,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(220,53,69,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Market Overview */
.market-overview {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.market-overview h2 {
    color: var(--text-primary);
    font-weight: 600;
}

.market-overview .card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-radius: 12px;
}

.market-overview .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.15);
}

.market-overview .card-title {
    color: var(--red-accent);
    font-weight: 600;
}

.market-overview .card-text {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.index-details {
    font-size: 0.9rem;
}

/* Stock List */
.stock-list {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.stock-list h2 {
    color: var(--text-primary);
    font-weight: 600;
}

.stock-filters .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 2px solid var(--red-accent);
    color: var(--red-accent);
    background: transparent;
}

.stock-filters .btn:hover {
    transform: translateY(-2px);
    background-color: var(--red-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.stock-filters .btn.active {
    background-color: var(--red-accent);
    color: white;
    border-color: var(--red-accent);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.table {
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color), var(--red-accent));
    color: white;
    font-weight: 500;
    padding: 1rem;
    border: none;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(220, 53, 69, 0.05);
    transform: scale(1.01);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Price Changes */
.price-up {
    color: var(--red-accent);
    font-weight: 500;
}

.price-down {
    color: var(--danger-color);
    font-weight: 500;
}

/* Navigation */
.navbar {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--red-accent)) !important;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: white !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.9) !important;
}

.nav-link:hover {
    color: white !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.nav-link.active {
    color: white !important;
    background-color: rgba(255,255,255,0.2);
    border-radius: 8px;
}

/* Footer */
footer {
    margin-top: 4rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.8);
}

footer a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--red-accent) !important;
}

/* Loading Animation */
.loading {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--red-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .market-overview,
    .stock-list {
        padding: 1.5rem;
    }

    .stock-filters {
        margin-top: 1rem;
    }

    .stock-filters .btn {
        margin-bottom: 0.5rem;
    }

    .table td,
    .table th {
        padding: 0.75rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--red-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-dark);
}

/* SIP Calculator Page Styles */
.section-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--red-accent), var(--primary-color));
    border-radius: 2px;
}

.content-box {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.point {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(0, 0, 0, 0.05));
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.point:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.15);
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(0, 0, 0, 0.1));
}

.point i {
    font-size: 2rem;
    color: var(--red-accent);
    margin-bottom: 1rem;
}

.point h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--red-accent);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-form {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(0, 0, 0, 0.05));
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.calculator-form label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.calculator-form .form-control {
    border: 2px solid rgba(220, 53, 69, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.calculator-form .form-control:focus {
    border-color: var(--red-accent);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    transform: translateY(-2px);
}

.result-box {
    background: linear-gradient(135deg, var(--red-accent), var(--primary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
}

.result-box h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.result-box p {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.benefit-card {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(0, 0, 0, 0.05));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.15);
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(0, 0, 0, 0.1));
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--red-accent);
    margin-bottom: 1rem;
}

.benefit-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .key-points {
        grid-template-columns: 1fr;
    }

    .calculator-form {
        padding: 1.5rem;
    }

    .result-box {
        margin-bottom: 1rem;
    }

    .benefit-card {
        margin-bottom: 1rem;
    }
}

/* Article Styles */
.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content .lead {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.info-box {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(0, 0, 0, 0.05));
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.info-box h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.feature-list-container {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.feature-list-container h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.forecast-box {
    background: linear-gradient(135deg, var(--red-accent), var(--primary-color));
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.3);
}

.forecast-box h2 {
    color: white;
    margin-bottom: 1rem;
}

.target-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.target-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.target-item h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.target-item p {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.target-item small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.conclusion-box {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(0, 0, 0, 0.05));
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.conclusion-box h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.disclaimer {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--red-accent);
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 0 8px 8px 0;
}

.disclaimer p {
    margin: 0;
    color: var(--text-primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .target-list {
        grid-template-columns: 1fr;
    }

    .info-box,
    .feature-list-container,
    .forecast-box,
    .conclusion-box {
        padding: 1.5rem;
    }
}

/* Additional Modern Styling */
.btn-primary {
    background: linear-gradient(135deg, var(--red-accent), var(--primary-color));
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, var(--primary-color), var(--red-accent));
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.alert-info {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(0, 0, 0, 0.1));
    color: var(--text-primary);
    border-left: 4px solid var(--red-accent);
} 