/* ==========================================================================
   RESPONSIVE CSS - Media queries and mobile optimizations
   ========================================================================== */

/* Large screens and above */
@media (min-width: 1280px) {
    .container {
        padding-left: var(--spacing-3xl);
        padding-right: var(--spacing-3xl);
    }
    
    .photo-gallery,
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: var(--spacing-3xl);
    }
    
    .photo-tiles {
        gap: var(--spacing-3xl);
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-2xl);
    }
}

/* Medium to large screens */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 3rem;
    }
    
    .container {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
    
    .photo-gallery,
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .search-filters {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-md);
    }
    
    .photo-tiles {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .photo-tile-large {
        grid-column: span 1;
        height: 300px;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .modal-dialog {
        margin: var(--spacing-md);
        max-width: calc(100vw - 2rem);
    }
}

/* Tablet screens */
@media (max-width: 768px) {
    /* Typography scaling */
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.375rem;
    }
    
    /* Container adjustments */
    .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    /* Header mobile styles */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--animation);
        z-index: var(--z-dropdown);
        border-top: 1px solid var(--border);
        gap: var(--spacing-md);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: var(--spacing-md);
        border-radius: var(--radius);
        border: 1px solid var(--border);
    }
    
    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--surface);
        margin-top: var(--spacing-sm);
        border-radius: var(--radius);
        opacity: 1;
        visibility: visible;
        transform: none;
        overflow: hidden;
    }
    
    .nav-dropdown .dropdown-menu.show {
        display: block;
    }
    
    /* Gallery adjustments */
    .photo-gallery,
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
    
    .photo-item {
        min-height: 350px;
    }
    
    .photo-image {
        height: 200px;
    }
    
    /* Photo tiles */
    .photo-tiles {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .photo-tile {
        height: 250px;
    }
    
    .photo-tile-large {
        height: 300px;
    }
    
    .photo-tile-overlay {
        padding: var(--spacing-md);
    }
    
    /* Hero section */
    .hero-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-content {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    /* Search filters */
    .search-filters {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Navigation buttons */
    .navigation-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }
    
    .navigation-buttons .btn {
        min-width: auto;
        width: 100%;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    /* Modal adjustments */
    .modal-content {
        margin: var(--spacing-sm);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--spacing-md);
    }
    
    .modal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .modal-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
    
    /* Photo meta */
    .photo-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    /* Form sections */
    .form-section,
    .search-box {
        padding: var(--spacing-lg);
    }
    
    /* Card grid layouts */
    .card-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Breadcrumbs */
    .breadcrumb-list {
        font-size: var(--font-size-sm);
        gap: var(--spacing-xs);
    }
    
    .breadcrumb-item {
        flex-wrap: wrap;
    }
    
    /* Flash messages */
    .flash-messages {
        left: var(--spacing-md);
        right: var(--spacing-md);
        top: var(--spacing-md);
        max-width: none;
    }
    
    .notification {
        padding: var(--spacing-sm) var(--spacing-md);
        margin-bottom: var(--spacing-sm);
    }
    
    /* Back to top button */
    .back-to-top {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 45px;
        height: 45px;
    }
}

/* Mobile screens */
@media (max-width: 480px) {
    /* Further typography scaling */
    :root {
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --font-size-xl: 1.125rem;
    }
    
    /* Container adjustments */
    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    
    /* Header */
    .navbar {
        padding: var(--spacing-sm) 0;
    }
    
    .logo {
        font-size: var(--font-size-lg);
    }
    
    /* Gallery */
    .photo-gallery,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .photo-item {
        min-height: 320px;
    }
    
    .photo-image {
        height: 180px;
    }
    
    .photo-content {
        padding: var(--spacing-md);
    }
    
    /* Hero section */
    .hero-section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .hero-actions .btn {
        max-width: none;
        font-size: var(--font-size-sm);
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    /* Photo tiles */
    .photo-tiles {
        gap: var(--spacing-sm);
    }
    
    .photo-tile {
        height: 200px;
    }
    
    .photo-tile-large {
        height: 250px;
    }
    
    .photo-tile-overlay {
        padding: var(--spacing-sm);
    }
    
    .photo-tile-title {
        font-size: var(--font-size-lg);
    }
    
    .photo-tile-description {
        font-size: var(--font-size-sm);
    }
    
    /* Sections */
    .photo-tiles-section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-lg);
    }
    
    /* Login page */
    .login-container {
        padding: var(--spacing-md) 0;
        min-height: calc(100vh - 120px);
    }
    
    .login-card {
        padding: var(--spacing-xl);
        margin: var(--spacing-sm);
        max-width: none;
    }
    
    .login-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--spacing-md);
    }
    
    .login-icon i {
        font-size: 2rem;
    }
    
    .login-title {
        font-size: var(--font-size-xl);
    }
    
    .circle-1,
    .circle-2,
    .circle-3 {
        display: none;
    }
    
    /* Forms */
    .form-section,
    .search-box {
        padding: var(--spacing-md);
        margin: var(--spacing-md) 0;
    }
    
    .form-control {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-base);
    }
    
    .form-label {
        font-size: var(--font-size-xs);
    }
    
    /* Buttons */
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .btn-lg {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
    }
    
    .btn-sm {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }
    
    /* Cards */
    .card {
        margin-bottom: var(--spacing-md);
    }
    
    .card-header,
    .card-body,
    .card-footer {
        padding: var(--spacing-md);
    }
    
    /* Modal */
    .modal-dialog {
        margin: var(--spacing-xs);
        max-width: calc(100vw - 1rem);
    }
    
    .modal-content {
        border-radius: var(--radius-sm);
    }
    
    .modal-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .modal-title {
        font-size: var(--font-size-lg);
    }
    
    .modal-body {
        padding: var(--spacing-md);
    }
    
    .modal-footer {
        padding: var(--spacing-sm) var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    /* Page content */
    .page-content {
        padding: var(--spacing-md) 0;
    }
    
    .main {
        min-height: calc(100vh - 120px);
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }
    
    .footer-content {
        gap: var(--spacing-md);
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-sm);
    }
    
    .footer-section p {
        font-size: var(--font-size-sm);
    }
    
    .footer-bottom {
        padding-top: var(--spacing-md);
    }
    
    .footer-bottom p {
        font-size: var(--font-size-xs);
    }
    
    /* Tables */
    table {
        font-size: var(--font-size-sm);
    }
    
    th,
    td {
        padding: var(--spacing-sm);
    }
    
    /* Navigation buttons */
    .navigation-buttons {
        margin: var(--spacing-lg) 0;
        gap: var(--spacing-xs);
    }
    
    /* Tags and categories */
    .tags,
    .photo-categories {
        gap: var(--spacing-xs);
        margin: var(--spacing-sm) 0;
    }
    
    .tag,
    .category {
        font-size: 0.7rem;
        padding: 0.2rem var(--spacing-sm);
    }
    
    /* Error pages */
    .error-container {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-message {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }
    
    .error-actions {
        gap: var(--spacing-sm);
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    :root {
        --spacing-sm: 0.375rem;
        --spacing-md: 0.75rem;
        --spacing-lg: 1rem;
        --spacing-xl: 1.25rem;
        --spacing-2xl: 1.5rem;
        --spacing-3xl: 2rem;
    }
    
    .container {
        padding-left: var(--spacing-xs);
        padding-right: var(--spacing-xs);
    }
    
    .hero-title {
        font-size: var(--font-size-xl);
    }
    
    .photo-item {
        min-height: 280px;
    }
    
    .photo-image {
        height: 160px;
    }
    
    .login-card {
        padding: var(--spacing-md);
    }
    
    .form-control {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }
    
    .modal-dialog {
        margin: 0;
        max-width: 100vw;
        max-height: 100vh;
    }
    
    .modal-content {
        border-radius: 0;
        height: 100vh;
        max-height: none;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: var(--spacing-md) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        margin-bottom: var(--spacing-md);
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-actions .btn {
        width: auto;
        max-width: 200px;
    }
    
    .login-container {
        padding: var(--spacing-sm) 0;
    }
    
    .login-card {
        padding: var(--spacing-md);
    }
    
    .photo-tiles-section {
        padding: var(--spacing-md) 0;
    }
    
    .photo-tile {
        height: 180px;
    }
    
    .photo-tile-large {
        height: 220px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .photo-item:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .photo-item:hover img {
        transform: none;
    }
    
    .photo-tile:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .nav-link:hover {
        background: var(--surface);
    }
    
    .photo-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.3);
    }
    
    .photo-tile-overlay {
        opacity: 1;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.5) 100%
        );
    }
    
    /* Make interactive elements larger for touch */
    .btn {
        min-height: 44px;
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .form-control {
        min-height: 44px;
        padding: var(--spacing-md);
    }
    
    .nav-link {
        min-height: 44px;
        padding: var(--spacing-md);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .photo-main-image {
        image-rendering: auto;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
    
    .photo-item:hover .photo-main-image {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .loading::after {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.8);
    }
    
    .btn {
        border: 2px solid;
    }
    
    .card {
        border: 2px solid var(--border);
    }
    
    .form-control {
        border: 2px solid var(--border);
    }
    
    .photo-item {
        border: 2px solid var(--border);
    }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-light: #9ca3af;
        --text-inverse: #1f2937;
        
        --background: #111827;
        --surface: #1f2937;
        --surface-elevated: #374151;
        
        --border: #374151;
        --border-light: #4b5563;
        --border-dark: #6b7280;
        
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    }
    
    .form-control {
        background: var(--surface);
        color: var(--text-primary);
    }
    
    .btn-secondary {
        background: var(--surface);
        color: var(--text-primary);
    }
    
    .photo-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .loading-overlay {
        background: rgba(17, 24, 39, 0.9);
    }
}

/* Print-specific responsive adjustments */
@media print {
    .container {
        max-width: none;
        padding: 0;
    }
    
    .photo-gallery,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1cm;
    }
    
    .photo-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
        min-height: auto;
    }
    
    .photo-image {
        height: auto;
        max-height: 8cm;
    }
    
    .hero-section,
    .photo-tiles-section {
        display: none;
    }
    
    .footer {
        position: static;
        margin-top: 2cm;
        color: #000;
        background: none;
    }
    
    .modal,
    .mobile-menu-toggle,
    .nav-menu,
    .back-to-top,
    .flash-messages,
    .loading-overlay {
        display: none !important;
    }
    
    .btn {
        border: 1px solid #000;
        background: none;
        color: #000;
    }
    
    /* Print URLs */
    .nav-link[href]:after,
    .photo-title a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        font-style: italic;
    }
}

