/* ZLET 2025 Official Color Palette */
:root {
    --zlet-zelena: #639ca3;
    --zlet-rumena: #e5ae33;
    --zlet-rdeca: #b03324;
    --zlet-modra: #0075cf;
    --zlet-bela: #ffffff;
    --zlet-bez: #e3e0d4;
    --zlet-crna: #1a171a;
    
    /* Additional utility colors */
    --shadow-light: rgba(26, 23, 26, 0.1);
    --shadow-medium: rgba(26, 23, 26, 0.15);
    --shadow-strong: rgba(26, 23, 26, 0.25);
    --text-primary: var(--zlet-crna);
    --text-secondary: rgba(26, 23, 26, 0.7);
    --text-light: rgba(255, 255, 255, 0.9);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure proper scroll behavior on all elements */
html {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    /* Ensure proper touch scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    /* Ensure proper mobile scrolling */
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Desktop and Tablet Responsiveness */
@media (min-width: 769px) {
    .container {
        max-width: 600px;
        padding: 40px 20px;
    }
    
    .profile-section {
        padding: 40px 30px;
        margin: 40px 0 50px 0;
    }
    
    .zlet-logo {
        width: 120px;
        height: 120px;
    }
    
    .profile-name {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }
    
    .profile-description {
        font-size: 1rem;
        max-width: 500px;
        margin: 0 auto 24px auto;
    }
    
    .social-section {
        gap: 20px;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .link-item {
        padding: 22px 25px;
        margin-bottom: 12px;
        font-size: 1rem;
    }
    
    .contact-item {
        padding: 25px;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin: 40px 0 20px 0;
    }
    
    .map-section {
        padding: 40px;
        margin: 50px 0;
    }
    
    .map-container {
        max-width: 1000px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 700px;
        padding: 50px 30px;
    }
    
    .profile-section {
        padding: 50px 40px;
        margin: 50px 0 60px 0;
    }
    
    .link-item {
        padding: 24px 30px;
        margin-bottom: 14px;
    }
    
    .contact-item {
        padding: 30px;
    }
    
    .map-section {
        padding: 50px 40px;
        margin: 60px 0;
    }
    
    .map-container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin: 30px 0 40px 0;
    background: var(--zlet-bela);
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Logo Styling */
.profile-image {
    margin-bottom: 24px;
}

.zlet-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--zlet-modra);
    box-shadow: 0 4px 16px rgba(0, 117, 207, 0.2);
    transition: all 0.3s ease;
}

.zlet-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px var(--shadow-strong);
}

.profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--zlet-crna);
    line-height: 1.3;
}

.profile-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* Social Media Links in Profile */
.social-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    color: var(--zlet-modra);
    text-decoration: none;
    font-size: 22px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--zlet-rumena);
    transform: translateY(-2px) scale(1.1);
}

/* Disabled Social Link State */
.social-link--disabled {
  pointer-events: none;
  color: #cfd6dd; /* lighter disabled color */
  opacity: 1;
  filter: none;
  cursor: not-allowed;
  position: relative;
  transition: none;
}
.social-link--disabled:hover { color: #cfd6dd; transform: none; opacity: 1; }
.social-link--disabled i { position: relative; z-index: 1; }
.social-link--disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 95%;
  height: 3px;
  background: currentColor;
  transform: rotate(-45deg);
  opacity: 0.5; /* lighter so the icon stays visible */
  pointer-events: none;
  border-radius: 3px;
  z-index: 0;
}

/* Links Section */
.links-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--zlet-crna);
    margin: 32px 0 16px 0;
    text-align: center;
}

/* Contact Item */
.contact-item {
    background: var(--zlet-rdeca);
    margin-bottom: 20px;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(176, 51, 36, 0.25);
    border: none;
    cursor: default;
}

.contact-availability {
    background-color: var(--zlet-rumena);
    color: var(--zlet-bela);
    padding: 3px 12px;
    border-radius: 25px;
    font-size: 0.87rem;
    font-weight: 700;
    flex-shrink: 0;
}

.contact-item .link-content {
    width: 100%;
}

.link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.link-title {
    font-weight: 600;
    color: var(--zlet-bela);
    font-size: 1rem;
}

.link-more {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--zlet-bela);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.link-more:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.contact-details {
    text-align: left;
}

.contact-details p {
    color: var(--zlet-bela);
    margin: 10px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-details i {
    width: 18px;
    text-align: center;
    opacity: 0.9;
}

/* Link Items */
.link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    margin-bottom: 10px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* WhatsApp Items */
.whatsapp-item {
    background: var(--zlet-zelena);
    color: var(--zlet-bela);
    box-shadow: 0 2px 12px rgba(99, 156, 163, 0.25);
    border: none;
}

.whatsapp-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 156, 163, 0.3);
    background: #4a7a80;
}

.whatsapp-item i {
    font-size: 24px;
    color: var(--zlet-bela);
}

/* Restricted Items */
.restricted-item {
    background: var(--zlet-rumena);
    color: var(--zlet-crna);
    box-shadow: 0 2px 12px rgba(229, 174, 51, 0.25);
    border: none;
}

.restricted-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(229, 174, 51, 0.3);
    background: #c4941f;
}

.restricted-item i {
    font-size: 18px;
    color: var(--zlet-crna);
}

/* Website Items */
.website-item {
    background: var(--zlet-modra);
    color: var(--zlet-bela);
    box-shadow: 0 2px 12px rgba(0, 117, 207, 0.25);
    border: none;
}

.website-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 117, 207, 0.3);
    background: #005fa3;
}

