/* Routing.guru Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Protocol Cards */
.protocol-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6;
    height: 100%;
}

.protocol-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.protocol-icon {
    margin-bottom: 1rem;
}

.ospf-icon {
    color: var(--primary-color);
}

.eigrp-icon {
    color: var(--success-color);
}

.bgp-icon {
    color: var(--warning-color);
}

.isis-icon {
    color: var(--dark-color);
}

/* Protocol Features */
.protocol-features {
    margin-bottom: 1rem;
}

.protocol-features .badge {
    margin: 0.2rem;
}

/* Feature Items */
.feature-item {
    padding: 1rem;
    height: 100%;
}

.feature-item i {
    margin-bottom: 0.5rem;
}

/* Upcoming Protocols */
.upcoming-protocol {
    padding: 1rem;
    border-left: 3px solid var(--primary-color);
    background-color: #f8f9fa;
    margin-bottom: 1rem;
}

.upcoming-protocol h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Content Section */
.content-section {
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .protocol-card {
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

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

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

/* Button Styles */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Card Styles */
.card {
    border-radius: 0.75rem;
    border: 1px solid #dee2e6;
}

.card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

/* Alert Styles */
.alert {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.alert-info {
    background-color: #e7f3ff;
    border-left: 4px solid var(--info-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.lead {
    font-size: 1.1rem;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #ffffff;
    }
    
    .card {
        background-color: #1e1e1e;
        border-color: #333;
    }
    
    .protocol-card {
        background-color: #1e1e1e;
    }
    
    .upcoming-protocol {
        background-color: #2d2d2d;
    }
}