/* Color Trends Styling */

.trend-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.trend-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.palette-color:hover .trend-btn,
.color-preview:hover .trend-btn,
.harmony-suggestion-color:hover .trend-btn {
    opacity: 1;
}

.trend-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    min-width: 320px;
    max-width: 420px;
    z-index: 1000;
    animation: trendTooltipIn 0.3s ease;
}

@keyframes trendTooltipIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.trend-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Copy button styles */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: #333;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.trending-color-card:hover .copy-btn,
.seasonal-color:hover .copy-btn,
.industry-color:hover .copy-btn,
.color-preview:hover .copy-btn {
    opacity: 1;
}

.color-code-display {
    margin: 8px 0;
}

.color-hex {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-block;
}

.color-hex:hover {
    background: rgba(255, 255, 255, 0.2);
}

.color-label {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-family: 'Courier New', monospace;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.seasonal-color:hover .color-label,
.industry-color:hover .color-label {
    opacity: 1;
}

.trend-color-preview {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.trend-header h5 {
    margin: 0;
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #fff;
}

.trend-content {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.trend-section {
    margin-bottom: 16px;
}

.trend-section:last-child {
    margin-bottom: 0;
}

.trend-section h6 {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: 600;
}

.trend-item,
.seasonal-match,
.industry-item,
.prediction-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.trend-item:last-child,
.industry-item:last-child,
.prediction-item:last-child {
    margin-bottom: 0;
}

.trend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.trend-info {
    flex: 1;
}

.trend-info strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.trend-desc,
.trend-themes,
.industry-desc,
.prediction-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

.industry-item strong,
.prediction-item strong {
    font-size: 0.85rem;
    color: #4fc3f7;
    margin-bottom: 2px;
    display: block;
}

/* Trending Colors Page Styles */
.trending-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.trending-color-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trending-color-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.trending-color-swatch {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin: 0 auto 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.trending-color-info h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.trending-color-info .confidence {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-bottom: 8px;
    display: inline-block;
}

.trending-color-info .category {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 5px;
}

.seasonal-trends {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(139, 195, 74, 0.1));
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.seasonal-colors {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.seasonal-color {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.seasonal-color:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.industry-trends {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.industry-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.industry-colors {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.industry-color {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .trend-tooltip {
        min-width: 280px;
        max-width: 320px;
    }
    
    .trending-colors-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .trending-color-swatch {
        width: 60px;
        height: 60px;
    }
    
    .seasonal-colors {
        justify-content: center;
    }
    
    .seasonal-color {
        width: 40px;
        height: 40px;
    }
}