/* SaaS-Style Dark Bootstrap Theme Custom Styles */

:root {
    --bs-dark: #212529;
    --bs-dark-rgb: 33, 37, 41;
    --bs-body-bg: #0a0a0a;
    --bs-body-color: #ffffff;
    --bs-primary: #6366f1;
    --bs-primary-rgb: 99, 102, 241;
    --bs-secondary: #64748b;
    --bs-success: #10b981;
    --bs-info: #06b6d4;
    --bs-warning: #f59e0b;
    --bs-danger: #ef4444;
    --bs-light: #f8fafc;
    --bs-dark: #1e293b;
    --bs-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bs-gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --bs-gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --bs-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --bs-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --bs-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --bs-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* SaaS-Style Dark theme overrides */
body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Hero Section Styles */
.hero-section {
    background: var(--bs-gradient-primary);
    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="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.min-vh-50 {
    min-height: 50vh;
}

.min-vh-60 {
    min-height: 60vh;
}

.hero-stats .stat-item {
    text-align: center;
}

.stat-number {
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Card styling with SaaS aesthetics */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--bs-shadow-lg);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--bs-shadow-xl);
}

.blog-card {
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.blog-card:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.1), 0 10px 10px -5px rgba(99, 102, 241, 0.04);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem 1rem 0 0 !important;
}

/* Navbar styling */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem !important;
    color: #ffffff !important;
}


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

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

/* Dropdown menu styling */
.dropdown-menu-dark {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    box-shadow: var(--bs-shadow-xl);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin: 0.25rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #ffffff;
    transform: translateX(5px);
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0.75rem;
}

/* Button styling */
.btn {
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--bs-gradient-primary);
    border: none;
    box-shadow: var(--bs-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--bs-shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--bs-primary);
    color: var(--bs-primary);
}

.btn-outline-primary:hover {
    background: var(--bs-primary);
    transform: translateY(-2px);
    box-shadow: var(--bs-shadow-lg);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Link styling */
a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #8b5cf6;
    text-decoration: none;
}

/* Code styling */
code {
    background-color: rgba(99, 102, 241, 0.1);
    color: #a78bfa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

pre {
    background-color: #1e293b;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--bs-shadow-lg);
}

pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Table styling */
.table-dark {
    --bs-table-bg: #1e293b;
    --bs-table-striped-bg: #334155;
    --bs-table-hover-bg: #475569;
}

/* Form styling */
.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--bs-primary);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 0.75rem;
}

.form-select:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

/* Badge styling */
.badge {
    font-size: 0.75em;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}

.badge.bg-primary {
    background: var(--bs-gradient-primary) !important;
}

.badge.bg-secondary {
    background: var(--bs-secondary) !important;
}

/* Footer styling */
footer {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Carousel styling */
.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: white;
    transform: scale(1.2);
}

.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Carousel progress bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.carousel-progress .progress-bar {
    height: 100%;
    background: var(--bs-gradient-primary);
    transition: width 0.1s linear;
    border-radius: 0;
}

/* Carousel fade transition */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Enhanced carousel content */
.carousel-content {
    animation: slideInLeft 0.8s ease-out;
    padding: 2rem 0;
}

.carousel-image {
    animation: slideInRight 0.8s ease-out;
    padding: 2rem 0;
}

.carousel-item {
    padding: 2rem 0;
}

/* Carousel responsive adjustments */
@media (max-width: 768px) {
    .carousel-content,
    .carousel-image {
        padding: 1rem 0;
        text-align: center;
    }
    
    .carousel-item .row {
        flex-direction: column-reverse;
    }
    
    .carousel-item .col-lg-6:first-child {
        margin-top: 2rem;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Category cards */
.category-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--bs-shadow-xl);
    border-color: var(--bs-primary);
}

.category-icon i {
    transition: all 0.3s ease;
}

.category-card:hover .category-icon i {
    transform: scale(1.1);
}

/* Newsletter section */
.bg-primary {
    background: var(--bs-gradient-primary) !important;
}

/* Featured image placeholder */
.featured-image-placeholder {
    background: var(--bs-gradient-secondary);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

.card {
    animation: fadeIn 0.6s ease-out;
}

.carousel-item {
    animation: slideInUp 0.8s ease-out;
}

/* Social links styling */
.social-links a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.social-links a:hover {
    color: var(--bs-primary) !important;
    transform: translateY(-2px);
}

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

::-webkit-scrollbar-track {
    background: #1e293b;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid currentColor;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}
