/* Unity UI Toolkit - Clean Adventurers Guild UI */
/* Use default Unity font instead of emoji font */
/* Base reset and utility */
.hidden {
    display: none;
}

/* Full screen overlay */
.guild-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

/* Main guild window */
.guild-window {
    width: 1200px;
    height: 800px;
    background-color: rgba(25, 25, 35, 0.95);
    border-radius: 12px;
    border-width: 2px;
    border-color: rgb(100, 100, 150);
    padding: 0;
    flex-direction: column;
}

/* Header styling */
.guild-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(50, 50, 70, 0.8);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-width: 2px;
    border-bottom-color: rgb(100, 100, 150);
    min-height: 60px;
}

.guild-title {
    font-size: 24px;
    -unity-font-style: bold;
    color: rgb(255, 215, 0);
    margin: 0;
}

.header-right {
    flex-direction: row;
    align-items: center;
}

.renown-label {
    font-size: 14px;
    color: rgb(100, 200, 255);
    margin-right: 15px;
    background-color: rgba(100, 100, 150, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
}

.close-button {
    width: 30px;
    height: 30px;
    background-color: rgba(139, 69, 19, 0.8);
    border-radius: 4px;
    font-size: 16px;
    -unity-font-style: bold;
    color: white;
    border-width: 0;
    margin: 0;
}

.close-button:hover {
    background-color: rgba(180, 90, 30, 1);
}

/* Tab container */
.tab-container {
    flex-direction: row;
    padding: 0 20px;
    background-color: rgba(40, 40, 60, 0.8);
    min-height: 50px;
    align-items: center;
}

.tab-button {
    flex-grow: 1;
    height: 35px;
    font-size: 14px;
    -unity-font-style: bold;
    background-color: rgba(60, 60, 80, 0.8);
    color: rgb(200, 200, 200);
    border-width: 0;
    margin-right: 5px;
    border-radius: 4px;
}

.tab-button:hover {
    background-color: rgba(80, 80, 100, 0.9);
}

.tab-button.active-tab {
    background-color: rgba(100, 100, 150, 1);
    color: white;
}

/* Content area - main horizontal layout */
.content-area {
    flex-direction: row;
    flex-grow: 1;
    padding: 20px;
}

/* Content panels */
.content-panel {
    flex-grow: 1;
    margin-right: 20px;
    background-color: rgba(30, 30, 45, 0.9);
    border-radius: 8px;
    padding: 15px;
    border-width: 1px;
    border-color: rgba(100, 100, 150, 0.3);
}

/* Panel headers */
.panel-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom-width: 1px;
    border-bottom-color: rgba(100, 100, 150, 0.3);
}

.panel-title {
    font-size: 18px;
    -unity-font-style: bold;
    color: rgb(255, 215, 0);
}

.refresh-button {
    height: 30px;
    font-size: 12px;
    background-color: rgba(100, 100, 150, 0.6);
    color: white;
    border-width: 0;
    border-radius: 4px;
    padding: 5px 10px;
}

.refresh-button:hover {
    background-color: rgba(120, 120, 170, 0.8);
}

.quest-count, .history-stats {
    font-size: 12px;
    color: rgb(150, 150, 150);
}

/* Scroll areas */
.quest-scroll-area {
    flex-grow: 1;
}

.quest-scroll-area > .unity-scroll-view__content-container {
    flex-direction: column;
    padding: 5px;
}

/* Quest Details Panel (right side) */
.quest-details-panel {
    width: 400px;
    background-color: rgba(25, 25, 35, 0.9);
    border-radius: 8px;
    padding: 15px;
    border-width: 1px;
    border-color: rgba(100, 100, 150, 0.3);
    flex-shrink: 0;
}

.details-title {
    font-size: 16px;
    -unity-font-style: bold;
    color: rgb(255, 215, 0);
    margin-bottom: 15px;
    -unity-text-align: middle-center;
}

.details-content {
    flex-grow: 1;
}

