/* Custom CSS to complement Bootstrap */

/* Custom Primary Color */
:root {
    --bs-primary: #1b4ba4;
    --bs-primary-rgb: 27, 75, 164;
}

.btn-primary {
    background-color: #1b4ba4;
    border-color: #1b4ba4;
}

.btn-primary:hover {
    background-color: #15387e;
    border-color: #15387e;
}

.btn-primary:focus,
.btn-primary:active {
    background-color: #15387e;
    border-color: #15387e;
    box-shadow: 0 0 0 0.25rem rgba(27, 75, 164, 0.5);
}

.btn-outline-primary {
    color: #1b4ba4;
    border-color: #1b4ba4;
}

.btn-outline-primary:hover {
    background-color: #1b4ba4;
    border-color: #1b4ba4;
    color: #fff;
}

.text-primary {
    color: #1b4ba4 !important;
}

.bg-primary {
    background-color: #1b4ba4 !important;
}

.badge.bg-primary {
    background-color: #1b4ba4 !important;
}

.border-primary {
    border-color: #1b4ba4 !important;
}

/* AI Product Badge Colors */
.bg-chatgpt {
    background-color: #10a37f !important;
    color: white !important;
}

.bg-claude {
    background-color: #d97757 !important;
    color: white !important;
}

.bg-gemini {
    background-color: #4285f4 !important;
    color: white !important;
}

.bg-midjourney {
    background-color: #000000 !important;
    color: white !important;
}

.bg-stable-diffusion {
    background-color: #7c3aed !important;
    color: white !important;
}

.bg-other {
    background-color: #6c757d !important;
    color: white !important;
}

/* Card Hover Effect */
.hover-shadow {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-shadow:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Stretched Link for Cards */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Pre tag styling in prompt text */
pre {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Alert styling fix for messages */
.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-info {
    background-color: #cff4fc;
    border-color: #b6effb;
    color: #055160;
}

/* Navbar customization */
.navbar-brand:hover {
    opacity: 0.8;
}

/* Form customization */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button hover effects */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Card body spacing */
.card-body h5 {
    font-weight: 600;
}

/* Badge improvements */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Footer improvements */
footer {
    font-size: 0.875rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

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

/* Link styling */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Custom utility classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
