/**
 * Site Statistics Widget Styling
 * Modern, responsive layout for statistics counters
 */

/* Widget container */
.gc-stats-widget {
    margin-bottom: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Widget header */
.gc-stats-widget .gc-widget-header {
    display: flex;
    align-items: center;
    background: #3498db;
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 14px 18px;
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
}

.gc-stats-widget .gc-widget-header i {
    color: #fff;
    margin-right: 10px;
    font-size: 18px;
}

.gc-stats-widget .gc-widget-header:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-25deg) translateX(70%);
}

.gc-stats-widget .gc-widget-title {
    color: #fff;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Widget content */
.gc-stats-widget .gc-widget-content {
    padding: 20px 15px;
}

/* Stats counter grid */
.gc-stats-counter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 15px;
}

@media (min-width: 768px) {
    .gc-stats-counter {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

/* Counter items */
.gc-counter-item {
    --item-color: #3498db;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: linear-gradient(135deg, rgba(var(--rgb-item-color, 52, 152, 219), 0.1), rgba(var(--rgb-item-color, 52, 152, 219), 0.15));
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 100px;
}

.gc-counter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gc-counter-item[style*="--item-color: #3498db"] {
    --rgb-item-color: 52, 152, 219;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.15));
}

.gc-counter-item[style*="--item-color: #2ecc71"] {
    --rgb-item-color: 46, 204, 113;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.15));
}

.gc-counter-item[style*="--item-color: #9b59b6"] {
    --rgb-item-color: 155, 89, 182;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(155, 89, 182, 0.15));
}

.gc-counter-item[style*="--item-color: #e74c3c"] {
    --rgb-item-color: 231, 76, 60;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.15));
}

/* Counter icon */
.gc-counter-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 10px;
    font-size: 20px;
    transition: all 0.3s ease;
    background: rgba(var(--rgb-item-color, 52, 152, 219), 0.1);
    color: var(--item-color, #3498db);
}

.gc-counter-item[style*="--item-color: #3498db"] .gc-counter-icon {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.gc-counter-item[style*="--item-color: #2ecc71"] .gc-counter-icon {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.gc-counter-item[style*="--item-color: #9b59b6"] .gc-counter-icon {
    color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
}

.gc-counter-item[style*="--item-color: #e74c3c"] .gc-counter-icon {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.gc-counter-item:hover .gc-counter-icon {
    transform: scale(1.1);
}

/* Counter value */
.gc-counter-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.gc-counter-item:hover .gc-counter-value {
    transform: scale(1.05);
}

/* Counter label */
.gc-counter-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Compact mode */
.gc-compact-stats {
    margin-bottom: 25px;
}

.gc-compact-stats .gc-widget-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.gc-compact-stats .gc-widget-header i {
    font-size: 16px;
    color: #3498db;
    margin-right: 8px;
}

.gc-compact-stats .gc-widget-header h2 {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    color: #333;
}

.gc-compact-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 10px;
}

@media (min-width: 768px) {
    .gc-compact-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

.gc-compact-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
    min-height: 80px;
}

.gc-compact-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.gc-compact-stat-item i {
    margin-bottom: 5px;
    font-size: 16px;
}

.gc-compact-stat-item:nth-child(1) i {
    color: #3498db;
}

.gc-compact-stat-item:nth-child(2) i {
    color: #2ecc71;
}

.gc-compact-stat-item:nth-child(3) i {
    color: #9b59b6;
}

.gc-compact-stat-item:nth-child(4) i {
    color: #e74c3c;
}

.gc-compact-stat-value {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #2c3e50;
}

.gc-compact-stat-label {
    font-size: 12px;
    color: #7f8c8d;
}