/* ============================================
   AION 2 Theme
   Light blue accent colors
   ============================================ */

:root {
    /* AION 2 Colors - Light blue theme */
    --color-accent: #38bdf8;
    --color-accent-hover: #7dd3fc;
    --color-accent-glow: rgba(56, 189, 248, 0.5);
    --color-accent-subtle: rgba(56, 189, 248, 0.1);
    --color-accent-border: rgba(56, 189, 248, 0.4);
}

/* ============================================
   AION 2 Header with Banner Image
   ============================================ */
.header {
    background-image: 
        linear-gradient(to top, #161618 0%, rgba(0, 0, 0, 0) 100%),
        url('/aion2/images/header-banner-aion2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}


/* AION 2 specific background gradient */
body {
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.1) 0%, transparent 121vh);
    background-attachment: fixed;
}

/* ============================================
   Spacetime Rift Timer Bar
   ============================================ */
.rift-timer-bar {
    background: var(--color-bg-section);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) var(--color-bg-container);
}

.rift-timer-bar::-webkit-scrollbar {
    height: 8px;
}

.rift-timer-bar::-webkit-scrollbar-track {
    background: var(--color-bg-container);
    border-radius: 4px;
}

.rift-timer-bar::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
    border: 1px solid var(--color-bg-container);
}

.rift-timer-bar::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
    opacity: 0.8;

}


.rift-timer-content {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
    font-size: 0.8em;
    font-family: 'Exo 2', sans-serif;
    text-decoration: none !important;
    min-width: max-content;
    padding: 6px 6px;
    width: auto;
    overflow-y: scroll;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    overflow: visible;
}

.rift-timer-content:hover {
    background: var(--color-bg-hover);
    text-decoration: none;
}

.rift-timer-bar:hover {
    border-top-color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.rift-timer-content:visited,
.rift-timer-content:link,
.rift-timer-content:active {
    color: inherit;
    text-decoration: none;
}

.rift-timer-content * {
    pointer-events: none;
}

.rift-timer-mute-button {
    pointer-events: auto !important;
}

.rift-timer-mute-button * {
    pointer-events: auto !important;
}

.rift-timer-events {
    pointer-events: auto !important;
}

.rift-timer-events * {
    pointer-events: auto !important;
}

.rift-timer-content span {
    display: inline-block;
}

.rift-timer-mute-button {
    background: transparent;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
    pointer-events: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.rift-timer-mute-button.muted {
    border-color: var(--color-border);
}

.rift-timer-mute-button:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-accent);
    transform: scale(1.05);
}

.rift-timer-mute-button:active {
    transform: scale(0.95);
}



.rift-timer-events {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    flex: 1;
}

.rift-timer-event {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.rift-timer-separator {
    color: var(--color-text-muted);
    opacity: 0.5;
    margin: 0 5px;
    flex-shrink: 0;
}

.rift-timer-server {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rift-timer-label {
    color: var(--color-text-muted) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rift-timer-status {
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s;
    color: inherit;
}

.rift-timer-status.open {
    color: #00ff00 !important;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.rift-timer-status.closed {
    color: #ff8c00 !important;
}

.rift-timer-status.event-active {
    color: #ff8c00 !important;
}

.rift-timer-countdown {
    font-family: 'Exo 2', monospace;
    font-weight: 700;
    letter-spacing: 2px;
    transition: color 0.3s;
    color: inherit;
}

.rift-timer-countdown.open {
    color: #00ff00 !important;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.rift-timer-countdown.closed {
    color: var(--color-accent) !important;
}

/* Toggle switch for server selection */
.rift-timer-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rift-timer-toggle-label {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: color 0.3s;
    user-select: none;
}

.rift-timer-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.rift-timer-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.rift-timer-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg-section);
    border: 2px solid var(--color-border);
    border-radius: 24px;
    transition: 0.3s;
}

.rift-timer-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: var(--color-accent);
    border-radius: 50%;
    transition: 0.3s;
}

.rift-timer-toggle-switch input:checked + .rift-timer-toggle-slider:before {
    transform: translateX(26px);
}

/* Sound checkbox */
.rift-timer-sound-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.rift-timer-sound-label:hover {
    background: var(--color-accent-subtle);
}

.rift-timer-sound-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--color-accent);
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--color-bg-section);
    border: 2px solid var(--color-border);
    border-radius: 3px;
    position: relative;
    transition: all 0.2s;
}

.rift-timer-sound-checkbox:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.rift-timer-sound-checkbox:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-bg-body);
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.rift-timer-sound-checkbox:hover {
    border-color: var(--color-accent);
}

.rift-timer-sound-label span {
    font-size: 1em;
}

@media (max-width: 768px) {
    
    
    .rift-timer-server {
        gap: 8px;
        flex-shrink: 0;
    }
    
    .rift-timer-toggle {
        gap: 6px;
    }
    
    .rift-timer-toggle-switch {
        width: 40px;
        height: 20px;
    }
    
    .rift-timer-toggle-slider:before {
        height: 12px;
        width: 12px;
    }
    
    .rift-timer-toggle-switch input:checked + .rift-timer-toggle-slider:before {
        transform: translateX(20px);
    }
    
    .rift-timer-toggle-label {
        font-size: 0.75em;
    }
}


/* ============================================
   Item Rarity Colors
   Consistent across all AION 2 pages
   Uses RGB values for consistency - use rgb(var(--rarity-rgb)) or rgba(var(--rarity-rgb), opacity)
   ============================================ */
.rarity-common { 
    --rarity-rgb: 195, 195, 195;
    color: rgb(var(--rarity-rgb));
}

.rarity-rare { 
    --rarity-rgb: 25, 224, 72;
    color: rgb(var(--rarity-rgb));
}

.rarity-epic { 
    --rarity-rgb: 55, 154, 255;
    color: rgb(var(--rarity-rgb));
}

.rarity-unique { 
    --rarity-rgb: 255, 208, 43;
    color: rgb(var(--rarity-rgb));
}

.rarity-heroic { 
    --rarity-rgb: 255, 108, 0;
    color: rgb(var(--rarity-rgb));
}

.rarity-special { 
    --rarity-rgb: 0, 255, 216;
    color: rgb(var(--rarity-rgb));
}