/* Screen size utilities */
.hidden-xs {
    display: block;
}

.hidden-sm {
    display: block;
}

.hidden-md {
    display: block;
}

.hidden-lg {
    display: block;
}

@media (max-width: 480px) {
    .hidden-xs {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hidden-sm {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .hidden-md {
        display: none !important;
    }
}

@media (max-width: 1280px) {
    .hidden-lg {
        display: none !important;
    }
}

/* Show only on specific sizes */
.visible-xs,
.visible-sm,
.visible-md,
.visible-lg {
    display: none;
}

@media (max-width: 480px) {
    .visible-xs {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .visible-sm {
        display: block !important;
    }
}

@media (max-width: 1024px) {
    .visible-md {
        display: block !important;
    }
}

@media (max-width: 1280px) {
    .visible-lg {
        display: block !important;
    }
}

/* Dodaj to do frontend/web/css/responsive.css */

/* Base responsive styles */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styles */
.header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    min-height: 60px;
}

.logo {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--font-family-display);
}

.logo:hover {
    text-decoration: none;
    color: var(--primary-dark);
}

/* Desktop navigation */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--animation);
    font-weight: var(--font-weight-medium);
}

.nav-link:hover,
.nav-link.active {
    background: var(--surface);
    color: var(--primary-color);
    text-decoration: none;
}

.nav-link i {
    font-size: 1rem;
}

/* Dropdown styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--animation);
}

.dropdown-item:hover {
    background: var(--surface);
    color: var(--primary-color);
    text-decoration: none;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--animation);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

/* Main content */
.main {
    min-height: calc(100vh - 200px);
}

.page-content {
    padding: 2rem 0;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--animation);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.k3e-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--animation);
}

.k3e-link:hover {
    color: var(--primary-color);
}

.k3e-logo {
    font-weight: var(--font-weight-bold);
    color: white;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.back-to-top.visible {
    display: flex;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: var(--radius);
    z-index: 1000;
    transition: var(--animation);
}

.skip-link:focus {
    top: 1rem;
    color: white;
    text-decoration: none;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .page-content {
        padding: 1.5rem 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .page-content {
        padding: 1rem 0;
    }
    
    .breadcrumb-list {
        font-size: var(--font-size-sm);
    }
}