/**
 * Public Styles
 * CSS για τα frontend shortcodes
 */

/* === LIFTS STATUS WIDGET === */
.ski-lifts-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Date Tabs */
.ski-date-tabs {
    display: flex;
    gap: 10px;
  
    border-bottom: 2px solid #e0e0e0;
}

.ski-tab-btn {
     padding: 0px 7px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.ski-tab-btn:hover {
    color: #333;
    background: #f5f5f5;
}

.ski-tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.ski-tab-btn .date-detail {
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: #999;
    margin-top: 4px;
}

/* Tab Content */
.ski-tab-content {
    display: none;
}

.ski-tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

/* Grid Layout */
.ski-lifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

/* List Layout */
.ski-lifts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Lift Item */
.lift-item {
    background: #fff;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lift-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lift-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.lift-name {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.status-icon {
    width: 24px;
    height: 24px;
}

.status-reason {
    margin-top: 8px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reason-icon {
    font-size: 16px;
}

.reason-text {
    font-style: italic;
}

/* === CONDITIONS WIDGET === */
.ski-conditions-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.conditions-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #333;
    font-weight: 700;
}

/* Table Layout */
.ski-conditions-table {
    width: 100%;
    border-collapse: collapse;
}

.ski-conditions-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.ski-conditions-table tbody tr:last-child {
    border-bottom: none;
}

.condition-row {
    transition: background 0.2s;
}

.condition-row:hover {
    background: #f9f9f9;
}

.condition-label {
    padding: 12px 8px;
    font-weight: 600;
    color: #666;
    width: 40%;
}

.condition-value {
    padding: 12px 8px;
    color: #333;
}

.condition-value strong {
    font-weight: 700;
    color: #667eea;
}

/* List Layout */
.ski-conditions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.condition-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.condition-item:last-child {
    border-bottom: none;
}

.ski-conditions-list .condition-label {
    font-weight: 600;
    color: #666;
    min-width: 180px;
    padding-right: 20px;
}

.ski-conditions-list .condition-value {
    color: #333;
    font-weight: 600;
}

.conditions-updated {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #999;
    text-align: right;
}

/* No Data Message */
.ski-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .ski-lifts-grid {
        grid-template-columns: 1fr;
    }
    
    .ski-date-tabs {
        flex-wrap: wrap;
    }
    
    .ski-tab-btn {
        flex: 1;
        min-width: 120px;
	line-height: 1 !important;
	border-radius: 0px 0px 0px 0px !important;
    }
    
    .lift-item {
        flex-wrap: wrap;
    }
    
    .status-reason {
        width: 100%;
        margin-left: 0;
    }
    
    .condition-label {
        width: 100%;
    }
    
    .ski-conditions-list .condition-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .ski-conditions-list .condition-label {
        min-width: 100%;
        padding-right: 0;
    }
    
    .ski-map-container {
        padding: 15px;
    }
    
    .mini-map-img-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .lift-name {
        font-size: 14px;
    }
    
    .status-badge {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* === INTERACTIVE MAP === */
.ski-map-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.map-title-con {
    text-align: center;
    margin-bottom: 20px;
}

.map-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mini-map-img-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 5/3;
}

.mini-map-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.map-base {
    z-index: 1;
}

.map-overlay {
    z-index: 2;
    pointer-events: none;
}

.map-lift {
    z-index: 3;
    cursor: pointer;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
}

.map-lift:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

/* Hide all pistes by default when hovering */
.mini-map-img-container:hover .map-overlay {
    opacity: 0.3;
}

.mini-map-img-container:hover .map-lift {
    opacity: 0.3;
}

/* Show only the hovered lift's elements */
.mini-map-img-container .map-lift.active,
.mini-map-img-container .map-overlay.active {
    opacity: 1 !important;
}

.map-divider {
    text-align: center;
    padding: 20px 0 15px 0;
    border-top: 2px solid #e0e0e0;
    margin-top: 20px;
}

.map-divider h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.map-lifts-list {
    margin-top: 15px;
}

.map-lift-item {
    border-radius: 4px;
    transition: all 0.2s ease;
}

.map-lift-item:hover {
    background-color: #e0e0e0 !important;
    transform: translateX(5px);
    cursor: pointer;
}

.map-lift-icon {
    display: inline-block;
}

.map-lift-name {
    display: inline-block;
}

.map-lift-status {
    display: inline-block;
}

/* Lift items με map support */
.lift-item.map-lift-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.lift-item.map-lift-item:hover {
    transform: translateY(-2px) translateX(3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}