@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@700&display=swap');

/* FFXIV-style detail window */

.lf-close-btn {
    position: absolute;
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    line-height: 1;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #fffbe0 0%, #c4a96a 55%, #8a6a20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    font-weight: 900;
    -webkit-text-stroke: 1px transparent;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    z-index: 10;
    font-family: sans-serif;
    opacity: 0.8;
    transition: opacity 0.2s, color 0.2s;
}

.lf-close-btn:hover {
    opacity: 1;
    color: #ffffff;
}

.lf-window {
    position: relative;
    width: calc(100% - 60px);
    max-width: 1100px;
    min-height: calc(100vh - 120px);
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    border: 3px solid transparent;
    border-radius: 10px;
    background-image:
        linear-gradient(180deg, #444344 0%, #444344 100%),
        linear-gradient(180deg, #fffbe0 0%, #c4a96a 55%, #7a5a18 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow:
        inset 0 3px 3px rgba(255, 255, 210, 0.15),
        inset 0 6px 14px -6px rgba(0, 0, 0, 0.75),
        0 8px 32px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    padding-bottom: 8px;
}

/* Title header */
.lf-title {
    padding: 12px 48px 12px 16px;
    font-family: 'Jupiter', serif;
    font-size: 1.8rem;
    background: linear-gradient(180deg, #fffbe0 0%, #c4a96a 55%, #8a6a20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    position: relative;
}

.lf-body h1:first-child {
    display: none;
}

/* Tab strip */
.lf-window .tabs {
    background: transparent !important;
    border-bottom: none !important;
    padding: 12px 12px 0;
    display: flex;
    gap: 8px;
    height: auto !important;
    overflow: visible !important;
}

.lf-window .tabs .tab {
    height: auto !important;
    line-height: normal !important;
    flex: 0 0 auto !important;
    width: auto !important;
}

.lf-window .tabs .tab a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    background: linear-gradient(180deg, rgba(120,120,120,1) 0%, #4f4f4f 50%) !important;
    color: #ffffff !important;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    border: 1px solid transparent !important;
    box-shadow: inset 0 1px 1px rgba(255,245,180,0.2), 0 2px 4px rgba(0,0,0,0.5) !important;
    height: auto !important;
    line-height: normal !important;
    transition: none !important;
}

.lf-window .tabs .tab a.active,
.lf-window .tabs .tab a:focus {
    background: linear-gradient(180deg, rgba(120,120,120,1) 0%, #4f4f4f 50%) !important;
    color: #ffffff !important;
    border: 2px solid transparent !important;
    background-image:
        linear-gradient(180deg, rgba(120,120,120,1) 0%, #4f4f4f 50%),
        linear-gradient(180deg, #fffbe0 0%, #c4a96a 55%, #7a5a18 100%) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
}

.lf-window .tabs .indicator {
    display: none !important;
}

/* Content pane — beige FFXIV style */
.lf-body {
    background: #ebe7e0;
    margin: 12px !important;
    padding: 24px 28px !important;
    color: #1a1408 !important;
    border: 3px solid transparent;
    border-radius: 6px;
    background-image:
        linear-gradient(#ebe7e0, #ebe7e0),
        linear-gradient(180deg, #fffbe0 0%, #c4a96a 55%, #7a5a18 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    flex: 1;
    width: auto !important;
    float: none !important;
}

.lf-body h1,
.lf-body h2,
.lf-body h3 {
    color: #3d2a08 !important;
    font-family: 'Jupiter', serif;
    margin-top: 0;
    font-weight: normal;
}

.lf-body h1 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(140, 120, 60, 0.3);
}

.lf-body p {
    color: #1a1408 !important;
    line-height: 1.75;
    margin-bottom: 10px;
}

.lf-body strong {
    color: #3d2a08;
}

/* Meta info strip (quest, leve, etc.) */
.quest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(140,120,60,0.25);
}
.quest-meta span {
    font-size: 0.85rem;
    color: #5a4520;
}
.quest-meta strong {
    color: #3d2a08;
}

/* Dialogue cards (quest pages) inside the body */
.lf-body .card.blue-grey.darken-1 {
    background-color: rgba(28, 46, 67, 0.85) !important;
}

.lf-body .card-content {
    color: #e8dcc8 !important;
}

.lf-body .card-title {
    color: #fbde85 !important;
    font-family: 'Jupiter', serif;
}
