/* ===================================
   MCP Agentic Security Review
   Custom Styles for Bootstrap 5.3.2
   Light Theme - Professional Academic
   =================================== */

/* ===== CSS Variables ===== */
:root {
    --primary: #0284c7;
    --secondary: #7c3aed;
    --accent: #0891b2;
    --success: #10b981;
    --warning: #f59e0b;

    --text-dark: #0f172a;
    --text-body: #1e293b;
    --text-muted: #64748b;

    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-light: #f1f5f9;

    --border-color: rgba(148, 163, 184, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
}

/* ===== Global Styles ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.03) 0%, rgba(124, 58, 237, 0.02) 100%);
    color: var(--text-body);
    line-height: 1.7;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Navbar ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-link {
    color: var(--text-body) !important;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(2, 132, 199, 0.05);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(124, 58, 237, 0.05));
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: var(--radius-xl);
    padding: 4rem 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-section>* {
    position: relative;
    z-index: 1;
}

/* ===== Cards ===== */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(2, 132, 199, 0.4);
}

.card-hover-lift {
    transition: all 0.3s ease;
}

.card-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(2, 132, 199, 0.15);
}

/* ===== Paper Highlight ===== */
.paper-highlight {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(2, 132, 199, 0.08));
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
    position: relative;
    overflow: hidden;
    margin: 3rem 0;
}

.paper-highlight::before {
    content: '📄';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 200px;
    opacity: 0.05;
    transform: rotate(15deg);
}

.paper-highlight h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* ===== Buttons ===== */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.3);
    color: white;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: rgba(2, 132, 199, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--primary);
}

/* ===== Tables ===== */
.table {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead {
    background: rgba(2, 132, 199, 0.08);
}

.table thead th {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(2, 132, 199, 0.04);
}

/* ===== Code Blocks ===== */
code {
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(2, 132, 199, 0.2);
    font-size: 0.9em;
}

pre {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
}

pre code {
    background: none;
    border: none;
    color: inherit;
}

/* ===== Images ===== */
img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

img:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

/* ===== Badges ===== */
.badge {
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
}

.badge-primary {
    background: var(--primary);
}

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

/* ===== Alerts ===== */
.alert {
    border-radius: var(--radius-md);
    border-left: 4px solid;
    backdrop-filter: blur(10px);
}

.alert-info {
    background: rgba(2, 132, 199, 0.08);
    border-left-color: var(--primary);
    color: var(--text-dark);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border-left-color: var(--warning);
    color: var(--text-dark);
}

/* ===== Utilities ===== */
.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.bg-gradient-light {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.05), rgba(124, 58, 237, 0.03));
}

.border-custom {
    border: 1px solid var(--border-color);
}

.rounded-custom {
    border-radius: var(--radius-md);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 1.5rem;
    }

    .paper-highlight {
        padding: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    color: var(--text-muted);
    text-align: center;
}