/* ============================================================
   Travel Weather Review – Frontend Styles
   Alle drei Styles: card | visual | text
   ============================================================ */

/* --------------------------------------------------------
   Basis-Box (alle Styles)
-------------------------------------------------------- */
.twr-box {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: #fff;
    border: 1px solid #e0e7ef;
    border-radius: 10px;
    overflow: hidden;
    max-width: 520px;
    margin: 2em 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    color: #2c2c2c;
    line-height: 1.5;
    font-size: 15px;
}

/* --------------------------------------------------------
   STYLE: CARD
-------------------------------------------------------- */
.twr-style-card .twr-header {
    background: linear-gradient(135deg, #2d6fa4 0%, #4a9fd4 100%);
    color: #fff;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.twr-icon-weather { font-size: 1.2em; }
.twr-title { font-size: .85em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.twr-meta {
    padding: 12px 18px 6px;
    border-bottom: 1px solid #eef2f7;
}
.twr-meta-row {
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-size: .88em;
    margin-bottom: 4px;
    color: #444;
}
.twr-mi { font-size: 1em; }

.twr-data {
    padding: 12px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.twr-data-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.twr-data-full { grid-column: 1 / -1; }
.twr-di-icon  { font-size: 1em; }
.twr-di-label { font-size: .7em; text-transform: uppercase; letter-spacing: .05em; color: #999; font-weight: 700; }
.twr-di-value { font-size: .9em; color: #1e1e1e; }

.twr-footer {
    background: #f7fafd;
    border-top: 1px solid #eef2f7;
    padding: 11px 18px;
}

/* --------------------------------------------------------
   STYLE: VISUAL
-------------------------------------------------------- */
.twr-style-visual {
    background: #f8fafc;
}
.twr-visual-header {
    background: linear-gradient(135deg, #1a4a70 0%, #2d7ab0 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.twr-visual-loc {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.twr-visual-loc strong {
    font-size: 1.05em;
    font-weight: 700;
    color: #fff;
}
.twr-visual-pin { margin-right: 4px; }
.twr-visual-date {
    font-size: .8em;
    opacity: .85;
    margin-left: 1.4em;
}
.twr-visual-badge .twr-badge {
    font-size: .75em;
    white-space: nowrap;
}

.twr-visual-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.twr-visual-block-label {
    font-size: .72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #888;
    margin-bottom: 6px;
}
.twr-temp-svg,
.twr-rain-svg {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
}

.twr-visual-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.twr-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #dde5ee;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: .82em;
    color: #444;
}
.twr-pill-wide { flex: 1 1 auto; }
.twr-pill-icon { font-size: 1em; }

.twr-visual-footer {
    background: #fff;
    border-top: 1px solid #e5eaf0;
    padding: 12px 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.twr-verdict-icon { font-size: 1.1em; flex-shrink: 0; margin-top: 2px; }

/* --------------------------------------------------------
   STYLE: TEXT
-------------------------------------------------------- */
.twr-style-text {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    border-left: 3px solid #4a9fd4;
    padding: 0 0 0 16px;
    max-width: 440px;
}
.twr-text-title {
    font-size: .8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #4a9fd4;
    margin-bottom: 10px;
}
.twr-text-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 0;
}
.twr-text-row {
    display: contents;
}
.twr-text-row dt {
    font-size: .82em;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 3px 14px 3px 0;
    white-space: nowrap;
}
.twr-text-row dd {
    font-size: .88em;
    color: #222;
    padding: 3px 0;
    margin: 0;
}

/* --------------------------------------------------------
   Rating Badges (alle Styles)
-------------------------------------------------------- */
.twr-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 7px;
}
.twr-badge-yes   { background: #e6f4ea; color: #1e7e34; }
.twr-badge-maybe { background: #fff8e1; color: #8a6400; }
.twr-badge-no    { background: #fce8e6; color: #b31412; }

.twr-verdict {
    font-size: .85em;
    color: #444;
    margin: 0;
    font-style: italic;
}

/* --------------------------------------------------------
   Inline [twr_field]
-------------------------------------------------------- */
.twr-inline {
    display: inline;
}
.twr-inline-label {
    font-weight: 600;
    color: #555;
}

/* --------------------------------------------------------
   Responsive
-------------------------------------------------------- */
@media (max-width: 480px) {
    .twr-data { grid-template-columns: 1fr; }
    .twr-box  { max-width: 100%; }
    .twr-visual-header { flex-direction: column; }
}
