/* =========================================
   Shortcode Toolkit - Frontend Styling
   ========================================= */

/* ---------- BUTTONS ---------- */
.stk-button-wrap {
    margin: 20px 0;
    text-align: center;
}

.stk-button {
    display: inline-block;
    background-color: var(--stk-button-color, #1abc9c);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    line-height: 1.3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.stk-button:hover,
.stk-button:focus {
    background-color: var(--stk-button-color-hover, #16a085);
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.stk-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Grote knop (default op pagina) */
.stk-button--large {
    padding: 16px 40px;
    font-size: 18px;
    min-width: 250px;
}

/* Kleine knop (in tabellen) */
.stk-button--small {
    padding: 8px 20px;
    font-size: 14px;
}

/* Waarschuwing onder knop */
.stk-button-warning {
    margin-top: 8px;
    color: #000000;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

/* ---------- FAQ ---------- */
.stk-faq {
    margin: 20px 0;
}

.stk-faq-item {
    background-color: var(--stk-faq-bg, #f7f9fa);
    border: 1px solid var(--stk-faq-border, #e1e8ed);
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.stk-faq-question {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 16px 50px 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    position: relative;
    display: block;
    line-height: 1.4;
    font-family: inherit;
}

.stk-faq-question:hover,
.stk-faq-question:focus {
    background-color: rgba(0, 0, 0, 0.02);
    outline: none;
}

/* Plus / minus icoon */
.stk-faq-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: inline-block;
}

.stk-faq-icon::before,
.stk-faq-icon::after {
    content: '';
    position: absolute;
    background-color: #555;
    transition: opacity 0.2s ease;
    top: 50%;
    left: 50%;
}

/* Horizontale balk (altijd zichtbaar) */
.stk-faq-icon::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

/* Verticale balk (alleen bij gesloten = plus) */
.stk-faq-icon::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
}

/* Open status: alleen horizontale balk overhouden -> minus */
.stk-faq-question[aria-expanded="true"] .stk-faq-icon::after {
    opacity: 0;
}

.stk-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.stk-faq-answer.stk-open {
    max-height: 2000px;
}

.stk-faq-answer-inner {
    padding: 0 20px 18px 20px;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    border-top: 1px solid var(--stk-faq-border, #e1e8ed);
    padding-top: 16px;
}

.stk-faq-answer-inner p:first-child {
    margin-top: 0;
}

.stk-faq-answer-inner p:last-child {
    margin-bottom: 0;
}

/* ---------- ALERTS ---------- */
.stk-alert {
    padding: 14px 20px;
    margin: 20px 0;
    border-radius: 6px;
    border-left: 4px solid;
    font-size: 15px;
    line-height: 1.5;
}

.stk-alert p:first-child { margin-top: 0; }
.stk-alert p:last-child { margin-bottom: 0; }

.stk-alert--blue {
    background-color: #e3f2fd;
    border-left-color: #2196f3;
    color: #0d47a1;
}

.stk-alert--success {
    background-color: #e8f5e9;
    border-left-color: #4caf50;
    color: #1b5e20;
}

.stk-alert--warning {
    background-color: #fff8e1;
    border-left-color: #ff9800;
    color: #e65100;
}

.stk-alert--danger {
    background-color: #ffebee;
    border-left-color: #f44336;
    color: #b71c1c;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
    .stk-button--large {
        padding: 14px 24px;
        font-size: 16px;
        min-width: auto;
        width: 100%;
        box-sizing: border-box;
    }
    .stk-faq-question {
        font-size: 15px;
        padding: 14px 45px 14px 16px;
    }
    .stk-faq-answer-inner {
        padding-left: 16px;
        padding-right: 16px;
    }
}
