/**
 * Dota 2 Dictionary Premium Dark Theme Stylesheet
 */

:root {
    --dota-bg: #090c10;
    --dota-card-bg: #151821;
    --dota-card-footer-bg: #1a1e28;
    --dota-text-main: #f0f3f8;
    --dota-text-muted: #8b949e;
    --dota-gold: #c5a059;
    --dota-gold-dark: #8b6d34;
    
    /* Attribute Colors */
    --color-str: #f24435;
    --color-agi: #40f235;
    --color-int: #35a4f2;
    --color-all: #aa35f2;
    
    /* Attribute Gradients */
    --gradient-all: linear-gradient(135deg, #aa35f2 0%, #35f2d3 100%);
    
    /* Fonts */
    --dota-font: 'Outfit', sans-serif;
}

.dota2-dictionary-wrapper {
    background-color: var(--dota-bg);
    color: var(--dota-text-main);
    font-family: var(--dota-font);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
    border: 1px solid #21262d;
}

/* Header */
.dota2-dict-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #21262d;
}

.dota2-dict-title {
    font-size: 38px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dota-text-main);
    margin: 0 0 10px 0;
    background: linear-gradient(180deg, #ffffff 0%, #8f9cae 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dota2-dict-subtitle {
    color: var(--dota-text-muted);
    font-size: 16px;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation Tabs */
.dota2-tabs-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.dota2-tab-btn {
    background: #161b22;
    border: 1px solid #30363d;
    color: var(--dota-text-muted);
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dota2-tab-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.dota2-tab-btn:hover {
    color: var(--dota-text-main);
    border-color: var(--dota-gold);
    background: #21262d;
}

.dota2-tab-btn.active {
    background: var(--dota-gold);
    color: #0d0f12;
    border-color: var(--dota-gold);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}

/* Tab contents */
.dota2-tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dota2-tab-content.active {
    display: block;
    opacity: 1;
}

/* Filters Panel */
.dota2-filters-panel {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dota-text-muted);
    margin-right: 5px;
}

/* Search Box */
.search-box {
    position: relative;
    flex: 1 1 250px;
}

.search-box input {
    width: 100% !important;
    background: #0d1117 !important;
    border: 1px solid #30363d !important;
    color: var(--dota-text-main) !important;
    padding: 10px 15px 10px 38px !important;
    border-radius: 6px !important;
    font-family: var(--dota-font) !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.search-box input:focus {
    border-color: var(--dota-gold) !important;
    outline: none !important;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.2) !important;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dota-text-muted);
    font-size: 18px;
    pointer-events: none;
}

/* Buttons style inside filter */
.filter-btn {
    background: #21262d;
    border: 1px solid #30363d;
    color: var(--dota-text-main);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--dota-text-muted);
    background: #30363d;
}

.filter-btn.active {
    background: #30363d;
    border-color: var(--dota-gold);
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.2);
}

