/**
 * Smart Cyber Guide - Custom Styles
 * Trust-oriented palette, professional typography
 */

:root {
    --primary: #0056b3;
    --primary-light: #3b82f6;
    --primary-dark: #004494;
    --secondary: #64748b;
    --success: #10b981;
    --info: #3b82f6;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --body-font: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--body-font);
    color: #212529;
    line-height: 1.6;
}

/* Section Builder Elements */
.builder-element {
    /* Ensure elements behave as blocks for alignment */
    display: block;
    position: relative;
    width: 100%; /* Default width */
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Ensure images within builder elements are responsive */
.builder-element img {
    max-width: 100%;
    height: auto;
}

/* Padding utilities if not using Bootstrap's p-* */
/* Bootstrap is included, so p-1 to p-5 work */

/* Mobile responsiveness for builder elements */
@media (max-width: 768px) {
    .builder-element {
        /* On mobile, reset specific widths to ensure readability unless critically needed */
        /* width: 100% !important; - Optional, but let's respect user choice for now */
        max-width: 100%;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.site-header .navbar-brand .brand-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.header-logo {
    max-height: 100%; /* Allow container to control height via inline styles */
    width: auto;
}

.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
}

.navbar .nav-link {
    font-weight: 600;
    color: #495057 !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important; /* Overriding bootstrap mb-5 if needed for full flush */
}

.hero-slider .swiper-slide {
    min-height: 600px; /* Increased height for impact */
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay for better text readability */
.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-slider .slide-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 3rem;
    border-radius: 1rem;
    max-width: 700px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-slider .swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.hero-slider .swiper-button-next:after,
.hero-slider .swiper-button-prev:after {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Content Sections */
.section-title {
    font-weight: 800;
    color: #212529;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.card {
    border-radius: 0.75rem;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-scam {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-scam:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-scam .card-img-top {
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.badge-severity-high { background-color: #dc3545; }
.badge-severity-medium { background-color: #fd7e14; }
.badge-severity-low { background-color: #198754; }

/* Footer */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.site-footer a:hover {
    color: white !important;
}

.footer-logo {
    max-height: 100px;
    width: auto;
}

.compliance-badges .badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
}

.badge-link {
    text-decoration: none;
}

.badge-link:hover .badge {
    opacity: 0.9;
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Scam Detail */
.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #212529;
}

.content-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.content-body p {
    margin-bottom: 1.5rem;
}

.content-body ul, .content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.content-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin-left: 0;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #6c757d;
}

.content-body pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.content-body table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.content-body th, .content-body td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
}

.content-body th {
    background-color: #f3f4f6;
    font-weight: 600;
}

/* Utility Classes */
.object-fit-cover {
    object-fit: cover;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

.transition-colors {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.group-hover:hover .hover-opacity-100 {
    opacity: 1 !important;
}

.group-hover:hover img {
    transform: scale(1.05);
}

.hover-bg-light-dark:hover {
    background-color: #e9ecef !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Footer Styles */
.site-footer {
    background-color: var(--gray-900) !important; /* Ensure deep blue background */
    color: var(--gray-300);
    border-top: 5px solid var(--primary);
}

.site-footer a {
    color: var(--gray-400) !important;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--white) !important;
    text-decoration: none;
}

.footer-brand p, .footer-contact li, .footer-contact a {
    color: var(--gray-400) !important;
}

/* Animation Utilities */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.focus-bg-white:focus {
    background-color: var(--white) !important;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-md) !important;
}

