@use '../globals' as *;

.cache-stats {
    background: $background-light;
    border: 1px solid $border-color;
    border-radius: $border-radius-md;
    padding: $spacing-lg;
    margin: $spacing-lg 0;

    h3 {
        margin-top: 0;
        margin-bottom: $spacing-md;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: $spacing-md;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: $spacing-sm $spacing-md;
    background: $background-white;
    border: 1px solid $border-color;
    border-radius: $border-radius-sm;

    .stat-label {
        color: $text-secondary;
        font-size: 13px;
        font-weight: 500;
    }

    .stat-value {
        color: $text-primary;
        font-size: 16px;
        font-weight: 600;
    }
}

.danger-zone {
    margin-top: $spacing-xl;
    padding: $spacing-lg;
    background: lighten($error-color, 45%);
    border: 1px solid lighten($error-color, 30%);
    border-radius: $border-radius-md;

    h3 {
        margin-top: 0;
        color: $error-color;
    }

    .description {
        color: darken($error-color, 10%);
        margin-bottom: $spacing-md;
    }
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: $spacing-sm;
    margin-top: $spacing-lg;
}

@media screen and (max-width: 782px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;

        button {
            width: 100%;
        }
    }
}

.presszone-international-settings {
    &__form {
        display: block;
    }

    .international-data-region__skeleton {
        padding: 16px 0;
    }
}
