/**
 * MILLA Tags Styles
 * 
 * This file contains the styles for the tags functionality
 * 
 * @since 1.0.0
 * @package MILLA
 */

/* Tags Wrapper */
.milla-tags-wrapper {
    position: relative;
    width: 100%;
}

/* Tags Input */
.milla-tags-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.3s ease;
}

.milla-tags-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Tags Display */
.milla-tags-display {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 20px;
}

/* Individual Tag */
.milla-tag {
    display: inline-flex;
    align-items: center;
    background-color: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    cursor: default;
    transition: background-color 0.2s ease;
}

.milla-tag:hover {
    background-color: #005a87;
}

.milla-tag-text {
    margin-right: 4px;
}

/* Tag Remove Button */
.milla-tag-remove {
    font-size: 14px !important;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.milla-tag-remove:hover {
    opacity: 1;
}

/* Tags Suggestions */
.milla-tags-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.milla-tags-suggestions-list {
    padding: 0;
    margin: 0;
}

.milla-tag-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.milla-tag-suggestion:hover {
    background-color: #f5f5f5;
}

.milla-tag-suggestion:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .milla-tags-display {
        gap: 4px;
    }
    
    .milla-tag {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .milla-tag-remove {
        font-size: 12px !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .milla-tags-input {
        background-color: #2c2c2c;
        border-color: #555;
        color: #fff;
    }
    
    .milla-tags-input:focus {
        border-color: #0073aa;
    }
    
    .milla-tags-suggestions {
        background-color: #2c2c2c;
        border-color: #555;
    }
    
    .milla-tag-suggestion {
        border-bottom-color: #444;
        color: #fff;
    }
    
    .milla-tag-suggestion:hover {
        background-color: #3c3c3c;
    }
} 