/**
 * Whisky Globe Explorer - Styles
 */

/* Main container */
.whisky-globe-wrapper {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* View toggle buttons */
.whisky-globe-view-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.whisky-globe-view-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whisky-globe-view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.whisky-globe-view-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-color: #d4af37;
    color: #000;
}

.whisky-globe-view-btn i {
    font-size: 16px;
}

/* Globe container */
.whisky-globe-container {
    width: 100%;
    height: 500px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #1a1a3e 0%, #0a0a1a 100%);
}

.whisky-globe-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Controls */
.whisky-globe-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.whisky-globe-control-btn {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.whisky-globe-control-btn:hover {
    background: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.whisky-globe-back-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: none;
}

.whisky-globe-back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Legend */
.whisky-globe-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.whisky-globe-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 13px;
}

.whisky-globe-legend-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

/* Tooltip */
.whisky-globe-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: #d4af37;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    z-index: 10000;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: none;
}

/* Products panel */
.whisky-globe-products {
    margin-top: 20px;
    display: none;
}

.whisky-globe-products-title {
    color: #d4af37;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.whisky-globe-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Product card */
.whisky-globe-product-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whisky-globe-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 175, 55, 0.4);
}

.whisky-globe-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.whisky-globe-product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.whisky-globe-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.whisky-globe-product-card:hover .whisky-globe-product-image img {
    transform: scale(1.05);
}

.whisky-globe-product-info {
    padding: 15px;
}

.whisky-globe-product-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.whisky-globe-product-distillery {
    color: #aaa;
    font-size: 13px;
    margin: 0 0 8px 0;
}

.whisky-globe-product-price {
    color: #d4af37;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Loading and empty states */
.whisky-globe-loading,
.whisky-globe-no-products,
.whisky-globe-error {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}

.whisky-globe-loading::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

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

.whisky-globe-error {
    color: #e74c3c;
}

/* List view */
.whisky-globe-list-view {
    display: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    max-height: 600px;
    overflow-y: auto;
}

.whisky-globe-list-section {
    margin-bottom: 30px;
}

.whisky-globe-list-title {
    color: #d4af37;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Instructions */
.whisky-globe-instructions {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.whisky-globe-instructions p {
    margin: 5px 0;
}

/* Scrollbar styling for list view */
.whisky-globe-list-view::-webkit-scrollbar {
    width: 8px;
}

.whisky-globe-list-view::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.whisky-globe-list-view::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 4px;
}

.whisky-globe-list-view::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

/* Responsive design */
@media (max-width: 768px) {
    .whisky-globe-wrapper {
        padding: 15px;
        margin: 10px 0;
    }

    .whisky-globe-container {
        height: 350px;
    }

    .whisky-globe-view-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .whisky-globe-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .whisky-globe-product-image {
        height: 150px;
    }

    .whisky-globe-legend {
        gap: 10px;
        padding: 10px;
    }

    .whisky-globe-legend-item {
        font-size: 11px;
    }

    .whisky-globe-products-title {
        font-size: 20px;
    }

    .whisky-globe-list-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .whisky-globe-container {
        height: 280px;
    }

    .whisky-globe-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .whisky-globe-product-image {
        height: 120px;
    }

    .whisky-globe-product-info {
        padding: 10px;
    }

    .whisky-globe-product-title {
        font-size: 14px;
    }

    .whisky-globe-view-toggle {
        flex-direction: column;
        align-items: center;
    }

    .whisky-globe-view-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for product cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whisky-globe-product-card {
    animation: fadeInUp 0.4s ease forwards;
}

.whisky-globe-product-card:nth-child(1) { animation-delay: 0.05s; }
.whisky-globe-product-card:nth-child(2) { animation-delay: 0.1s; }
.whisky-globe-product-card:nth-child(3) { animation-delay: 0.15s; }
.whisky-globe-product-card:nth-child(4) { animation-delay: 0.2s; }
.whisky-globe-product-card:nth-child(5) { animation-delay: 0.25s; }
.whisky-globe-product-card:nth-child(6) { animation-delay: 0.3s; }
