/**
 * File: wp-content/plugins/fanclub-core/modules/activities/assets/activities-frontend.css
 * Styles für Activities im Frontend (Shortcode-Kontext).
 * Tokens aus base.css, Font via var(--fc-font) (self-hosted Barlow Condensed).
 *
 * Hinweis: kritische Layout-/Farb-Properties sind mit !important gesichert,
 * da Dashboard- bzw. WP-Block-CSS sonst überschreibt (Background/Border/Color
 * auf Inputs und Zentrierung des Wrappers).
 */

/* ──────────────────────────────────────────────────────────
   Container – zentriert, plakativ
   ────────────────────────────────────────────────────────── */
.fc-fe-wrap {
    max-width: 680px !important;
    margin-left:  auto !important;
    margin-right: auto !important;
    padding-block: 1.5rem;
    color: var(--fc-text);
    font-family: var(--fc-font);
    box-sizing: border-box;
}
.fc-fe-wrap + .fc-fe-wrap { margin-top: 3rem; }

/* Box-Variante: Meine Aktivitäten – komplette Liste als grauer Kasten */
.fc-fe-wrap.fc-my-activities-wrap {
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    border-radius: 20px;
    padding: 1.5rem;
    overflow: hidden;
}

/* ──────────────────────────────────────────────────────────
   Notice
   ────────────────────────────────────────────────────────── */
.fc-fe-wrap .fc-fe-notice {
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    font-weight: 700;
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    border-left: 6px solid;
    background: var(--fc-surface-2);
}
.fc-fe-wrap .fc-fe-notice--success { color: var(--fc-success); border-color: var(--fc-success); }
.fc-fe-wrap .fc-fe-notice--error   { color: var(--fc-danger);  border-color: var(--fc-danger); }

/* ──────────────────────────────────────────────────────────
   Formular
   ────────────────────────────────────────────────────────── */
.fc-fe-wrap .fc-activity-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
    background: var(--fc-surface-2);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--fc-border);
}
.fc-fe-wrap .fc-activity-form .fc-fe-field {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.fc-fe-wrap .fc-activity-form label {
    color: var(--fc-accent) !important;
    font-family: var(--fc-font);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
    padding: 0;
}

.fc-fe-wrap .fc-activity-form input[type="text"],
.fc-fe-wrap .fc-activity-form input[type="date"],
.fc-fe-wrap .fc-activity-form select,
.fc-fe-wrap .fc-activity-form textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    background: var(--fc-color-white) !important;
    color: var(--fc-color-grey-800) !important;
    border: 2px solid var(--fc-color-grey-200) !important;
    border-radius: 2px !important;
    padding: 0.75rem 1rem !important;
    font-family: var(--fc-font) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
    transition: border-color .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.fc-fe-wrap .fc-activity-form input::placeholder,
.fc-fe-wrap .fc-activity-form textarea::placeholder {
    color: var(--fc-color-grey-300) !important;
    font-style: italic;
    opacity: 1;
}
.fc-fe-wrap .fc-activity-form input:focus,
.fc-fe-wrap .fc-activity-form select:focus,
.fc-fe-wrap .fc-activity-form textarea:focus {
    outline: none !important;
    border-color: var(--fc-accent) !important;
}
.fc-fe-wrap .fc-activity-form select {
    background-image: linear-gradient(45deg, transparent 50%, var(--fc-color-grey-800) 50%),
                      linear-gradient(135deg, var(--fc-color-grey-800) 50%, transparent 50%) !important;
    background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55% !important;
    background-size: 6px 6px, 6px 6px !important;
    background-repeat: no-repeat !important;
    padding-right: 2.5rem !important;
    cursor: pointer;
}
/* Zebra in der Optionsliste – leichter CI-gelber Wechsel */
.fc-fe-wrap .fc-activity-form select option {
    background: var(--fc-color-white);
    color: var(--fc-color-grey-800);
    padding: 6px 10px;
}
.fc-fe-wrap .fc-activity-form select option:nth-child(even) {
    background: var(--fc-accent-ghost); /* rgba(255,217,0,0.08) */
}
.fc-fe-wrap .fc-activity-form textarea {
    resize: vertical !important;
    min-height: 120px !important;
}

/* ── wp_editor (TinyMCE) an CI anpassen ─────────────────── */
.fc-fe-wrap .fc-activity-form .wp-editor-wrap {
    background: var(--fc-color-white);
    border: 2px solid var(--fc-color-grey-200);
    border-radius: 2px;
}
.fc-fe-wrap .fc-activity-form .wp-editor-wrap .wp-editor-container {
    border: none;
    background: var(--fc-color-white);
}
.fc-fe-wrap .fc-activity-form .wp-editor-wrap .wp-editor-area {
    border: none !important;
    background: var(--fc-color-white) !important;
    color: var(--fc-color-grey-800) !important;
    font-family: var(--fc-font) !important;
    font-size: 1.05rem !important;
    min-height: 180px !important;
    padding: 0.75rem 1rem !important;
}
.fc-fe-wrap .fc-activity-form .wp-editor-tabs {
    background: var(--fc-color-grey-100);
    padding: 4px 4px 0;
}
.fc-fe-wrap .fc-activity-form .wp-switch-editor {
    border-radius: 0 !important;
    border-color: var(--fc-color-grey-200) !important;
    font-family: var(--fc-font) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem !important;
    color: var(--fc-color-grey-800) !important;
}
.fc-fe-wrap .fc-activity-form .wp-switch-editor:hover {
    color: var(--fc-color-black) !important;
}
.fc-fe-wrap .fc-activity-form .mce-toolbar-grp,
.fc-fe-wrap .fc-activity-form .mce-statusbar {
    border-color: var(--fc-color-grey-200) !important;
}
.fc-fe-wrap .fc-activity-form .quicktags-toolbar {
    background: var(--fc-color-grey-100);
    border-bottom: 1px solid var(--fc-color-grey-200);
}
.fc-fe-wrap .fc-activity-form .quicktags-toolbar input.ed_button {
    border-radius: 0 !important;
    font-family: var(--fc-font) !important;
    font-weight: 700 !important;
}
.fc-fe-wrap .fc-activity-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
    cursor: pointer;
    opacity: .7;
}