.details-placeholder {
    font-size: 14px;
    color: rgb(150, 150, 150);
    -unity-text-align: middle-center;
    margin-top: 50px;
}

/* Quest info in details panel */
.quest-info-container {
    flex-direction: column;
}

.quest-title-large {
    font-size: 18px;
    -unity-font-style: bold;
    color: white;
    margin-bottom: 8px;
}

.quest-difficulty-badge {
    font-size: 12px;
    color: rgb(100, 200, 255);
    background-color: rgba(100, 100, 150, 0.3);
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.quest-time-info {
    font-size: 12px;
    color: rgb(255, 165, 0);
    margin-bottom: 12px;
}

.quest-description-large {
    font-size: 13px;
    color: rgb(200, 200, 200);
    margin-bottom: 15px;
    white-space: normal;
}

/* Sections in quest details */
.section-title {
    font-size: 14px;
    -unity-font-style: bold;
    color: rgb(255, 215, 0);
    margin-bottom: 8px;
    margin-top: 15px;
}

.objectives-container, .location-container, .rewards-container {
    margin-bottom: 15px;
}

.objectives-list {
    margin-left: 10px;
}

.quest-location-info, .travel-time-info {
    font-size: 12px;
    color: rgb(100, 200, 255);
    margin-bottom: 3px;
}

.rewards-list {
    margin-left: 10px;
}

.reward-gold, .reward-renown {
    font-size: 12px;
    color: rgb(255, 215, 0);
    margin-bottom: 3px;
}

.reward-items {
    flex-direction: row;
    flex-wrap: wrap;
}

/* Action buttons */
.quest-actions {
    flex-direction: row;
    justify-content: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top-width: 1px;
    border-top-color: rgba(100, 100, 150, 0.3);
}

.action-button {
    height: 35px;
    min-width: 120px;
    font-size: 13px;
    -unity-font-style: bold;
    border-radius: 4px;
    margin: 0 5px;
    border-width: 0;
}

.accept-button {
    background-color: rgb(34, 139, 34);
    color: white;
}

.accept-button:hover {
    background-color: rgb(50, 155, 50);
}

.abandon-button {
    background-color: rgb(139, 69, 19);
    color: white;
}

.abandon-button:hover {
    background-color: rgb(160, 80, 30);
}

/* Quest list items (for the scrollable areas) */
.quest-list-item {
    background-color: rgba(40, 40, 60, 0.8);
    margin-bottom: 8px;
    padding: 12px;
    border-radius: 6px;
    border-left-width: 4px;
    border-left-color: rgba(100, 100, 150, 0.7);
    min-height: 80px;
}

.quest-list-item:hover {
    background-color: rgba(50, 50, 70, 1);
}

.quest-list-item.selected {
    background-color: rgba(60, 60, 80, 1);
    border-left-color: rgb(255, 215, 0);
}

.quest-item-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.quest-item-title {
    font-size: 14px;
    -unity-font-style: bold;
    color: white;
    flex-grow: 1;
}

.quest-item-difficulty {
    font-size: 11px;
    color: rgb(100, 200, 255);
    background-color: rgba(100, 100, 150, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
}

.quest-item-description {
    font-size: 11px;
    color: rgb(180, 180, 180);
    margin-bottom: 6px;
    white-space: normal;
}

.quest-item-rewards {
    flex-direction: row;
    flex-wrap: wrap;
}

.quest-item-reward {
    font-size: 10px;
    color: rgb(255, 215, 0);
    background-color: rgba(255, 215, 0, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 4px;
    margin-bottom: 2px;
}

/* Quest urgency styling */
.quest-list-item.urgency-critical {
    border-left-color: rgb(255, 0, 0);
}

.quest-list-item.urgency-high {
    border-left-color: rgb(255, 165, 0);
}

.quest-list-item.urgency-medium {
    border-left-color: rgb(255, 255, 0);
}

.quest-list-item.urgency-low {
    border-left-color: rgb(0, 255, 0);
}
