/*
 * QWPB Super Style Kit
 * Lightweight, theme-compatible, responsive
 * Use with any plugin generated by Qwen Plugin Builder
 */

/* === BASE CONTAINER === */
.qwpb-plugin {
    margin: 1.5em 0;
    padding: 0;
    font-size: 1em;
    line-height: 1.6;
    color: inherit;
}

/* === TITLES & HEADINGS === */
.qwpb-plugin-title {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 0.75em;
    line-height: 1.3;
    color: inherit;
}

.qwpb-plugin-subtitle {
    font-size: 1.1em;
    font-weight: 500;
    margin: 1em 0 0.5em;
    color: inherit;
}

/* === TEXT & PARAGRAPHS === */
.qwpb-plugin-text,
.qwpb-plugin-description {
    margin: 0 0 1em;
    color: inherit;
}

/* === BUTTONS === */
.qwpb-plugin-button {
    display: inline-block;
    padding: 0.6em 1.2em;
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.qwpb-plugin-button:hover,
.qwpb-plugin-button:focus {
    background: rgba(0, 0, 0, 0.04);
    text-decoration: none;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.qwpb-plugin-button-primary {
    background: currentColor;
    color: #fff;
    border-color: currentColor;
}

.qwpb-plugin-button-primary:hover,
.qwpb-plugin-button-primary:focus {
    background: color-mix(in srgb, currentColor 90%, black);
    color: #fff;
}

/* === CARDS / BOXES === */
.qwpb-plugin-card {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1.2em;
    margin: 1em 0;
    transition: box-shadow 0.2s ease;
}

.qwpb-plugin-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* === LISTS === */
.qwpb-plugin-list {
    padding-left: 1.5em;
    margin: 0.75em 0;
    color: inherit;
}

.qwpb-plugin-list-item {
    margin-bottom: 0.35em;
    color: inherit;
}

/* === ALERTS / NOTICES === */
.qwpb-plugin-notice {
    padding: 1em 1.2em;
    border-left: 4px solid currentColor;
    margin: 1em 0;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 4px 4px 0;
}

.qwpb-plugin-notice-success {
    border-color: #2e8b57;
}

.qwpb-plugin-notice-warning {
    border-color: #d69e2e;
}

.qwpb-plugin-notice-error {
    border-color: #c53030;
}

/* === FORMS (if used) === */
.qwpb-plugin-input,
.qwpb-plugin-textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.6em 0.8em;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 1em;
    color: inherit;
    background: transparent;
    margin: 0.4em 0;
}

.qwpb-plugin-input:focus,
.qwpb-plugin-textarea:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* === TABLES (if used) === */
.qwpb-plugin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.qwpb-plugin-table th,
.qwpb-plugin-table td {
    padding: 0.6em 0.8em;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: inherit;
}

.qwpb-plugin-table th {
    font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .qwpb-plugin {
        margin: 1.2em 0;
    }

    .qwpb-plugin-title {
        font-size: 1.2em;
    }

    .qwpb-plugin-button {
        width: 100%;
        text-align: center;
    }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    .qwpb-plugin-card {
        border-color: rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.02);
    }

    .qwpb-plugin-notice {
        background: rgba(255, 255, 255, 0.03);
    }

    .qwpb-plugin-input,
    .qwpb-plugin-textarea {
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.03);
    }
}