/* Attribute Filter icons */
.attr-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.icon-str { background-color: var(--color-str); box-shadow: 0 0 6px var(--color-str); }
.icon-agi { background-color: var(--color-agi); box-shadow: 0 0 6px var(--color-agi); }
.icon-int { background-color: var(--color-int); box-shadow: 0 0 6px var(--color-int); }
.icon-all { background: var(--gradient-all); box-shadow: 0 0 6px #aa35f2; }

/* Grid systems */
.dota2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* Card layout wrapper link */
.dota2-card-link {
    text-decoration: none !important;
    display: block;
}

/* CARD: HERO */
.dota2-hero-card {
    background: var(--dota-card-bg);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid #21262d;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Glowing Attribute Borders */
.dota2-hero-card.border-str:hover { border-color: var(--color-str); box-shadow: 0 0 15px rgba(242, 68, 53, 0.4); }
.dota2-hero-card.border-agi:hover { border-color: var(--color-agi); box-shadow: 0 0 15px rgba(64, 242, 53, 0.4); }
.dota2-hero-card.border-int:hover { border-color: var(--color-int); box-shadow: 0 0 15px rgba(53, 164, 242, 0.4); }
.dota2-hero-card.border-all_attr:hover { border-color: #aa35f2; box-shadow: 0 0 15px rgba(170, 53, 242, 0.4); }

.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dota2-hero-card:hover .hero-image-wrapper img {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dota2-hero-card:hover .hero-overlay {
    opacity: 1;
}

.view-profile {
    border: 1px solid var(--dota-gold);
    color: var(--dota-gold);
    padding: 6px 14px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
}

.hero-card-footer {
    padding: 12px;
    background: var(--dota-card-footer-bg);
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
}

.hero-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dota-text-main);
    display: block;
}

.hero-attack-label {
    font-size: 11px;
    color: var(--dota-text-muted);
}

.hero-attr-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}
.hero-attr-indicator.attr-str { background-color: var(--color-str); }
.hero-attr-indicator.attr-agi { background-color: var(--color-agi); }
.hero-attr-indicator.attr-int { background-color: var(--color-int); }
.hero-attr-indicator.attr-all_attr { background: var(--gradient-all); }


/* CARD: ITEM */
.dota2-item-card {
    background: var(--dota-card-bg);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid #21262d;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dota2-item-card:hover {
    border-color: var(--dota-gold);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
    transform: translateY(-2px);
}

.item-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #0c0e12;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #21262d;
}

.item-image-wrapper img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.item-card-details {
    padding: 12px;
    background: var(--dota-card-footer-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dota-text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-cost-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #30363d;
    flex-shrink: 0;
}

.gold-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #f1c40f 0%, #f39c12 100%);
    border-radius: 50%;
    box-shadow: 0 0 4px #f39c12;
    border: 1.5px solid #d35400;
}

.item-cost {
    font-size: 12px;
    font-weight: 700;
    color: #f1c40f;
    font-family: monospace;
}

/* Empty State */
.dota2-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.dota2-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--dota-gold);
    margin-bottom: 15px;
}

.no-results-msg {
    text-align: center;
    padding: 40px;
    background: #161b22;
    border: 1px dashed #30363d;
    border-radius: 6px;
    color: var(--dota-text-muted);
}

/* Retired Items Section styling */
.dota2-retired-items-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #21262d;
}

.retired-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--dota-text-main);
    letter-spacing: 1px;
}

.retired-section-desc {
    color: var(--dota-text-muted);
    font-size: 14px;
    margin: 0 0 25px 0;
}

.retired-item-card {
    opacity: 0.65;
    filter: grayscale(30%);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dota2-card-link:hover .retired-item-card {
    opacity: 1;
    filter: grayscale(0%);
    border-color: var(--dota-text-muted);
    box-shadow: 0 0 15px rgba(139, 148, 158, 0.4);
}

.retired-patch-badge {
    background: rgba(242, 68, 53, 0.1) !important;
    border-color: rgba(242, 68, 53, 0.3) !important;
    color: #ff6b6b !important;
}

.retired-patch-badge .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 13px;
    margin-top: 1px;
}

.retired-patch-text {
    font-size: 11px;
    font-weight: 600;
}

/* Single Item retired warning styling */
.item-retired-banner {
    background: rgba(242, 68, 53, 0.1);
    border: 1px solid rgba(242, 68, 53, 0.3);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ff6b6b;
}

.item-retired-banner .dashicons-warning {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #f24435;
}

.item-retired-banner-content h4 {
    margin: 0 0 2px 0;
    font-size: 15px;
    font-weight: 700;
    color: #ff6b6b;
}

.item-retired-banner-content p {
    margin: 0;
    font-size: 13px;
    color: #ff8787;
}

.item-retired-badge {
    background: #f24435;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 12px;
    box-shadow: 0 0 10px rgba(242, 68, 53, 0.5);
}

