@use '../abstracts' as *;

.gfm-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba($text-main, 0.2);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;

    &-content {
        background: $white;
        border-radius: $radius-lg;
        box-shadow: $shadow-xl;
        border: 1px solid $glass-border;
        overflow: hidden;
        transition: $transition-bounce;
        transform: scale(0.95);
        opacity: 0;
    }

    &.show {
        display: flex;
        opacity: 1;

        .gfm-modal-content {
            transform: scale(1);
            opacity: 1;
        }
    }

    &-large {
        width: 750px;
        max-width: 95%;
    }

    &-mini {
        width: 420px;
        max-width: 90%;
    }

    &-header {
        background: $bg;
        padding: $space-md $space-lg;
        border-bottom: 1px solid $border;
        @include flex-between;

        h3 {
            margin: 0;
            font-size: 20px;
            font-weight: 800;
            color: $text-main;
            letter-spacing: -0.02em;
        }
    }

    &-body {
        padding: $space-lg;
        max-height: 80vh;
        overflow-y: auto;
    }

    &-section-title {
        font-size: 13px;
        font-weight: $weight-bold;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: $text-muted;
        margin-bottom: $space-md;
        display: flex;
        align-items: center;
        gap: $space-xs;

        .dashicons {
            font-size: 18px;
            width: 18px;
            height: 18px;
            color: $primary;
        }
    }
}

.gfm-confirm-icon-box {
    width: 72px;
    height: 72px;
    background: rgba($danger, 0.1);
    color: $danger;
    border-radius: $radius-full;
    @include flex-center;
    margin: 0 auto $space-md;
    border: 2px solid rgba($danger, 0.1);

    .dashicons {
        font-size: 36px;
        width: 36px;
        height: 36px;
    }
}

#gfm-confirm-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: $space-xs;
    color: $text-main;
    text-align: center;
}

#gfm-confirm-desc {
    color: $text-muted;
    margin-bottom: $space-lg;
    text-align: center;
    line-height: 1.5;
    font-size: $size-base;
}

.gfm-confirm-actions {
    display: flex;
    justify-content: center;
    gap: $space-sm;
}

.gfm-modal-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: $text-muted;
    margin-top: 4px;
}

.gfm-badge-id {
    background: $primary;
    color: $white;
    padding: 2px 12px;
    border-radius: $radius-full;
    font-size: 11px;
    margin-left: $space-xs;
    font-weight: 700;
    box-shadow: 0 4px 6px -10px $primary;
}

.gfm-details-modern-list {
    display: grid;
    gap: $space-sm;
    margin-bottom: $space-lg;
}

.gfm-detail-item {
    background: $bg;
    padding: 16px $space-md;
    border-radius: $radius-md;
    border: 1px solid $border;
    transition: $transition-base;

    &:hover {
        background: $white;
        border-color: $primary;
        box-shadow: $shadow-md;
        transform: translateY(-2px);
    }
}

.gfm-detail-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: $text-muted;
    margin-bottom: 4px;
    letter-spacing: 0.1em;
}

.gfm-detail-value {
    font-size: $size-base;
    color: $text-main;
    font-weight: 600;
}

.gfm-system-info-box {
    margin-top: 30px;
    background: #fcfdfe;
    border: 1px solid $border;
    border-radius: $radius;
    padding: 20px;
}

.gfm-system-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gfm-system-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: $text-muted;

    .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    code {
        background: #f1f5f9;
        padding: 2px 4px;
        border-radius: 4px;
        color: $primary-dark;
    }
}

.gfm-close-modal {
    cursor: pointer;
    font-size: 24px;
    color: $text-light;
    transition: $transition-base;

    &:hover {
        color: $text-main;
        transform: rotate(90deg);
    }
}
