﻿.xc-footer-stats {
    width: 100%;
    margin-bottom: 12px;
}

.xc-footer-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 12px;
}

.xc-footer-stats-grid.xc-no-clock,
.xc-footer-stats-grid.xc-no-stats {
    grid-template-columns: 1fr 1fr;
}

.xc-footer-stats-grid.xc-no-clock.xc-no-stats {
    grid-template-columns: 1fr;
}

.xc-date-card,
.xc-stat-item,
.xc-clock-card {
    background: var(--main-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: var(--main-radius);
    box-shadow: var(--main-shadow);
    padding: 16px;
}

.xc-date-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: center;
}

.xc-date-label {
    display: block;
    color: var(--muted-2-color);
    font-size: 14px;
    margin-bottom: 6px;
}

.xc-date-text {
    display: block;
    color: var(--key-color);
    font-size: 18px;
    line-height: 1.4;
}

.xc-week-image {
    max-width: 100%;
    border-radius: var(--main-radius);
}

.xc-weekend-text {
    font-size: 14px;
    font-weight: 600;
}

.xc-stats-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.xc-stat-item:nth-child(1),
.xc-stat-item:nth-child(2),
.xc-stat-item:nth-child(3) {
    grid-column: span 2;
}

.xc-stat-item:nth-child(4),
.xc-stat-item:nth-child(5),
.xc-stat-item:nth-child(6) {
    grid-column: span 2;
}

.xc-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
    min-height: 112px;
}

.xc-stat-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
}

.xc-stat-icon svg {
    width: 20px;
    height: 20px;
}

.xc-stat-orange { color: #f97316; background: rgba(249, 115, 22, .12); }
.xc-stat-yellow { color: #eab308; background: rgba(234, 179, 8, .12); }
.xc-stat-blue { color: #3b82f6; background: rgba(59, 130, 246, .12); }
.xc-stat-pink { color: #ec4899; background: rgba(236, 72, 153, .12); }
.xc-stat-green { color: #22c55e; background: rgba(34, 197, 94, .12); }
.xc-stat-purple { color: #8b5cf6; background: rgba(139, 92, 246, .12); }

.xc-stat-value {
    color: var(--key-color);
    font-size: 18px;
    line-height: 1.2;
    word-break: break-all;
}

.xc-stat-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--muted-bg-color);
    color: var(--theme-color);
    font-size: 12px;
    line-height: 1.4;
}

.xc-clock-card {
    min-height: 245px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.xc-clock-svg {
    position: absolute;
    width: 230px;
    height: 230px;
    transform: rotate(-90deg);
}

.xc-clock-ring-bg,
.xc-clock-ring {
    fill: none;
    stroke-width: 10;
}

.xc-clock-ring-bg {
    stroke: var(--muted-bg-color);
}

.xc-clock-ring {
    stroke-linecap: round;
    transition: stroke-dashoffset .1s linear;
}

.xc-clock-ring-second { stroke: #8b5cf6; }
.xc-clock-ring-minute { stroke: #3b82f6; }
.xc-clock-ring-hour { stroke: #f97316; }

.xc-clock-center {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--main-bg-color) 88%, transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.xc-clock-day,
.xc-clock-period {
    color: var(--muted-color);
    font-size: 12px;
}

.xc-clock-time {
    color: var(--key-color);
    font-family: Consolas, Monaco, 'SF Mono', monospace;
    font-size: 17px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .xc-footer-stats-grid,
    .xc-footer-stats-grid.xc-no-clock,
    .xc-footer-stats-grid.xc-no-stats {
        grid-template-columns: 1fr;
    }

    .xc-clock-card {
        display: none;
    }
}

@media (max-width: 520px) {
    .xc-stats-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .xc-stat-item:nth-child(n) {
        grid-column: span 1;
    }
}


