/* World of Warcraft Theme for Radzen Blazor Components */

/* Global Styles */
* {
    box-sizing: border-box;
}

/* Remove focus outlines */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--wow-gold-dark);
    outline-offset: 2px;
}

html, body {
    font-family: 'Cinzel', 'Times New Roman', serif;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
    background-attachment: fixed;
    color: var(--wow-text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* Sticky Footer Layout */
.rz-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

.rz-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

/* Ornamental background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.8) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='%234a3c28' stroke-width='0.5' fill='none' opacity='0.3'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}


/* Import Fonts */
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/Cinzel-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/Cinzel-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/Cinzel-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/Cinzel-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/Cinzel-ExtraBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('/fonts/Cinzel-Black.ttf') format('truetype');
}

/* WoW Color Variables */
:root {
    /* Class colors */
    --class-warrior: #c79c6e;
    --class-paladin: #f58cba;
    --class-hunter: #abd473;
    --class-rogue: #fff569;
    --class-priest: #ffffff;
    --class-shaman: #0070de;
    --class-mage: #69ccf0;
    --class-warlock: #9482c9;
    --class-druid: #ff7d0a;
    --class-deathknight: #c41f3b;
    --class-monk: #00ff96;
    --class-demonhunter: #a330c9;
    --class-evoker: #33937f;
    
    --rz-primary: #c9a227;
    --rz-primary-light: #ffd700;
    --rz-primary-dark: #8b6914;
    --rz-secondary: #4a3c28;
    --rz-secondary-light: #6b5a3c;
    --rz-secondary-dark: #2a1a0a;
    
    --rz-success: #00ff00;
    --rz-info: #0070dd;
    --rz-warning: #ff8000;
    --rz-danger: #c41f3b;
    
    --rz-text-color: #e6d5a8;
    --rz-text-secondary-color: #8b8068;
    --rz-background-color: #1a1a1a;
    --rz-content-background-color: #0d0d0d;
    
    --rz-border-color: #4a3c28;
    --rz-border-radius: 4px;
    --rz-profile-menu-padding-inline: 0px !important;
    --rz-link-hover-text-decoration: none !important;
    --rz-link-focus-text-decoration: none !important;
    
    --rz-profile-menu-item-hover-background: rgba(42, 34, 24, 0.7) !important;
    --rz-menu-item-hover-color: #e6d5a8 !important;
    
    --rz-alert-background-color: rgba(42, 34, 24, 0.95) !important;

    .rz-navigation-menu .rz-navigation-item-wrapper:hover {
        background: rgba(42, 34, 24, 0.7) !important;
    }
}

/* Logo hover effects disable */
.logo-link.rz-link:hover {
    color: inherit !important;
    border-color: transparent !important;
    background: transparent !important;
    text-decoration: none !important;
    transform: none !important;
}

.logo-no-hover,
.logo-no-hover:hover {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
    scale: 1 !important;
}

.logo-link:hover .logo-no-hover {
    transform: none !important;
    scale: 1 !important;
    filter: none !important;
}

/* Global Overrides */
body {
    font-family: 'Cinzel', 'Times New Roman', serif !important;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%) !important;
    background-attachment: fixed !important;
    color: var(--rz-text-color) !important;
    min-height: 100vh !important;
}

.rz-layout, .rz-body, .rz-content {
    background: transparent !important;
}


* {
    color: var(--rz-text-color);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--rz-primary) !important;
    font-family: 'Cinzel', serif !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

h1 { font-size: 1.5rem !important; }
h2 { font-size: 1.2rem !important; }
h3 { font-size: 1.0rem !important; }
h4 { font-size: 0.9rem !important; }
h5 { font-size: 0.85rem !important; }
h6 { font-size: 0.8rem !important; }

/* Radzen Text Size Overrides */
.rz-text.rz-text-h1 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
}

.rz-text.rz-text-h2 {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
}

.rz-text.rz-text-h3 {
    font-size: 1.0rem !important;
    line-height: 1.4 !important;
}

