/**
 * Elementor Widgets Styles
 * 
 * @package Web_Frame_Theme
 * @since 1.0.0
 */

/* Brand Colors Widget */
.brand-colors-widget {
    padding: 20px 0;
}

.brand-colors-header {
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    text-align: center;
}

.brand-colors-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.color-square {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.color-square:hover {
    transform: translateY(-2px);
    border-color: #999;
}

.color-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    word-wrap: break-word;
    max-width: 100%;
}

.color-code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    line-height: 1.2;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-colors-header {
        font-size: 24px;
    }
    
    .color-square {
        width: 70px;
        height: 70px;
    }
    
    .color-name {
        font-size: 13px;
    }
    
    .color-code {
        font-size: 11px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .brand-colors-header {
        font-size: 22px;
    }
    
    .color-square {
        width: 60px;
        height: 60px;
    }
    
    .color-name {
        font-size: 12px;
    }
    
    .color-code {
        font-size: 10px;
        padding: 2px 5px;
    }
}

/* Elementor Editor Styles */
.elementor-editor-active .brand-colors-widget {
    border: 1px dashed #ddd;
    padding: 20px;
    border-radius: 8px;
}

.elementor-editor-active .brand-colors-widget:before {
    content: 'Brand Colors Widget';
    display: block;
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    font-style: italic;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .brand-colors-header {
        color: #fff;
    }
    
    .color-name {
        color: #e0e0e0;
    }
    
    .color-code {
        color: #ccc;
        background-color: #2a2a2a;
        border-color: #444;
    }
    
    .color-square {
        border-color: #444;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .color-square {
        border-width: 1px;
        border-color: #000;
    }
    
    .color-code {
        border-width: 1px;
        border-color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .color-square {
        transition: none;
    }
    
    .color-square:hover {
        transform: none;
    }
}
