/* Sidebar Campaigns Widget - Exact Store Card Style */

.sidebar-campaigns {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-campaign-item {
    transition: transform 0.3s ease;
}

.sidebar-campaign-link {
    text-decoration: none;
    display: block;
}

.sidebar-campaign-link:hover {
    text-decoration: none;
}

/* Campaign Card - Exact Store Card Style */
.sidebar-campaign-item .uk-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px 12px 12px;
    background: white;
    border: 2px solid #ed174f;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    min-height: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

.sidebar-campaign-item .uk-card:hover {
    box-shadow: 0 8px 20px rgba(237, 23, 79, 0.25);
    transform: translateY(-4px);
    border-color: #d01445;
}

/* Campaign Logo - Exact Store Logo Style */
.campaign-card-logo {
    width: 100%;
    max-width: 200px;
    height: 120px;
    object-fit: contain !important;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 10px;
    margin: 0 auto 12px auto;
    display: block;
}

/* Campaign Title - Exact Store Title Style */
.campaign-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 36px;
    line-height: 1.3;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .sidebar-campaign-item .uk-card {
        /* Larger touch targets on mobile */
        min-height: 150px;
    }
    
    .sidebar-campaign-item .uk-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Widget heading spacing on mobile */
@media (max-width: 959px) {
    .widget .widget_heading {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

/* Mobile responsive - Modal View */
@media (max-width: 959px) {
    /* Modal specific adjustments */
    #searchModal .sidebar-campaigns {
        gap: 12px;
    }
    
    #searchModal .sidebar-campaign-item .uk-card {
        min-height: 150px;
        padding: 16px 10px 10px 10px;
    }
    
    #searchModal .campaign-card-logo {
        max-width: 180px;
        height: 100px;
        margin-bottom: 10px;
        padding: 8px;
    }
    
    #searchModal .campaign-card-title {
        font-size: 13px;
        min-height: 32px;
        margin: 0;
    }
}

/* Small Mobile - Extra compact */
@media (max-width: 640px) {
    .sidebar-campaigns {
        gap: 10px;
    }
    
    .sidebar-campaign-item .uk-card {
        min-height: 140px;
        padding: 14px 8px 10px 8px;
        border-width: 2px;
    }
    
    .campaign-card-logo {
        max-width: 160px;
        height: 90px;
        margin-bottom: 8px;
        padding: 8px;
    }
    
    .campaign-card-title {
        font-size: 12px;
        min-height: 30px;
        margin: 0;
        line-height: 1.25;
    }
    
    /* Modal adjustments for small screens */
    #searchModal .sidebar-campaign-item .uk-card {
        min-height: 140px;
        padding: 14px 8px 10px 8px;
    }
    
    #searchModal .campaign-card-logo {
        max-width: 160px;
        height: 90px;
        padding: 8px;
    }
    
    #searchModal .campaign-card-title {
        font-size: 12px;
    }
}

/* Tablet - Medium screens */
@media (min-width: 641px) and (max-width: 959px) {
    .sidebar-campaigns {
        gap: 14px;
    }
    
    .sidebar-campaign-item .uk-card {
        min-height: 165px;
        padding: 18px 10px 12px 10px;
    }
    
    .campaign-card-logo {
        max-width: 190px;
        height: 110px;
        margin-bottom: 10px;
        padding: 10px;
    }
    
    .campaign-card-title {
        font-size: 13px;
        min-height: 34px;
    }
}

/* Large screens - Optimal spacing */
@media (min-width: 960px) {
    .sidebar-campaigns {
        gap: 16px;
    }
    
    .sidebar-campaign-item .uk-card {
        min-height: 200px;
    }
    
    .campaign-card-logo {
        max-width: 220px;
        height: 130px;
    }
}