.rz-text.rz-text-h4 {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

.rz-text.rz-text-h5 {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
}

.rz-text.rz-text-h6 {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
}

p, span, div {
    color: var(--rz-text-color);
}

/* Button Overrides */
.rz-button {
    font-family: 'Cinzel', serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    border-radius: var(--rz-border-radius) !important;
    transition: all 0.3s ease !important;
}

.rz-button.rz-primary.rz-shade-default {
    background: linear-gradient(180deg, rgba(42, 34, 24, 0.95) 0%, rgba(26, 21, 16, 0.95) 100%) !important;
    border: 2px solid var(--rz-border-color) !important;
    color: var(--rz-text-color) !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.8), inset 0 1px 0 var(--rz-secondary-light), inset 0 -1px 0 rgba(0,0,0,0.5) !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.rz-button.rz-primary.rz-shade-default:hover {
    background: linear-gradient(180deg, rgba(52, 44, 34, 0.95) 0%, rgba(36, 31, 26, 0.95) 100%) !important;
    border-color: var(--rz-primary) !important;
    color: var(--rz-primary) !important;
    box-shadow: 0 0 25px rgba(0,0,0,0.9), inset 0 1px 0 var(--rz-primary-dark), inset 0 -1px 0 rgba(0,0,0,0.5) !important;
    text-shadow: 0 0 8px rgba(201, 162, 39, 0.5) !important;
    transform: translateY(-1px) !important;
}

.rz-button.rz-primary.rz-shade-default:hover::before,
.rz-button.rz-primary.rz-shade-default:hover::after {
    border-color: var(--rz-primary);
}

.rz-button.rz-primary.rz-shade-default::before,
.rz-button.rz-primary.rz-shade-default::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--rz-primary-dark);
}

.rz-button.rz-primary.rz-shade-default::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.rz-button.rz-primary.rz-shade-default::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.rz-button-primary:hover,
.rz-button.rz-button-primary:hover,
.rz-button[data-rz-button-style="Primary"]:hover {
    background: linear-gradient(180deg, rgba(52, 44, 34, 0.95) 0%, rgba(36, 31, 26, 0.95) 100%) !important;
    border-color: var(--rz-primary) !important;
    color: var(--rz-primary) !important;
    box-shadow: 0 0 25px rgba(0,0,0,0.9), inset 0 1px 0 var(--rz-primary-dark), inset 0 -1px 0 rgba(0,0,0,0.5) !important;
    text-shadow: 0 0 8px rgba(201, 162, 39, 0.5) !important;
}

.rz-button-primary:hover::before,
.rz-button-primary:hover::after,
.rz-button.rz-button-primary:hover::before,
.rz-button.rz-button-primary:hover::after,
.rz-button[data-rz-button-style="Primary"]:hover::before,
.rz-button[data-rz-button-style="Primary"]:hover::after {
    border-color: var(--rz-primary);
}

.rz-button-secondary {
    background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 50%, #1a1a1a 100%) !important;
    border-color: var(--rz-border-color) !important;
    color: var(--rz-text-color) !important;
}

.rz-button-info {
    background: linear-gradient(180deg, #5865f2 0%, #4752c4 50%, #3c45a5 100%) !important;
    border-color: #7289da !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4), inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

.rz-button-info:hover {
    background: linear-gradient(180deg, #6875f5 0%, #5865f2 50%, #4752c4 100%) !important;
    border-color: #99aab5 !important;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.6), inset 0 1px 0 rgba(255,255,255,0.3) !important;
    transform: translateY(-1px) !important;
}

/* Card Overrides */
.rz-card {
    background: linear-gradient(180deg, rgba(42, 34, 24, 0.95) 0%, rgba(26, 21, 16, 0.95) 100%) !important;
    border: 2px solid var(--rz-border-color) !important;
    border-radius: var(--rz-border-radius) !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.8), inset 0 1px 0 var(--rz-secondary-light), inset 0 -1px 0 rgba(0,0,0,0.5) !important;
    position: relative;
}

.rz-card::before,
.rz-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--rz-primary-dark);
}

.rz-card::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.rz-card::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.rz-card-content,
.rz-card-content * {
    color: var(--rz-text-color) !important;
}

.rz-card-title {
    color: var(--rz-primary) !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
}

/* Panel/Dialog Overrides */
.rz-panel {
    background: linear-gradient(180deg, rgba(42, 34, 24, 0.95) 0%, rgba(26, 21, 16, 0.95) 100%) !important;
    border: 2px solid var(--rz-border-color) !important;
    border-radius: var(--rz-border-radius) !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.8) !important;
}