.link-item span {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Gradiva / Resources */
.resources-item {
    background: var(--zlet-bez);
    color: var(--zlet-crna);
    box-shadow: 0 2px 12px rgba(0, 117, 207, 0.25);
}

.resources-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 117, 207, 0.3);
    background: #dcd9c8;
}

.resources-item i {
    color: var(--zlet-crna);
}

/* Map Section */
.map-section {
    background: var(--zlet-bela);
    border-radius: 20px;
    padding: 32px 24px;
    margin-bottom: 40px;
    text-align: center;
    border: 2px solid var(--zlet-bez);
    box-shadow: 0 4px 16px var(--shadow-light);
}

/* Weather Section - No Card Styling */
.weather-section {
    display: none;
}

#weather-radar-img {
    display: none;
}

.map-header h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.map-header h3 i {
    color: var(--zlet-modra);
}

.map-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.map-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-strong);
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.map-container:hover .map-image {
    transform: scale(1.02);
}

/* Schedule Controls */
.schedule-container {
    position: relative;
}

.schedule-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    pointer-events: none;
}

.schedule-arrow {
    background: rgba(26, 23, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--zlet-bela);
    color: var(--zlet-bela);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    pointer-events: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.schedule-arrow:hover {
    background: var(--zlet-bela);
    color: var(--zlet-crna);
    transform: scale(1.1);
    border-color: var(--zlet-bela);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.schedule-arrow:active {
    transform: scale(0.95);
}

/* Zoom Modal */
.map-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    overflow: hidden;
}

.map-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.map-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
}

.map-modal-content.dragging {
    cursor: grabbing;
}

.map-modal-image {
    max-width: none;
    max-height: none;
    min-width: 100%;
    min-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.1s ease-out;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.map-modal-image.dragging {
    cursor: grabbing;
}

.map-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-close:hover {
    color: var(--zlet-rumena);
    background: rgba(0, 0, 0, 0.7);
}

.map-zoom-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
    opacity: 0.7;
}

.map-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1001;
}

.map-control-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    color: var(--zlet-rumena);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Ensure proper scrolling on mobile */
    body {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    
    .container {
        padding: 16px;
        max-width: 100%;
        min-height: 100vh;
        overflow-x: hidden;
    }
    
    .profile-section {
        margin: 20px 0 32px 0;
        padding: 28px 20px;
        border-radius: 18px;
    }
    
    .zlet-logo {
        width: 90px;
        height: 90px;
    }
    
    .profile-name {
        font-size: 1.25rem;
    }
    
    .profile-description {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .link-item {
        padding: 16px 18px;
        margin-bottom: 8px;
        border-radius: 12px;
    }
    
    .contact-item {
        padding: 18px;
        border-radius: 12px;
    }
    
    .section-title {
        font-size: 1rem;
        margin: 28px 0 14px 0;
    }
    
    .map-section {
        padding: 28px 20px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .profile-section {
        margin: 16px 0 28px 0;
        padding: 28px 20px;
        border-radius: 18px;
    }
    
    .zlet-logo {
        width: 90px;
        height: 90px;
    }
    
    .profile-name {
        font-size: 1.2rem;
        line-height: 1.2;
    }
    
    .profile-description {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 20px;
        gap: 12px;
    }
    
    .link-item {
        padding: 16px;
        border-radius: 12px;
    }
    
    .link-item span {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .contact-item {
        padding: 18px;
        border-radius: 12px;
    }
    
    .contact-details p {
        font-size: 0.85rem;
        gap: 10px;
    }
    
    .link-more {
        padding: 6px;
        font-size: 14px;
    }
    
    .map-placeholder {
        padding: 24px 16px;
        border-radius: 14px;
    }
    
    .map-info h3 {
        font-size: 1.1rem;
    }
    
    .map-info p {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 0.95rem;
        margin: 24px 0 12px 0;
    }
}

/* Animation and Interactive Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-section {
    animation: fadeInUp 0.6s ease-out;
}

.link-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.link-item:nth-child(1) { animation-delay: 0.1s; }
.link-item:nth-child(2) { animation-delay: 0.15s; }
.link-item:nth-child(3) { animation-delay: 0.2s; }
.link-item:nth-child(4) { animation-delay: 0.25s; }
.link-item:nth-child(5) { animation-delay: 0.3s; }
.link-item:nth-child(6) { animation-delay: 0.35s; }
.link-item:nth-child(7) { animation-delay: 0.4s; }
.link-item:nth-child(8) { animation-delay: 0.45s; }

.map-section { 
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

/* Click Effects */
.link-item:active {
    transform: scale(0.98) translateY(-1px);
}

.social-link:active {
    transform: scale(0.95) translateY(-1px);
}

.zlet-logo:active {
    transform: scale(0.98);
}

/* Focus states for accessibility */
.link-item:focus,
.social-link:focus {
    outline: 3px solid var(--zlet-rumena);
    outline-offset: 2px;
}

/* Loading State */
body.loading {
    opacity: 0;
}

body {
    transition: opacity 0.5s ease;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .link-item {
        border: 2px solid var(--zlet-crna);
    }
    
    .profile-section {
        border: 2px solid var(--zlet-crna);
    }
}

/* Phone number links */
.contact-details a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 2px 4px;
    margin: -2px -4px;
}

.contact-details a[href^="tel:"]:hover {
    background-color: rgba(99, 156, 163, 0.1);
    color: var(--zlet-zelena);
    text-decoration: underline;
    cursor: pointer;
}

.contact-details a[href^="tel:"]:active {
    background-color: rgba(99, 156, 163, 0.2);
    transform: scale(0.98);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