/* Punkte-Vorschau */
.fc-fe-wrap .fc-fe-points-preview {
    display: block;
    margin-top: 0.5rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    min-height: 1.2em;
}
.fc-fe-wrap .fc-fe-points-preview.is-positive { color: var(--fc-success); }
.fc-fe-wrap .fc-fe-points-preview.is-negative { color: var(--fc-danger); }

/* Submit */
.fc-fe-wrap .fc-fe-submit {
    align-self: flex-start;
    background: var(--fc-accent) !important;
    color: var(--fc-color-black) !important;
    border: none !important;
    padding: 0.9rem 2.25rem !important;
    font-family: var(--fc-font) !important;
    font-weight: 900 !important;
    font-style: italic !important;
    font-size: 1.4rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    margin-top: 0.5rem;
    box-shadow: none !important;
    transition: background .15s, transform .15s;
}
.fc-fe-wrap .fc-fe-submit:hover {
    background: var(--fc-accent-hover) !important;
    transform: translateX(4px);
}
.fc-fe-wrap .fc-fe-submit:active { transform: translateX(2px); }

/* Hints */
.fc-fe-wrap .fc-fe-hint-small {
    font-size: 0.9rem;
    color: var(--fc-text-muted);
    margin-top: 0.75rem;
    line-height: 1.5;
}
.fc-fe-wrap .fc-fe-hint {
    color: var(--fc-text-muted);
    font-style: italic;
    padding: 2rem 1rem;
    text-align: center;
    border: 2px dashed var(--fc-border);
    margin: 0;
}

/* ──────────────────────────────────────────────────────────
   Tabelle – Meine Aktivitäten
   ────────────────────────────────────────────────────────── */
.fc-fe-wrap .fc-fe-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 1rem;
    background: transparent;
}
.fc-fe-wrap .fc-fe-table thead th {
    background: transparent;
    color: var(--fc-accent);
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 700;
    font-style: italic;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-bottom: 2px solid var(--fc-accent);
}
.fc-fe-wrap .fc-fe-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--fc-border);
    vertical-align: top;
    background: transparent;
    color: var(--fc-text);
}

