/* DálniceInfo.cz – Custom Stylesheet */
/* Tailwind is loaded via CDN; this file adds custom overrides and components */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}
::-webkit-scrollbar-thumb {
    background: #1E3A8A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #1E3A8A 0%, #1e40af 50%, #2563eb 100%);
}

/* Card hover effect */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Article prose styles */
.prose h2 { margin-top: 2rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1rem; line-height: 1.75; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; }

/* Fade-in animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Mobile menu */
#mobile-menu {
    display: none;
}
#mobile-menu.open {
    display: block;
}

/* FAQ accordion */
.faq-answer {
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer.open {
    display: block;
}

/* Tip/warning boxes */
.tip-box {
    border-left: 4px solid #3b82f6;
    background: #eff6ff;
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1.5rem 0;
}
.dark .tip-box {
    background: rgba(59,130,246,0.15);
}
.warning-box {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1.5rem 0;
}
.dark .warning-box {
    background: rgba(239,68,68,0.15);
}

/* Navigation active state */
.nav-active {
    color: #1E3A8A;
    font-weight: 600;
}
.dark .nav-active {
    color: #60a5fa;
}

/* Footer link hover */
footer a:hover {
    text-decoration: underline;
}

/* Form styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30,58,138,0.2);
}

/* Breadcrumb */
.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}
.breadcrumb a:hover {
    color: #1E3A8A;
}
.breadcrumb span {
    color: #9ca3af;
    margin: 0 0.5rem;
}

/* Table of contents */
.toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
}
.dark .toc {
    background: #1f2937;
    border-color: #374151;
}
.toc a {
    color: #1E3A8A;
    text-decoration: none;
}
.dark .toc a {
    color: #60a5fa;
}
.toc a:hover {
    text-decoration: underline;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}
.dark .badge-blue {
    background: rgba(30,64,175,0.3);
    color: #93c5fd;
}

/* Print styles */
@media print {
    header, footer, nav, .no-print { display: none !important; }
    body { background: white; color: black; }
}
