/*------------------------------------------------------------------------------------- 
Theme Name:		 Feron Child Theme
Theme URI:		 https://ex-coders.com/wp/feron/
Description:	 Feron - eSports and Gaming WordPress Theme
Author:			 themewolfs
Author URI:		 https://themeforest.net/user/themewolfs/portfolio
Template:		 feron
Version:		 1.0.0
Text Domain:	 feron-child-theme
-------------------------------------------------------------------------------------*/
/* === JOIN ADVENTURE – CONNECT CHARACTER & CAMPAIGN === */

#tw-connect-campaign-root {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 45px;
    border: 1px solid #3a3a3a;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #f5f5ff;
    font-family: inherit;
}

#tw-connect-campaign-root h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 32px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

#tw-connect-status {
    min-height: 20px;
    margin-bottom: 16px;
    font-size: 14px;
}

.tw-field {
    margin-bottom: 18px;
}

.tw-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c9c9c9;
}

.tw-field input[type="text"],
#tw-campaign-select,
#tw-character-select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 0;
    border: 1px solid #4a4a4a;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.tw-field input[type="text"]::placeholder {
    color: #777799;
}

.tw-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0;
    border: 1px solid #4a4a4a;
    background: rgba(0, 0, 0, 0.35);
}

.tw-list-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #ddd;
}

.tw-list-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.tw-selected {
    background: #c9a15b;
    color: #000;
}

.tw-list-empty {
    padding: 8px 12px;
    font-size: 13px;
    color: #8888aa;
}

/* Button – Eldritch style */
.tw-submit-btn {
    width: 100%;
    padding: 14px 0;
    border-radius: 0;
    border: none;
    background: #c9a15b;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease-in-out, color 0.15s ease-in-out;
}

.tw-submit-btn:hover {
    background: #e0ba72;
    color: #000;
}

.tw-submit-btn:disabled {
    background: rgba(201, 161, 91, 0.5);
    cursor: default;
}

/* === CHAT / GAME WINDOW === */

.edgtf-full-width-inner .edgtf-section-inner {
    max-width: 1200px;
}

.edgtf-call-to-action-text {
    background: #1c1c1c;
    border-radius: 0;
    border: 1px solid #3a3a3a;
    padding: 18px 16px;
    max-height: 300px;
    overflow-y: auto;
}

/* Message bubbles */
.message-row {
    display: flex;
    margin-bottom: 8px;
}

.message-row.user {
    justify-content: flex-end;
}

.message-row.gm {
    justify-content: flex-start;
}

.message-name {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 2px;
}

.message-bubble {
    max-width: 80%;
    padding: 9px 11px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.message-row.user .message-bubble {
    background: #4b3b7a;
    color: #fff;
    border-bottom-right-radius: 0;
}

.message-row.gm .message-bubble {
    background: #262626;
    border: 1px solid #3a3a3a;
    color: #fff;
    border-bottom-left-radius: 0;
}

/* Input bar */
.edgtf-contact-form input#chat-input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #020617;
    color: #f9fafb;
    padding: 9px 14px;
}

.edgtf-contact-form input#chat-input::placeholder {
    color: #9ca3af;
}

.edgtf-contact-form button#send-btn {
    border-radius: 999px;
    background: #3a3a3a;
    color: #fff;
}

/* === CHARACTER CARD – RIGHT PANEL === */

.tw-character-card {
    background: rgba(8, 8, 10, 0.92);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 14px 16px;
    color: #f4f4f4;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
}

/* Header */

.tw-char-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.tw-char-avatar {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111319;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.tw-char-basic h3 {
    margin: 0 0 2px;
    font-size: 18px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f5f5f5;          /* jasno, widoczne na czarnym */
}

.tw-char-basic p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #d2d5e0;
}

.tw-char-basic p:nth-of-type(2) {
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #c2c6d4;
}

/* Stats line – HP / MP / Lvl */

.tw-char-basic p:nth-of-type(3) {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tw-stat-pill {
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.tw-stat-label {
    margin-right: 3px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 9px;
    color: #888ea3;
}

.tw-stat-value {
    font-weight: 700;
}

/* Colors */
.tw-stat-hp .tw-stat-value {
    color: #4cd964; /* green */
}

.tw-stat-mp .tw-stat-value {
    color: #4da3ff; /* blue */
}

.tw-stat-lvl .tw-stat-value {
    color: #ff9f43; /* orange */
}

/* Tabs (Character / Inventory) */

.tw-character-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    justify-content: flex-start;
}

.tw-tab-btn {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 14, 0.7);
    color: #e5e0d2;                 /* lekko złamany biały */
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tw-tab-btn:hover {
    background: rgba(201, 161, 91, 0.15); /* delikatne złoto */
}

.tw-tab-btn-active {
    background: #c9a15b;  /* złoto jak w przyciskach motywu */
    border-color: #c9a15b;
    color: #000;
}

.tw-tab {
    display: none;
}

.tw-tab.tw-tab-active {
    display: block;
}

/* Accordion – Bio / Skills / Abilities */

.tw-accordion {
    margin-top: 8px;
}

.tw-accordion details {
    margin: 4px 0;
    border-radius: 6px;
    background: rgba(12, 12, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.tw-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 500;
    color: #e2e4f0;
    position: relative;
}

.tw-accordion summary::-webkit-details-marker {
    display: none;
}

.tw-accordion summary::after {
    content: "▸";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #8e95ad;
    transition: transform 0.15s ease;
}

.tw-accordion details[open] summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.tw-accordion details > p {
    padding: 6px 8px 8px;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #c6cad9;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Inventory tab */

.tw-tab-inventory p {
    font-size: 12px;
    color: #c0c4d2;
    margin: 8px 0 0;
}

/* Responsiveness */

@media (max-width: 1024px) {
    .tw-character-card {
        padding: 10px 10px;
    }

    .tw-char-basic h3 {
        font-size: 16px;
    }
}
/* Bardziej transparentna karta postaci */
.tw-character-card {
    background: rgba(0, 0, 0, 0.45);   /* półprzezroczyste, widać tło motywu */
    backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 14px;
}

/* Lista tagów (skills / abilities) */
/* Lista tagów (skills / abilities) */
.tw-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 2px;
}

/* PILL – tylko nazwa skilla / ability */
.tw-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 2px;
}

.tw-tag {
    position: relative;
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.35);
    color: #f4f4f4;
    white-space: nowrap;
    overflow: visible;
}

.tw-tag-skill,
.tw-tag-ability {
    border-radius: inherit;
}

.tw-tag-skill {
    border-color: rgba(77, 163, 255, 0.65);
}

.tw-tag-ability {
    border-color: rgba(230, 57, 115, 0.75);
}

.tw-tag-skill:hover,
.tw-tag-ability:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tw-tooltip {
    position: absolute;
    left: 50%;
    bottom: 130%;
    transform: translateX(-50%);
    min-width: 180px;
    max-width: 260px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(201, 161, 91, 0.7);
    color: #e5e7f5;
    font-size: 11px;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 9999;
    white-space: normal;
    text-align: left;
}

.tw-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(15, 15, 20, 0.95) transparent transparent transparent;
}

.tw-tag:hover .tw-tooltip {
    opacity: 1;
}