/* Custom Styles for spec.trancky.com */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1E40AF;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1E3A8A;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
}

/* Button Hover Effects */
.btn-primary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(30, 64, 175, 0.3);
}

/* Focus States */
*:focus {
    outline: 2px solid #1E40AF;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Modal Backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

/* Image Lazy Load */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Tab Active State */
.tab-active {
    color: #1E40AF;
    border-bottom: 2px solid #1E40AF;
    font-weight: 600;
}

/* Sticky Header Shadow */
nav.sticky {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Print Styles */
@media print {
    nav, footer {
        display: none;
    }
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Video Modal */
.video-modal {
    max-width: 90vw;
    max-height: 90vh;
}

.video-modal iframe {
    width: 100%;
    height: 60vh;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Quote Block */
blockquote {
    border-left: 4px solid #1E40AF;
    padding-left: 1rem;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-warning {
    background: #FEF3C7;
    border-left: 4px solid #D97706;
    color: #78350F;
}

.alert-info {
    background: #DBEAFE;
    border-left: 4px solid #1E40AF;
    color: #1E3A8A;
}

/* Code Block */
pre, code {
    font-family: 'Courier New', monospace;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

/* Utility Classes */
.text-balance {
    text-wrap: balance;
}

.max-w-prose {
    max-width: 65ch;
}

/* Skip to Content Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1E40AF;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}
