/**
 * Custom CSS - Mobilní Kadeřnictví HK
 */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation links */
.nav-link {
    position: relative;
    font-weight: 500;
    color: #4B5563;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #8B5CF6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #8B5CF6, #EC4899);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Primary button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #8B5CF6;
    background: white;
    border: 2px solid #8B5CF6;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #8B5CF6;
    color: white;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card styles */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Service card */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #8B5CF6, #EC4899);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Visually hidden but accessible */
.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;
}

/* Service select card - reservation page */
.service-select-card {
    border: 3px solid #E5E7EB;
    background: white;
    position: relative;
}

.service-select-card:hover {
    border-color: #C4B5FD;
    background: #FAF5FF;
}

.service-select-card.selected {
    border-color: #8B5CF6 !important;
    border-width: 3px !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(236, 72, 153, 0.08) 100%) !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2), 0 10px 30px -5px rgba(139, 92, 246, 0.25) !important;
    transform: scale(1.01);
}

.service-select-card.selected::before {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.service-select-card.selected h3 {
    color: #7C3AED;
}

/* Hero gradient background */
.hero-gradient {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3E8FF 50%, #FCE7F3 100%);
}

/* Animated blob */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: blob 7s infinite;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder {
    color: #9CA3AF;
}

/* Form label */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

/* Calendar styles */
.calendar-day {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    background: #F3E8FF;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    color: white;
}

.calendar-day.disabled {
    color: #D1D5DB;
    cursor: not-allowed;
}

.calendar-day.today {
    border: 2px solid #8B5CF6;
}

.calendar-day.vacation {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
    position: relative;
    cursor: not-allowed;
}

.calendar-day.vacation:hover {
    background: linear-gradient(135deg, #FECACA 0%, #FCA5A5 100%);
}

.calendar-day.vacation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #EF4444;
    transform: translateY(-50%) rotate(-45deg);
}

.calendar-day.fully-booked {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
    position: relative;
    cursor: not-allowed;
}

.calendar-day.fully-booked:hover {
    background: linear-gradient(135deg, #FDE68A 0%, #FCD34D 100%);
}

.calendar-day.fully-booked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #F59E0B;
    transform: translateY(-50%) rotate(-45deg);
}

/* Express blocked - too short notice */
.calendar-day.express-blocked {
    background: linear-gradient(135deg, #FFEDD5 0%, #FED7AA 100%);
    color: #9A3412;
    position: relative;
    cursor: not-allowed;
}

.calendar-day.express-blocked:hover {
    background: linear-gradient(135deg, #FED7AA 0%, #FDBA74 100%);
}

.calendar-day.express-blocked::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #F97316, #EA580C);
    border-radius: 50%;
}

/* Time slot */
.time-slot {
    padding: 0.5rem 0.25rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
}

.time-slot:hover:not(.disabled):not(.selected) {
    border-color: #8B5CF6;
    background: #F3E8FF;
}

.time-slot.selected {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    color: white;
    border-color: transparent;
}

.time-slot.disabled {
    color: #D1D5DB;
    background: #F9FAFB;
    cursor: not-allowed;
}

/* Animations */
.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Feature icon */
.feature-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F3E8FF 0%, #FCE7F3 100%);
    border-radius: 1rem;
    color: #8B5CF6;
}

/* Price tag */
.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

/* Table styles */
.table-container {
    overflow-x: auto;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    background: #F9FAFB;
    border-bottom: 2px solid #E5E7EB;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: #F9FAFB;
}

/* Loader */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Parallax effect container */
.parallax-container {
    position: relative;
    overflow: hidden;
}

/* Floating elements */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Hero Slideshow - Ken Burns Effect */
#hero-slideshow .slide {
    transition: opacity 1.2s ease-in-out;
}

#hero-slideshow .kenburns-img {
    transform-origin: center center;
}

/* Ken Burns animations - různé varianty */
@keyframes kenburns1 {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(-2%, -1%);
    }
}

@keyframes kenburns2 {
    0% {
        transform: scale(1.1) translate(-2%, -2%);
    }
    100% {
        transform: scale(1) translate(2%, 1%);
    }
}

@keyframes kenburns3 {
    0% {
        transform: scale(1) translate(1%, 0);
    }
    100% {
        transform: scale(1.12) translate(-1%, 2%);
    }
}

@keyframes kenburns4 {
    0% {
        transform: scale(1.15) translate(0, -2%);
    }
    100% {
        transform: scale(1) translate(0, 2%);
    }
}

#hero-slideshow .slide.active .kenburns-img {
    animation-duration: 6s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

#hero-slideshow .slide[data-slide="0"].active .kenburns-img { animation-name: kenburns1; }
#hero-slideshow .slide[data-slide="1"].active .kenburns-img { animation-name: kenburns2; }
#hero-slideshow .slide[data-slide="2"].active .kenburns-img { animation-name: kenburns3; }
#hero-slideshow .slide[data-slide="3"].active .kenburns-img { animation-name: kenburns4; }
#hero-slideshow .slide[data-slide="4"].active .kenburns-img { animation-name: kenburns1; }
#hero-slideshow .slide[data-slide="5"].active .kenburns-img { animation-name: kenburns2; }

/* Slide indicators */
#hero-slideshow .slide-dot {
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#hero-slideshow .slide-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* Pulse animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Selection color */
::selection {
    background: #C4B5FD;
    color: #581C87;
}

/* Responsive typography */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}