.rz-panel-header {
    background: linear-gradient(180deg, #2a2218 0%, #1a1510 100%) !important;
    border-bottom: 2px solid var(--rz-primary-dark) !important;
    color: var(--rz-primary) !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

.rz-panel-content {
    background: transparent !important;
    color: var(--rz-text-color) !important;
}

.rz-panel-content * {
    color: var(--rz-text-color) !important;
}

/* Input Overrides */
.rz-textbox,
.rz-dropdown,
.rz-multiselect {
    background: rgba(26, 21, 16, 0.9) !important;
    border: 2px solid var(--rz-border-color) !important;
    border-radius: var(--rz-border-radius) !important;
    color: var(--rz-text-color) !important;
    font-family: 'Cinzel', serif !important;
}

.rz-textbox:focus,
.rz-dropdown:focus,
.rz-multiselect:focus {
    border-color: var(--rz-primary) !important;
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.3) !important;
}

/* Alert/Notification Overrides */
.rz-alert,
div[role="alert"] {
    background: linear-gradient(180deg, rgba(42, 34, 24, 0.95) 0%, rgba(26, 21, 16, 0.95) 100%) !important;
    border: 2px solid var(--rz-border-color) !important;
    border-radius: var(--rz-border-radius) !important;
    font-family: 'Cinzel', serif !important;
    position: relative !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.8), inset 0 1px 0 var(--rz-secondary-light), inset 0 -1px 0 rgba(0,0,0,0.5) !important;
    padding: 1.5rem !important;
    color: var(--rz-text-color) !important;
}

.rz-alert *,
div[role="alert"] * {
    color: var(--rz-text-color) !important;
}

/* WoW-style corner decorations */
.rz-alert::before,
.rz-alert::after,
div[role="alert"]::before,
div[role="alert"]::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--rz-primary-dark);
}

.rz-alert::before,
div[role="alert"]::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.rz-alert::after,
div[role="alert"]::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* Specific alert type overrides */
.rz-alert-danger,
.rz-alert-error,
div[role="alert"][class*="danger"],
div[role="alert"][class*="error"] {
    border-left: 4px solid var(--rz-danger) !important;
}

.rz-alert-success,
div[role="alert"][class*="success"] {
    border-left: 4px solid var(--rz-success) !important;
}

.rz-alert-warning,
div[role="alert"][class*="warning"] {
    border-left: 4px solid var(--rz-warning) !important;
}

.rz-alert-info,
div[role="alert"][class*="info"] {
    border-left: 4px solid var(--rz-info) !important;
}

/* Alert titles */
.rz-alert h1, .rz-alert h2, .rz-alert h3, .rz-alert h4, .rz-alert h5, .rz-alert h6,
div[role="alert"] h1, div[role="alert"] h2, div[role="alert"] h3, div[role="alert"] h4, div[role="alert"] h5, div[role="alert"] h6 {
    color: var(--rz-primary) !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
}

/* Progress Bar Overrides */
.rz-progressbar {
    background: var(--rz-content-background-color) !important;
    border: 1px solid var(--rz-border-color) !important;
    border-radius: var(--rz-border-radius) !important;
}

.rz-progressbar-value {
    background: linear-gradient(90deg, var(--rz-primary-dark) 0%, var(--rz-primary) 50%, var(--rz-primary-dark) 100%) !important;
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.5) !important;
}

/* Loading/Spinner Overrides */
.rz-spinner {
    border-color: var(--rz-border-color) !important;
    border-top-color: var(--rz-primary) !important;
}

/* DataGrid Overrides */
.rz-datatable {
    background: transparent !important;
    border: 2px solid var(--rz-border-color) !important;
    border-radius: var(--rz-border-radius) !important;
}

.rz-datatable-header {
    background: linear-gradient(180deg, #2a2218 0%, #1a1510 100%) !important;
    color: var(--rz-primary) !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

.rz-datatable-data {
    background: rgba(26, 21, 16, 0.5) !important;
    color: var(--rz-text-color) !important;
    border-bottom: 1px solid var(--rz-border-color) !important;
}

.rz-datatable-data:hover {
    background: rgba(52, 44, 34, 0.7) !important;
}

/* Class Color Utilities */
.class-warrior { color: var(--class-warrior) !important; }
.class-paladin { color: var(--class-paladin) !important; }
.class-hunter { color: var(--class-hunter) !important; }
.class-rogue { color: var(--class-rogue) !important; }
.class-priest { color: var(--class-priest) !important; }
.class-shaman { color: var(--class-shaman) !important; }
.class-mage { color: var(--class-mage) !important; }
.class-warlock { color: var(--class-warlock) !important; }
.class-druid { color: var(--class-druid) !important; }
.class-deathknight { color: var(--class-deathknight) !important; }
.class-monk { color: var(--class-monk) !important; }
.class-demonhunter { color: var(--class-demonhunter) !important; }
.class-evoker { color: var(--class-evoker) !important; }

/* Dropdown/Menu Overrides */
.rz-dropdown-panel,
.rz-popup-content {
    background: linear-gradient(180deg, rgba(42, 34, 24, 0.95) 0%, rgba(26, 21, 16, 0.95) 100%) !important;
    border: 2px solid var(--rz-border-color) !important;
    border-radius: var(--rz-border-radius) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.8) !important;
    color: var(--rz-text-color) !important;
}

.rz-dropdown-item,
.rz-menu-item {
    background: transparent !important;
    color: var(--rz-text-color) !important;
    font-family: 'Cinzel', serif !important;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(74, 60, 40, 0.3) !important;
}

.rz-dropdown-item:hover,
.rz-menu-item:hover {
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.2) 0%, rgba(139, 105, 20, 0.2) 100%) !important;
    color: var(--rz-primary) !important;
    text-shadow: 0 0 8px rgba(201, 162, 39, 0.5) !important;
}

