/* 
 * Custom CSS for Velocity Banking UK
 * 
 * This file contains custom styles beyond Bootstrap's default styling
 */

/* General Styles */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.lead {
    font-size: 1.1rem;
}

/* AdSense Container Styling */
.adsense-container {
    margin: 20px 0;
    padding: 10px 0;
    text-align: center;
    min-height: 100px;
}

.adsense-sidebar {
    min-height: 600px;
    margin-bottom: 20px;
}

/* Chart Containers */
.chart-container {
    margin: 20px 0;
    position: relative;
}

/* GDPR Banner */
#gdpr-banner {
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Custom Card Styling */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Table Enhancements */
.table-responsive {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table thead th {
    font-weight: 600;
}

/* Navigation Styling */
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

/* Footer Styling */
footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Homepage specific */
.feature-box {
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background-color: #f8f9fa;
}

/* Custom Button Styling */
.btn-custom {
    background-color: #3772ff;
    border-color: #3772ff;
    color: white;
}

.btn-custom:hover {
    background-color: #2954cc;
    border-color: #2954cc;
    color: white;
}

/* Responsiveness fixes */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .chart-container {
        height: 300px !important;
    }
}

/* Animation for elements */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Active navigation link */
.navbar-dark .navbar-nav .active > .nav-link,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    font-weight: bold;
}

/* Custom alerts */
.alert {
    border-radius: 0.5rem;
}

/* Table striping enhancement */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Accordion customization */
.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

/* Form control focus */
.form-control:focus {
    border-color: #3772ff;
    box-shadow: 0 0 0 0.25rem rgba(55, 114, 255, 0.25);
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .adsense-container,
    .adsense-sidebar,
    .btn {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .table-responsive {
        overflow: visible;
        box-shadow: none;
    }
}

/* Calculator elements */
.calculator-container {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.calculator-result {
    background-color: #e9ecef;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

/* Search highlights */
mark,
.mark {
    background-color: rgba(255, 193, 7, 0.4);
    padding: 0.2em;
}

/* Cookie consent banner buttons */
#gdpr-banner .btn {
    margin-left: 0.5rem;
}

/* Make charts more visually appealing */
canvas {
    max-width: 100%;
}