/**
 * style.css - Tourism Organization Velika Plana
 * Professional tourism theme with blues, greens, and gold accents.
 */

/* =========================================================================
   Skip to content
   ========================================================================= */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}

.skip-to-content:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    background: #1B6B93;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    z-index: 9999;
}

/* =========================================================================
   Dropdown menus (CSS hover)
   ========================================================================= */
.dropdown-parent:hover .dropdown-menu,
.dropdown-parent:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-parent:hover .dropdown-chevron,
.dropdown-parent:focus-within .dropdown-chevron {
    transform: rotate(180deg);
}

/* =========================================================================
   Mobile accordion submenus
   ========================================================================= */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-submenu.open {
    display: block;
    max-height: 500px;
}

.mobile-accordion-toggle[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

/* =========================================================================
   Fade-up scroll animation
   ========================================================================= */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* =========================================================================
   Quick link cards
   ========================================================================= */
.quick-link-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(27, 107, 147, 0.15);
}

/* =========================================================================
   News cards
   ========================================================================= */
.news-card-img {
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img,
article:hover .news-card-img {
    transform: scale(1.05);
}

/* =========================================================================
   Prose styles for content area
   ========================================================================= */
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: #164B60;
    font-weight: 800;
}

.prose a {
    color: #1B6B93;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: #155A7C;
}

.prose img {
    border-radius: 0.75rem;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
}

.prose th,
.prose td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.prose th {
    background: #F0F7F4;
    font-weight: 700;
}

/* =========================================================================
   Utility: line-clamp
   ========================================================================= */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* =========================================================================
   Print styles
   ========================================================================= */
@media print {
    header,
    footer,
    .skip-to-content,
    #mobile-menu {
        display: none !important;
    }
}
