/* Compact Monarch System Design */
.monarch-section-epic {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #8B7355;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Header Section */
.monarch-section-epic .monarch-epic-header {
    text-align: center;
    margin-bottom: 15px;
}

.monarch-section-epic .crown-container {
    margin-bottom: 8px;
}

.monarch-section-epic .crown-epic {
    width: 42px;
    height: 42px;
    display: block;
    margin: 0 auto;
}

.monarch-section-epic .monarch-epic-title {
    font-size: 24px;
    color: #FFD700;
    margin: 5px 0 3px 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Tahoma', 'Arial', sans-serif;
    letter-spacing: 0.5px;
}

.monarch-section-epic .monarch-epic-subtitle {
    font-size: 15px;
    color: #B8860B;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    font-family: 'Tahoma', 'Arial', sans-serif;
}

/* Empires Grid - Horizontal Layout (3 columns) */
.monarch-section-epic .empires-grid {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-bottom: 15px;
}

/* Empire Card - Vertical Layout (tall cards) */
.monarch-section-epic .empire-card {
    flex: 1;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(184, 134, 11, 0.6);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-sizing: border-box;
    min-height: 280px;
}

/* Empire Header - Top */
.monarch-section-epic .empire-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.monarch-section-epic .empire-flag-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    cursor: help;
    transition: transform 0.3s ease;
}

.monarch-section-epic .empire-flag-img:hover {
    transform: scale(1.1);
}

.monarch-section-epic .empire-name {
    font-size: 17px;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    text-align: center;
    font-family: 'Tahoma', 'Arial', sans-serif;
}

/* Monarch Content - Vertical Stack */
.monarch-section-epic .monarch-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.monarch-section-epic .monarch-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.monarch-section-epic .avatar-frame {
    width: 45px;
    height: 45px;
    border: 2px solid;
    border-radius: 50%;
    overflow: hidden;
    cursor: help;
    transition: transform 0.3s ease;
}

.monarch-section-epic .avatar-frame:hover {
    transform: scale(1.1);
}

.monarch-section-epic .monarch-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.monarch-section-epic .monarch-info {
    text-align: center;
}

.monarch-section-epic .monarch-name {
    font-size: 15px;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-family: 'Tahoma', 'Arial', sans-serif;
}

.monarch-section-epic .monarch-class {
    font-size: 12px;
    color: #B8860B;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    font-family: 'Tahoma', 'Arial', sans-serif;
}

/* Treasury - Most Prominent */
.monarch-section-epic .treasury-highlight {
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid #FFD700;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: default;
}

.monarch-section-epic .treasury-highlight:hover {
    background: rgba(255, 215, 0, 0.25);
    border-color: #FFF;
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.monarch-section-epic .treasury-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.monarch-section-epic .treasury-value {
    font-size: 17px;
    color: #FFD700;
    font-weight: bold;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 2px;
    font-family: 'Courier New', monospace;
}

.monarch-section-epic .treasury-label {
    font-size: 11px;
    color: #B8860B;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    font-family: 'Tahoma', 'Arial', sans-serif;
}

/* Other Stats - Smaller */
.monarch-section-epic .monarch-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.monarch-section-epic .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid rgba(184, 134, 11, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

.monarch-section-epic .stat-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateX(-2px);
}

.monarch-section-epic .stat-icon {
    font-size: 12px;
}

.monarch-section-epic .stat-label {
    font-size: 11px;
    color: #B8860B;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    font-family: 'Tahoma', 'Arial', sans-serif;
}

.monarch-section-epic .stat-value {
    font-size: 13px;
    color: #FFD700;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', monospace;
}

/* Days Info - Small */
.monarch-section-epic .reign-info {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 4px;
    padding: 6px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.monarch-section-epic .reign-info:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    transform: scale(1.02);
}

.monarch-section-epic .days-number {
    font-size: 15px;
    color: #FFD700;
    font-weight: bold;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', monospace;
}

.monarch-section-epic .days-label {
    font-size: 10px;
    color: #B8860B;
    margin-top: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    font-family: 'Tahoma', 'Arial', sans-serif;
}

/* Empty Throne */
.monarch-section-epic .empty-throne-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 20px 10px;
}

.monarch-section-epic .crown-icon-empty {
    font-size: 56px;
    margin-bottom: 15px;
    opacity: 0.7;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.monarch-section-epic .empty-text {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    text-align: center;
    font-family: 'Tahoma', 'Arial', sans-serif;
}

.monarch-section-epic .empty-subtext {
    font-size: 13px;
    color: #888;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    text-align: center;
    font-family: 'Tahoma', 'Arial', sans-serif;
}

/* Footer */
.monarch-section-epic .monarch-footer {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(184, 134, 11, 0.4);
}

.monarch-section-epic .btn-monarch-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #8B6914, #B8860B);
    color: #FFF;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #FFD700;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.monarch-section-epic .btn-monarch-details:hover {
    background: linear-gradient(135deg, #B8860B, #DAA520);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .monarch-section-epic .empires-grid {
        flex-direction: column;
        gap: 12px;
    }
    
    .monarch-section-epic .empire-card {
        min-height: auto;
    }
    
    .monarch-section-epic .monarch-epic-title {
        font-size: 18px;
    }
}
