/* ProxiesLab Custom Styles */

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

/* Global Styles */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .nav-link:hover {
    color: #fff;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 300px;
    margin: 0 auto;
}

.hero-icon-item {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
    transition: transform 0.3s ease;
}

.hero-icon-item:hover {
    transform: translateY(-5px);
}

/* Cards */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.provider-card:hover,
.article-card:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.provider-detail-card {
    border-left: 4px solid var(--primary-color);
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1) !important;
}

/* Tool Cards */
.tool-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-5px);
}

/* Rating Stars */
.rating .bi-star-fill {
    font-size: 0.9rem;
}

/* Tables */
.table th {
    font-weight: 600;
    border-top: none;
}

.table-responsive {
    border-radius: 0.5rem;
}

/* Badges */
.badge {
    font-weight: 500;
}

.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #084298);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-control-lg {
    border-radius: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.75rem;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.05);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

/* Article Content */
.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #555;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h5, footer h6 {
    color: #fff;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

footer ul li a:hover {
    color: #17a2b8 !important;
    text-decoration: none;
}

footer a:hover {
    color: #17a2b8 !important;
}

/* Sticky Elements */
.sticky-lg-top {
    z-index: 1000;
}

/* Provider Logo Placeholder */
.provider-logo,
.provider-logo-lg,
.provider-logo-xl {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 10px;
}

.provider-logo {
    width: 50px;
    height: 50px;
}

.provider-logo-lg {
    width: 70px;
    height: 70px;
}

.provider-logo-xl {
    width: 100px;
    height: 100px;
}

/* Code Blocks */
code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

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

.card {
    animation: fadeIn 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .hero-icon-grid {
        display: none;
    }
}

/* Quiz Styles */
.quiz-option-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border-width: 2px !important;
}

.quiz-option-card:hover {
    border-color: var(--primary-color) !important;
    background-color: rgba(13, 110, 253, 0.05);
}

.quiz-option-card.selected {
    border-color: var(--primary-color) !important;
    background-color: rgba(13, 110, 253, 0.1) !important;
}

/* Comparison Styles */
.comparison-table {
    font-size: 0.9rem;
}

.comparison-table .sticky-col {
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
    min-width: 150px;
}

.comparison-table thead .sticky-col {
    background: #212529;
    color: white;
}

.provider-select-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-select-card:hover {
    border-color: var(--primary-color) !important;
}

.provider-select-card.border-primary {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* Guide Styles */
.guide-card {
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.guide-list-card:hover {
    border-color: var(--primary-color) !important;
}

.guide-content {
    line-height: 1.8;
    color: #444;
}

.guide-content p {
    margin-bottom: 1rem;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

/* Provider Sidebar Link */
.provider-sidebar-link:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Success Subtle Background */
.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.15) !important;
}

/* Better Badges */
.badge {
    padding: 0.4em 0.8em;
}

/* Border Colors */
.border-warning {
    border-color: var(--warning-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Comparison Panel Animation */
#comparisonPanel {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Better Form Checks */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Toast Positioning */
.toast {
    z-index: 9999;
}

/* Tool Card Highlight */
.tool-card.bg-warning {
    color: #000 !important;
}

.tool-card.bg-warning:hover {
    background-color: #e0a800 !important;
    color: #000 !important;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }
}
