/* Site-specific styles for CyberShield Pro Theme */

/* CyberShield Marketing Theme Variables */
:root {
    --primary-yellow: #FFD700;
    --dark-yellow: #FFA500;
    --black: #000000;
    --dark-gray: #2c3e50;
    --medium-gray: #6c757d;
    --light-gray: #f8f9fa;
    --severity-info: #27ae60;
    --severity-high: #e74c3c;
}

/* Bootstrap Overrides */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

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

.btn-outline-dark {
    border-color: var(--dark-gray);
    color: var(--dark-gray);
}

.btn-outline-dark:hover {
    background-color: var(--dark-gray);
    border-color: var(--dark-gray);
    color: white;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.form-check-input:focus {
    border-color: var(--primary-yellow);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

/* Navigation Enhancements */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Menus */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 15px 0;
    margin-top: 12px;
    border: 1px solid rgba(255,215,0,0.1);
    min-width: 180px;
    width: auto;
}

.dropdown-item {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
    color: var(--dark-gray);
    white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255,215,0,0.1);
    color: var(--primary-yellow);
    text-shadow: 0 0 8px rgba(255,215,0,0.6);
    transform: none;
    border-left: none;
}

.dropdown-item:focus,
.dropdown-item:active,
.dropdown-item:visited {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.dropdown-item:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Remove all Bootstrap default dropdown item focus states */
.dropdown-item:focus,
.dropdown-item:active,
.dropdown-item:hover,
.dropdown-item.active {
    outline: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Accordion Styling */
.accordion-button {
    background: transparent;
    border: none;
    box-shadow: none;
    font-weight: 600;
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,165,0,0.05) 100%);
    color: var(--dark-gray);
}

.accordion-button:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

.accordion-item {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-body {
    padding: 20px;
    color: var(--medium-gray);
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(39,174,96,0.1) 0%, rgba(39,174,96,0.05) 100%);
    color: var(--severity-info);
    border-left: 4px solid var(--severity-info);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(231,76,60,0.1) 0%, rgba(231,76,60,0.05) 100%);
    color: var(--severity-high);
    border-left: 4px solid var(--severity-high);
}

/* Badge Styling */
.badge {
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 600;
}

/* Table Styling */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    border-bottom: 2px solid rgba(0,0,0,0.1);
    font-weight: 700;
    background: var(--light-gray);
}

.table tbody tr:hover {
    background: rgba(255,215,0,0.05);
}

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

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-yellow);
}

/* Animations */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ripple effect for buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Focus visible improvements */
.btn:focus-visible {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar-main,
    .footer-main,
    .btn,
    .social-link {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
        padding: 20px 0 !important;
    }
    
    .hero-title {
        color: black !important;
        font-size: 24pt !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-yellow: #FFD700;
        --dark-yellow: #CC8400;
        --black: #000000;
        --medium-gray: #666666;
    }
    
    .btn-gradient-primary {
        background: var(--primary-yellow) !important;
        color: var(--black) !important;
        border: 2px solid var(--black) !important;
    }
    
    .feature-card {
        border: 2px solid var(--black) !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .parallax-effect {
        transform: none !important;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-yellow);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error states */
.error {
    border-color: var(--severity-high) !important;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25) !important;
}

.error-message {
    color: var(--severity-high);
    font-size: 0.875rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message::before {
    content: '⚠';
    font-size: 1rem;
}

/* Success states */
.success {
    border-color: var(--severity-info) !important;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25) !important;
}

.success-message {
    color: var(--severity-info);
    font-size: 0.875rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.success-message::before {
    content: '✓';
    font-size: 1rem;
}

/* Utility classes */
.text-yellow {
    color: var(--primary-yellow) !important;
}

.bg-yellow {
    background-color: var(--primary-yellow) !important;
}

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

.shadow-lg-yellow {
    box-shadow: 0 1rem 3rem rgba(255, 215, 0, 0.175) !important;
}

/* Responsive text sizes */
@media (max-width: 768px) {
    .display-1 { font-size: 2.5rem; }
    .display-2 { font-size: 2rem; }
    .display-3 { font-size: 1.75rem; }
    .display-4 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
}