/**
 * Yiontech Elementor Widgets Global Styles
 */

/* Common Card Styles */
.yiontech-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.yiontech-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Common Thumbnail Styles */
.yiontech-thumbnail {
    overflow: hidden;
    position: relative;
}

.yiontech-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.yiontech-card:hover .yiontech-thumbnail img {
    transform: scale(1.05);
}

/* Common Content Styles */
.yiontech-content {
    padding: 20px;
}

/* Common Title Styles */
.yiontech-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.yiontech-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.yiontech-title a:hover {
    color: #007bff;
}

/* Common Button Styles */
.yiontech-button {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.yiontech-button:hover {
    background: #0056b3;
    color: #fff;
}

/* Common Badge Styles */
.yiontech-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #f0f0f0;
    color: #333;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Common Rating Styles */
.yiontech-rating {
    display: flex;
    align-items: center;
    margin: 0 0 10px;
    font-size: 14px;
}

.yiontech-rating .rating-stars {
    color: #f59e0b;
    margin-right: 5px;
}

.yiontech-rating .rating-count {
    color: #6b7280;
}

/* Common Price Styles */
.yiontech-price {
    font-weight: bold;
    margin-bottom: 15px;
    color: #007bff;
}

/* Common Meta Styles */
.yiontech-meta {
    display: flex;
    align-items: center;
    margin: 0 0 10px;
    font-size: 14px;
    color: #666;
}

.yiontech-meta-item {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.yiontech-meta-item i {
    margin-right: 5px;
}

/* Common Social Icons Styles */
.yiontech-social-icons {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.yiontech-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #4b5563;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.yiontech-social-icon:hover {
    background-color: #1e40af;
    color: #ffffff;
}

/* Common Grid Styles */
.yiontech-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.yiontech-grid-columns-1 {
    grid-template-columns: repeat(1, 1fr);
}

.yiontech-grid-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.yiontech-grid-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.yiontech-grid-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .yiontech-grid-columns-2,
    .yiontech-grid-columns-3,
    .yiontech-grid-columns-4 {
        grid-template-columns: repeat(1, 1fr);
    }
}