.rz-dropdown-item:last-child,
.rz-menu-item:last-child {
    border-bottom: none !important;
}

.rz-dropdown-item .rz-icon,
.rz-menu-item .rz-icon {
    color: var(--rz-text-color) !important;
}

.rz-dropdown-item:hover .rz-icon,
.rz-menu-item:hover .rz-icon {
    color: var(--rz-primary) !important;
}

/* Profile Menu Overrides */
.profile-menu-trigger {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.profile-menu-trigger:hover {
    background: transparent !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

/* Force override all Profile Menu popup styles */
.rz-popup.rz-popup-content,
.rz-popup .rz-popup-content,
div[role="menu"],
.rz-menu,
.rz-menu .rz-menu-content,
.rz-profilemenu .rz-popup,
.rz-profilemenu .rz-popup-content,
.rz-navigation-menu {
    background: rgba(26, 21, 16, 0.95) !important;
    border: 2px solid var(--rz-border-color) !important;
    border-radius: var(--rz-border-radius) !important;
    box-shadow: none !important;
    color: var(--rz-text-color) !important;
}

/* Profile Menu Items */
.rz-menu-item,
div[role="menuitem"],
a[role="menuitem"] {
    background: transparent !important;
    color: var(--rz-text-color) !important;
    font-family: 'Cinzel', serif !important;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(74, 60, 40, 0.3) !important;
}

.rz-menu-item:hover,
div[role="menuitem"]:hover,
a[role="menuitem"]:hover {
    background: transparent !important;
    color: var(--rz-text-color) !important;
    text-shadow: none !important;
}

.rz-menu-item:last-child,
div[role="menuitem"]:last-child,
a[role="menuitem"]:last-child {
    border-bottom: none !important;
}

.rz-menu-item .rz-icon,
div[role="menuitem"] .rz-icon,
a[role="menuitem"] .rz-icon {
    color: var(--rz-text-color) !important;
}

.rz-menu-item:hover .rz-icon,
div[role="menuitem"]:hover .rz-icon,
a[role="menuitem"]:hover .rz-icon {
    color: var(--rz-primary) !important;
}


.discord-login-btn {
    background: linear-gradient(180deg, #5865f2 0%, #4752c4 50%, #3c45a5 100%) !important;
    border: 2px solid #7289da !important;
    color: white !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 4px !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4), inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

.discord-login-btn:hover {
    background: linear-gradient(180deg, #6875f5 0%, #5865f2 50%, #4752c4 100%) !important;
    border-color: #99aab5 !important;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.6), inset 0 1px 0 rgba(255,255,255,0.3) !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
    color: white !important;
}

/* Badge Overrides */
.rz-badge {
    font-family: 'Cinzel', serif !important;
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
}

.rz-badge-success {
    background: linear-gradient(180deg, #1a4d1a 0%, #0d260d 100%) !important;
    border: 1px solid var(--rz-success) !important;
    color: var(--rz-success) !important;
    text-shadow: 0 0 5px var(--rz-success) !important;
}

.rz-badge-danger {
    background: linear-gradient(180deg, #4d1a1a 0%, #260d0d 100%) !important;
    border: 1px solid var(--rz-danger) !important;
    color: var(--rz-danger) !important;
}

.rz-badge-info {
    background: var(--rz-content-background-color) !important;
    border: 1px solid var(--rz-border-color) !important;
    color: var(--rz-text-secondary-color) !important;
}

/* Vote Container */
.vote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

/* Navigation Link Hover Effects */
.rz-link:hover {
    color: var(--wow-gold) !important;
    border-color: var(--wow-gold-dark) !important;
    background: rgba(201, 162, 39, 0.1) !important;
}

/* Navigation Responsive */
@media (min-width: 769px) {
    .nav-mobile {
        display: none !important;
    }
    
    .nav-mobile-menu {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none !important;
    }
    
    .nav-mobile {
        display: block !important;
    }
    
    .nav-mobile-menu {
        display: block !important;
    }

    /* Hide username on mobile to save space */
    .user-text-mobile .rz-text {
        display: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .rz-datatable {
        font-size: 0.85rem;
    }
    
    .rz-card {
        margin: 0.5rem 0;
        padding: 1rem !important;
    }
}