/* ============================================
   Counter Widget - Base Styles
   ============================================ */

.elementor-widget-unlockafe-counter .unlockafe-counter-wrapper,
.unlockafe-counter-wrapper {
    display: grid !important;
    width: 100% !important;
    gap: 30px;
    grid-auto-flow: row;
}

/* Column Layouts */
.elementor-widget-unlockafe-counter .unlockafe-counter-wrapper.unlockafe-counter-cols-1,
.unlockafe-counter-wrapper.unlockafe-counter-cols-1 {
    grid-template-columns: repeat(1, 1fr) !important;
}

.elementor-widget-unlockafe-counter .unlockafe-counter-wrapper.unlockafe-counter-cols-2,
.unlockafe-counter-wrapper.unlockafe-counter-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.elementor-widget-unlockafe-counter .unlockafe-counter-wrapper.unlockafe-counter-cols-3,
.unlockafe-counter-wrapper.unlockafe-counter-cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.elementor-widget-unlockafe-counter .unlockafe-counter-wrapper.unlockafe-counter-cols-4,
.unlockafe-counter-wrapper.unlockafe-counter-cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

.elementor-widget-unlockafe-counter .unlockafe-counter-wrapper.unlockafe-counter-cols-5,
.unlockafe-counter-wrapper.unlockafe-counter-cols-5 {
    grid-template-columns: repeat(5, 1fr) !important;
}

.elementor-widget-unlockafe-counter .unlockafe-counter-wrapper.unlockafe-counter-cols-6,
.unlockafe-counter-wrapper.unlockafe-counter-cols-6 {
    grid-template-columns: repeat(6, 1fr) !important;
}

.unlockafe-counter-item {
    position: relative;
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.unlockafe-counter-item:hover {
    transform: translateY(-5px);
}

/* Layout 1 - Icon Top */
.unlockafe-counter-layout-1 .unlockafe-counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.unlockafe-counter-layout-1 .unlockafe-counter-icon {
    margin-bottom: 20px;
}

/* Layout 2 - Icon Left */
.unlockafe-counter-layout-2 .unlockafe-counter-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
}

.unlockafe-counter-layout-2 .unlockafe-counter-icon {
    margin-right: 20px;
    flex-shrink: 0;
}

.unlockafe-counter-layout-2 .unlockafe-counter-content {
    flex: 1;
}

/* Layout 3 - Icon Right */
.unlockafe-counter-layout-3 .unlockafe-counter-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    text-align: right;
}

.unlockafe-counter-layout-3 .unlockafe-counter-icon {
    margin-left: 20px;
    flex-shrink: 0;
}

.unlockafe-counter-layout-3 .unlockafe-counter-content {
    flex: 1;
}

/* Layout 4 - Minimal */
.unlockafe-counter-layout-4 .unlockafe-counter-item {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 20px 10px;
}

.unlockafe-counter-layout-4 .unlockafe-counter-icon {
    display: none;
}

/* Layout 5 - Card Style */
.unlockafe-counter-layout-5 .unlockafe-counter-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 40px 30px;
}

.unlockafe-counter-layout-5 .unlockafe-counter-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Layout 6 - Gradient */
.unlockafe-counter-layout-6 .unlockafe-counter-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #ffffff;
    padding: 40px 30px;
}

.unlockafe-counter-layout-6 .unlockafe-counter-icon {
    color: #ffffff;
}

.unlockafe-counter-layout-6 .unlockafe-counter-number {
    color: #ffffff;
}

.unlockafe-counter-layout-6 .unlockafe-counter-title {
    color: #ffffff;
}

.unlockafe-counter-layout-6 .unlockafe-counter-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Icon Styles */
.unlockafe-counter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #667eea;
    line-height: 1;
}

.unlockafe-counter-icon i {
    display: inline-block;
}

.unlockafe-counter-icon svg {
    width: 50px;
    height: 50px;
    fill: currentColor;
}

/* Number Styles */
.unlockafe-counter-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.unlockafe-counter-layout-2 .unlockafe-counter-number-wrapper,
.unlockafe-counter-layout-3 .unlockafe-counter-number-wrapper {
    justify-content: flex-start;
}

.unlockafe-counter-layout-3 .unlockafe-counter-number-wrapper {
    justify-content: flex-end;
}

.unlockafe-counter-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2937;
    display: inline-block;
}

.unlockafe-counter-prefix,
.unlockafe-counter-suffix {
    font-size: 32px;
    font-weight: 600;
    color: #667eea;
    line-height: 1;
}

/* Title Styles */
.unlockafe-counter-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    line-height: 1.4;
}

/* Description Styles */
.unlockafe-counter-description {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* Content Wrapper */
.unlockafe-counter-content {
    width: 100%;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 1024px) {
    .unlockafe-counter-cols-4,
    .unlockafe-counter-cols-5,
    .unlockafe-counter-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .unlockafe-counter-wrapper {
        gap: 20px;
    }

    .unlockafe-counter-cols-3,
    .unlockafe-counter-cols-4,
    .unlockafe-counter-cols-5,
    .unlockafe-counter-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .unlockafe-counter-item {
        padding: 25px 15px;
    }

    .unlockafe-counter-number {
        font-size: 36px;
    }

    .unlockafe-counter-prefix,
    .unlockafe-counter-suffix {
        font-size: 24px;
    }

    .unlockafe-counter-title {
        font-size: 16px;
    }

    .unlockafe-counter-icon {
        font-size: 40px;
    }

    .unlockafe-counter-icon svg {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .unlockafe-counter-cols-2,
    .unlockafe-counter-cols-3,
    .unlockafe-counter-cols-4,
    .unlockafe-counter-cols-5,
    .unlockafe-counter-cols-6 {
        grid-template-columns: 1fr;
    }

    .unlockafe-counter-item {
        padding: 20px 15px;
    }

    .unlockafe-counter-number {
        font-size: 32px;
    }

    .unlockafe-counter-prefix,
    .unlockafe-counter-suffix {
        font-size: 20px;
    }

    .unlockafe-counter-title {
        font-size: 15px;
    }

    .unlockafe-counter-icon {
        font-size: 35px;
    }

    .unlockafe-counter-icon svg {
        width: 35px;
        height: 35px;
    }

    .unlockafe-counter-layout-2 .unlockafe-counter-item,
    .unlockafe-counter-layout-3 .unlockafe-counter-item {
        flex-direction: column;
        text-align: center;
    }

    .unlockafe-counter-layout-2 .unlockafe-counter-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .unlockafe-counter-layout-3 .unlockafe-counter-icon {
        margin-left: 0;
        margin-bottom: 15px;
    }

    .unlockafe-counter-layout-2 .unlockafe-counter-number-wrapper,
    .unlockafe-counter-layout-3 .unlockafe-counter-number-wrapper {
        justify-content: center;
    }
}