.fc-fe-wrap .fc-act-date    { white-space: nowrap; color: var(--fc-text-muted); font-variant-numeric: tabular-nums; }
.fc-fe-wrap .fc-act-title   { font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; display: block; color: var(--fc-text); }
.fc-fe-wrap .fc-act-sub     { display: block; margin-top: 2px; color: var(--fc-text-muted); font-size: 0.9rem; }
.fc-fe-wrap .fc-act-desc    { display: block; margin-top: 4px; color: var(--fc-accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.fc-fe-wrap .fc-act-note    { color: var(--fc-text-muted); font-size: 0.9rem; }

/* Akkordion für lange Beschreibungen */
.fc-fe-wrap .fc-act-more {
    margin-top: 4px;
}
.fc-fe-wrap .fc-act-more > summary.fc-act-desc {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 1.4rem;
    user-select: none;
}
.fc-fe-wrap .fc-act-more > summary.fc-act-desc::-webkit-details-marker { display: none; }
.fc-fe-wrap .fc-act-more > summary.fc-act-desc::after {
    content: "＋";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-style: normal;
    font-weight: 900;
    color: var(--fc-accent);
    font-size: 1rem;
    line-height: 1;
}
.fc-fe-wrap .fc-act-more[open] > summary.fc-act-desc::after { content: "−"; }
.fc-fe-wrap .fc-act-more[open] > summary.fc-act-desc {
    padding-bottom: 6px;
    border-bottom: 1px solid var(--fc-border);
    margin-bottom: 8px;
}
.fc-fe-wrap .fc-act-full {
    font-size: 0.95rem;
    color: var(--fc-text);
    line-height: 1.5;
    padding: 4px 0 2px;
}
.fc-fe-wrap .fc-act-full p             { margin: 0 0 0.6em; }
.fc-fe-wrap .fc-act-full p:last-child  { margin-bottom: 0; }
.fc-fe-wrap .fc-act-full ul,
.fc-fe-wrap .fc-act-full ol            { margin: 0 0 0.6em 1.2em; padding: 0; }
.fc-fe-wrap .fc-act-full a             { color: var(--fc-text); text-decoration: underline; text-decoration-color: var(--fc-accent); }
.fc-fe-wrap .fc-act-full blockquote    { border-left: 3px solid var(--fc-accent); margin: 0 0 0.6em; padding-left: 0.8em; color: var(--fc-text-muted); }

.fc-fe-wrap .fc-act-pts {
    font-weight: 700;
    font-style: italic;
    font-size: 1.25rem;
    white-space: nowrap;
}
.fc-fe-wrap .fc-act-pts.is-positive { color: var(--fc-success); }
.fc-fe-wrap .fc-act-pts.is-negative { color: var(--fc-danger);  }
.fc-fe-wrap .fc-act-pts.is-zero     { color: var(--fc-text-dim); }

.fc-fe-wrap .fc-act-status {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 2px solid;
    white-space: nowrap;
    background: transparent;
}
.fc-fe-wrap .fc-act-status--pending  { color: var(--fc-warning); border-color: var(--fc-warning); }
.fc-fe-wrap .fc-act-status--approved { color: var(--fc-success); border-color: var(--fc-success); }
.fc-fe-wrap .fc-act-status--rejected { color: var(--fc-danger);  border-color: var(--fc-danger);  }

/* Mobile */
@media (max-width: 600px) {
    .fc-fe-wrap .fc-fe-table,
    .fc-fe-wrap .fc-fe-table thead,
    .fc-fe-wrap .fc-fe-table tbody,
    .fc-fe-wrap .fc-fe-table tr,
    .fc-fe-wrap .fc-fe-table td,
    .fc-fe-wrap .fc-fe-table th { display: block; }
    .fc-fe-wrap .fc-fe-table thead { display: none; }
    .fc-fe-wrap .fc-fe-table tbody tr {
        border-bottom: 1px solid var(--fc-border);
        padding: 0.75rem 0;
        margin-bottom: 0;
        background: transparent;
    }
    .fc-fe-wrap .fc-fe-table tbody tr:last-child { border-bottom: 0; }
    .fc-fe-wrap .fc-fe-table tbody td { border: 0; padding: 0.25rem 0; background: transparent; }
    .fc-fe-wrap .fc-fe-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--fc-accent);
        margin-bottom: 2px;
    }
}
