/**
 * Vendor Directory Styles
 * 
 * Basic styling for the vendor directory shortcode
 * 
 * @package Voya_Virtual_Benefits_Fair
 */

.vendor-directory {
    margin: 20px 0;
    width: 100%;
    overflow-x: hidden;
}

.vendor-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.vendor-item {
    padding: 15px;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.vendor-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vendor-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.vendor-link:hover {
    color: #0073aa;
}

.vendor-booth-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.vendor-link:hover .vendor-booth-image {
    transform: scale(1.05);
}

.vendor-title {
    border-bottom: 1px solid rgba(110,110,110,0.25);
    color: #333333;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.1;
    margin: 8px 0;
    padding: 0 0 10px 0;
    text-align: center;
}

.vendor-name {
    color: #333;
    font-weight: 500;
    margin-top: 8px;
    font-size: 1.5rem;
    line-height: 1.4;
}

.vendor-logo {
    max-width: 200px;
    width: auto;
    max-height: 50px;
    height: auto;
    box-shadow: none !important;
    border: none !important;
    margin-top: 15px;
    object-fit: contain;
}

.no-vendors {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vendor-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .vendor-item {
        padding: 10px;
    }
    
    .vendor-title {
        font-size: 1.1rem;
    }
    
    .vendor-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .vendor-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .vendor-item {
        padding: 8px;
    }
}

/* Tooltip Styles */
.vendor-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.vendor-item:hover .vendor-tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-content {
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    max-width: 280px;
    word-wrap: break-word;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-text {
    margin-bottom: 16px;
}

.tooltip-button {
    background: #145a7b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.tooltip-button:hover {
    background: #0f4a66;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 90, 123, 0.3);
}

.vendor-item:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    z-index: 999;
    pointer-events: none;
    backdrop-filter: blur(2.5px);
}

/* Responsive tooltip */
@media (max-width: 768px) {
    .tooltip-content {
        max-width: 240px;
        font-size: 13px;
        padding: 16px 18px;
    }
    
    .tooltip-button {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .vendor-item:hover::before {
        width: calc(100% + 16px);
        height: calc(100% + 16px);
    }
}
