/* Widget Styles - Updated for PNG Icons */

.majors-widget-wrapper {
    width: 100%;
}

.majors-widget-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.majors-widget-item {
    border: 1px solid #eaeaea;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.majors-widget-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.majors-widget-content {
    padding: 20px;
}

/* Taxonomy Tags */
.majors-taxonomy-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.majors-taxonomy-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 3px;
    font-size: 12px;
    color: #333;
}

.majors-taxonomy-tag-1 {
    background-color: #e3f2fd;
    color: #1976d2;
}

.majors-taxonomy-tag-2 {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.majors-taxonomy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.majors-taxonomy-icon img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Post Title */
.majors-post-title {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
    color: #333;
}

.majors-post-title:hover {
    color: #4054b2;
}

/* Custom Area */
.majors-custom-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.majors-custom-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
}

.majors-custom-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Custom Fields - PNG Icon Support */
.majors-custom-field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.majors-field-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.majors-field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.majors-field-icon img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Custom Field 2 - Special Styling */
.majors-custom-field-2 {
    padding: 10px 14px;
    background: linear-gradient(135deg, #fff5f5, #ffe5e5);
    border-radius: 8px;
    border: 1px solid #fca5a5;
}

.majors-custom-field-2 .majors-field-text {
    font-weight: 700;
    color: #dc2626;
}

.majors-custom-field-2 .majors-field-icon {
    color: #dc2626;
}

.majors-custom-field-2 .majors-field-icon img {
    filter: brightness(0) saturate(100%) invert(17%) sepia(90%) saturate(4447%) hue-rotate(353deg) brightness(92%) contrast(89%);
}

/* Button */
.majors-button-wrapper {
    width: 100%;
    margin-top: 15px;
}

.majors-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 15px;
    background-color: #4054b2;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.majors-button:hover {
    background-color: #2c3e8f;
    color: #fff;
    transform: translateY(-1px);
}

.button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.button-icon img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.majors-button-xs { padding: 5px 10px; font-size: 12px; }
.majors-button-sm { padding: 8px 15px; font-size: 14px; }
.majors-button-md { padding: 10px 20px; font-size: 16px; }
.majors-button-lg { padding: 12px 25px; font-size: 18px; }
.majors-button-xl { padding: 15px 30px; font-size: 20px; }

/* Load More */
.majors-load-more-wrapper {
    text-align: center;
    margin-top: 30px;
}

.majors-load-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: #4054b2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.majors-load-more-button:hover {
    background-color: #2c3e8f;
    transform: translateY(-2px);
}

.majors-load-more-button:disabled,
.majors-load-more-button.loading {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Loading State */
.majors-loading {
    position: relative;
    min-height: 200px;
    opacity: 0.6;
    pointer-events: none;
}

.majors-loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #4054b2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Results */
.majors-no-results {
    padding: 30px 20px;
    text-align: center;
    background-color: #f8f8f8;
    border: 1px solid #eaeaea;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 16px;
    color: #666;
}

/* Search Widget */
.majors-search-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.majors-search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.majors-search-input-wrapper {
    position: relative;
}

.majors-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.majors-search-icon img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.majors-search-input {
    width: 100%;
    padding: 12px 45px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border 0.3s;
}

.majors-search-input:focus {
    outline: none;
    border-color: #4054b2;
}

.majors-reset-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.majors-reset-icon img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.majors-reset-icon:hover {
    transform: translateY(-50%) scale(1.1);
}

.majors-reset-icon:hover img {
    filter: brightness(0) saturate(100%) invert(15%) sepia(95%) saturate(6943%) hue-rotate(359deg) brightness(98%) contrast(113%);
}

/* Responsive */
@media (max-width: 767px) {
    .majors-widget-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .majors-widget-content {
        padding: 15px;
    }
    
    .majors-post-title {
        font-size: 16px;
    }
    
    .majors-taxonomy-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .majors-custom-image {
        width: 40px;
        height: 40px;
    }
}