/* 
 * Shop Card Generator Styles - Modernized Version
 * CSS štýly pre modernú shop kartu s lepšou používateľskou skúsenosťou
 */

/* Hlavný kontajner shop karty */
.shop-card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    height: auto !important; /* Automatická výška podľa obsahu */
    min-height: auto !important; /* Odstráni minimálnu výšku */
}

.shop-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.shop-card.selected {
    border: 2px solid #0d6efd !important;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.2) !important;
}

/* Header shop karty */
.shop-card .card-body {
    padding: 1.25rem !important;
}

.shop-card .card-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 0.5rem !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-card .card-title::before {
    content: "🏪";
    font-size: 1.2rem;
}

.shop-card .card-text {
    font-size: 0.9rem !important;
    color: #6c757d !important;
    margin-bottom: 1rem !important;
    line-height: 1.4;
}

/* Služby sekcia */
.services-section {
    background: rgba(248, 249, 250, 0.5);
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
}

.services-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}

.services-header i {
    color: #0d6efd;
}

/* Kontajner pre služby */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: none !important; /* Odstráni akékoľvek obmedzenie výšky */
    overflow: visible !important; /* Zabezpečí viditeľnosť všetkých služieb */
}

/* Jednotlivé služby - modernizované */
.service-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.85em;
    line-height: 1.3;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer; /* Pridané pre celú službu */
}

.service-item:hover {
    transform: translateX(2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    border-color: #0d6efd;
    background-color: #f8f9ff; /* Jemné zvýraznenie celej služby */
}

/* Hlavička služby s názvom a cenou */
.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

/* Názov služby */
.service-name {
    flex: 1;
    font-weight: 500;
    margin-right: 8px;
    color: #2c3e50;
    line-height: 1.2;
}

/* Cena služby - modernizovaná */
.service-price {
    font-size: 0.9em;
    font-weight: 600;
    padding: 3px 8px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    min-width: auto;
}

/* Bezplatné služby */
.service-price.free {
    background: linear-gradient(45deg, #6c757d, #adb5bd);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

/* Kontajner pre dostupné termíny */
.available-slots {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e9ecef;
}

/* Footer služby s flexbox rozložením */
.service-footer {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e9ecef;
}

.service-left {
    flex: 1;
}

.service-right {
    flex-shrink: 0;
}

/* Počet dostupných termínov - modernizovaný */
.slot-count {
    font-size: 0.75em;
    font-weight: 500;
    padding: 4px 8px;
    background: linear-gradient(45deg, #17a2b8, #20c997);
    color: white;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.slot-count i {
    font-size: 0.8em;
}

/* Footer shop karty */
.shop-card .card-footer {
    background: rgba(248, 249, 250, 0.8) !important;
    border-top: 1px solid #e9ecef !important;
    padding: 0.75rem 1.25rem !important;
}

.shop-card .card-footer .btn {
    font-size: 0.85rem !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

/* Tlačidlo pre výber */
.select-prompt {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.select-prompt::after {
    content: "👆";
    font-size: 0.9rem;
}

/* Responsive design pre menšie obrazovky */
@media (max-width: 768px) {
    .shop-card .card-body {
        padding: 1rem !important;
    }
    
    .service-item {
        font-size: 0.8em;
        padding: 8px 10px;
    }
    
    .service-price {
        font-size: 0.8em;
        padding: 2px 6px;
    }
    
    .slot-count {
        font-size: 0.7em;
        padding: 3px 6px;
    }
    
    .shop-card .card-title {
        font-size: 1rem !important;
    }
}

/* Animácie pre lepší UX */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item {
    animation: slideIn 0.3s ease-out;
}

/* Špeciálne štýly pre rozličné služby */
.service-item[data-service-type="examination"] {
    border-left: 4px solid #007bff;
}

.service-item[data-service-type="surgery"] {
    border-left: 4px solid #dc3545;
}

.service-item[data-service-type="consultation"] {
    border-left: 4px solid #28a745;
}

/* Staré štýly pre kompatibilitu - zachované */
.services-toggle {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.services-toggle:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.services-list.collapsed .service-item:nth-child(n+4) {
    display: none;
}

/* Loading stav */
.shop-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.shop-card.loading::after {
    content: "⏳";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    z-index: 10;
}

/* Styling pre prázdny stav (žiadne služby) */
.no-services-message {
    font-style: italic;
    color: #6c757d;
    font-size: 0.8em;
    text-align: center;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px dashed #dee2e6;
}

/* Skrytie služieb ak je ich príliš veľa */
.services-list.collapsed {
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.services-list.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, rgba(255,255,255,0.9));
    pointer-events: none;
}

/* Tlačidlo na rozbalenie/zbalenie služieb */
.services-toggle {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 0.8em;
    padding: 4px 0;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 4px;
}

.services-toggle:hover {
    color: #0a58ca;
}

/* Utility triedy pre rýchle úpravy */
.hide-prices .service-price {
    display: none !important;
}

.compact-services .service-item {
    padding: 3px 6px;
    font-size: 0.8em;
}

/* Nové štýly pre klikateľné služby */
.clickable-service {
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border-radius: 6px !important;
}

.clickable-service:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.service-item.selected .clickable-service {
    background-color: rgba(13, 110, 253, 0.15) !important;
    border: 2px solid #0d6efd !important;
}

.service-select-hint {
    font-size: 0.7em !important;
    color: #6c757d !important;
    margin-top: 0 !important; /* Odstránené margin-top pre flexbox */
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer; /* Pridané pre jasnosť kliknutia */
    transition: color 0.2s ease; /* Plynulý prechod farby */
}

.service-select-hint:hover {
    color: #0d6efd !important; /* Zvýraznenie pri hover */
}

/* Hint pre karty s viacerými službami */
.multiple-services-hint {
    margin-top: 8px !important;
    padding: 6px 10px !important;
    background-color: #e3f2fd !important;
    border: 1px solid #bbdefb !important;
    border-radius: 6px !important;
    font-size: 0.8em !important;
    color: #1565c0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.multiple-services-hint i {
    color: #1976d2 !important;
}

/* Popup hint pre výber služby */
.selection-hint-popup {
    position: relative !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    font-size: 0.8em !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    animation: fadeInUp 0.3s ease-out !important;
}

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

/* Štýly pre selected service info */
.selected-service-info {
    margin-top: 8px !important;
    padding: 8px 12px !important;
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    color: white !important;
    border-radius: 6px !important;
    font-size: 0.85em !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3) !important;
}

.selected-service-info i {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Deaktivované karty s viacerými službami */
.shop-card.multiple-services {
    cursor: default !important;
}

.shop-card.multiple-services:hover {
    transform: none !important;
}

.shop-card.multiple-services .card-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    border-radius: 8px;
}

.minimal-services .services-list {
    max-height: 60px;
    overflow: hidden;
}
