/* ============================================
   Monster Changelog - Card-based Category Design
   ============================================ */

/* === Admin tools === */
.cl-admin {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1a1a15;
}

.cl-admin-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.cl-btn {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 3px;
    font-size: 12px;
    font-family: Verdana, Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.cl-btn-green {
    background: linear-gradient(180deg, #2a3a10, #1e2e08);
    border-color: #3a4a15;
    color: #81bd24;
}

.cl-btn-green:hover {
    background: linear-gradient(180deg, #354a15, #2a3a10);
    color: #a0e030;
}

.cl-btn-gray {
    background: #15150f;
    border-color: #2a2a25;
    color: #706b62;
}

.cl-btn-gray:hover {
    color: #989186;
    border-color: #3a3a35;
}

/* Admin toggle - small gear icon */
.cl-admin-toggle {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #0d0d0b;
    border: 1px solid #1a1a15;
    border-radius: 3px;
    color: #3a3a30;
    font-size: 11px;
    text-decoration: none;
    margin-bottom: 10px;
    opacity: 0.5;
    transition: all 0.2s;
}

.cl-admin-toggle:hover {
    opacity: 1;
    color: #81bd24;
    border-color: #3a4a15;
}

/* Forms */
.cl-forms {
    margin-top: 8px;
}

.cl-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 6px;
}

.cl-select {
    padding: 8px 10px;
    background: #0e0e0c;
    border: 1px solid #1a1a15;
    color: #81bd24;
    font-size: 12px;
    border-radius: 3px;
    min-width: 130px;
}

.cl-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 10px;
    background: #0e0e0c;
    border: 1px solid #1a1a15;
    color: #989186;
    font-size: 12px;
    border-radius: 3px;
}

.cl-input:focus {
    border-color: #3a4a15;
    outline: none;
}

.cl-warn { color: #8b4444; font-size: 12px; }

/* ============================================
   DATE BLOCKS
   ============================================ */
.cl-date-block {
    margin-bottom: 25px;
}

.cl-date-header {
    margin-bottom: 12px;
}

.cl-date-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(129,189,36,0.08);
    border: 1px solid rgba(129,189,36,0.18);
    border-radius: 4px;
    color: #81bd24;
    font-family: 'Aparajita', Georgia, serif;
    font-size: 17px;
    font-variant: small-caps;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(129,189,36,0.25);
    position: relative;
}

.cl-date-badge::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #81bd24;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(129,189,36,0.5);
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.cl-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cl-card {
    background: #0d0d0b;
    border: 1px solid #1a1a15;
    border-radius: 5px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.cl-card:hover {
    border-color: #2a2a22;
}

/* Card header - colored per category */
.cl-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #1a1a15;
    background: rgba(0,0,0,0.3);
}

.cl-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    font-size: 14px;
    flex-shrink: 0;
}

.cl-card-title {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    flex: 1;
}

.cl-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: 10px;
    font-weight: bold;
    background: rgba(0,0,0,0.4);
}

/* === Category colors === */

/* Database Fix - Orange/Amber */
.cl-type-database-fix .cl-card-header {
    border-bottom-color: rgba(210,128,16,0.2);
}
.cl-type-database-fix .cl-card-icon {
    background: rgba(210,128,16,0.15);
    color: #d28010;
    border: 1px solid rgba(210,128,16,0.3);
}
.cl-type-database-fix .cl-card-title {
    color: #d28010;
    text-shadow: 0 0 8px rgba(210,128,16,0.2);
}
.cl-type-database-fix .cl-card-count {
    color: #d28010;
    border: 1px solid rgba(210,128,16,0.25);
}
.cl-type-database-fix .cl-dot {
    background: #d28010;
    box-shadow: 0 0 4px rgba(210,128,16,0.4);
}

/* Server Stability - Green */
.cl-type-server-stability .cl-card-header {
    border-bottom-color: rgba(129,189,36,0.2);
}
.cl-type-server-stability .cl-card-icon {
    background: rgba(129,189,36,0.12);
    color: #81bd24;
    border: 1px solid rgba(129,189,36,0.25);
}
.cl-type-server-stability .cl-card-title {
    color: #81bd24;
    text-shadow: 0 0 8px rgba(129,189,36,0.2);
}
.cl-type-server-stability .cl-card-count {
    color: #81bd24;
    border: 1px solid rgba(129,189,36,0.25);
}
.cl-type-server-stability .cl-dot {
    background: #81bd24;
    box-shadow: 0 0 4px rgba(129,189,36,0.4);
}

/* World Content - Blue */
.cl-type-world-content .cl-card-header {
    border-bottom-color: rgba(100,150,210,0.2);
}
.cl-type-world-content .cl-card-icon {
    background: rgba(100,150,210,0.12);
    color: #6496d2;
    border: 1px solid rgba(100,150,210,0.25);
}
.cl-type-world-content .cl-card-title {
    color: #6496d2;
    text-shadow: 0 0 8px rgba(100,150,210,0.2);
}
.cl-type-world-content .cl-card-count {
    color: #6496d2;
    border: 1px solid rgba(100,150,210,0.25);
}
.cl-type-world-content .cl-dot {
    background: #6496d2;
    box-shadow: 0 0 4px rgba(100,150,210,0.4);
}

/* Default / Other - Gray */
.cl-card-icon {
    background: rgba(150,145,134,0.1);
    color: #989186;
    border: 1px solid rgba(150,145,134,0.2);
}

/* ============================================
   ENTRIES
   ============================================ */
.cl-card-body {
    padding: 6px 8px;
}

.cl-entry {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    margin: 0;
    border-radius: 3px;
    transition: background 0.15s;
    position: relative;
}

.cl-entry:hover {
    background: rgba(255,255,255,0.02);
}

.cl-dot {
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    margin-top: 5px;
    background: #3a3a30;
}

.cl-text {
    flex: 1;
    font-size: 12px;
    color: #989186;
    line-height: 1.5;
    font-family: Verdana, Arial, sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.cl-remove {
    color: #4a3333;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    opacity: 0;
    transition: all 0.15s;
    flex-shrink: 0;
    padding: 0 4px;
}

.cl-entry:hover .cl-remove {
    opacity: 1;
}

.cl-remove:hover {
    color: #cc4444;
}

/* === Empty state === */
.cl-empty {
    text-align: center;
    padding: 40px 20px;
    color: #4a4940;
}

.cl-empty-icon {
    font-size: 36px;
    opacity: 0.3;
    margin-bottom: 10px;
}

.cl-empty p {
    font-size: 13px;
    margin: 0;
}

/* ============================================
   BLIZZLIKE PROGRESS
   ============================================ */
.bp-container {
    background: #0d0d0b;
    border: 1px solid #1a1a15;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Header with overall % */
.bp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid #1a1a15;
}

.bp-title {
    font-family: 'Aparajita', Georgia, serif;
    font-size: 20px;
    font-variant: small-caps;
    color: #81bd24;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(129,189,36,0.3);
}

.bp-overall {
    text-align: center;
    line-height: 1;
}

.bp-overall-pct {
    font-size: 32px;
    font-weight: bold;
    color: #81bd24;
    text-shadow: 0 0 15px rgba(129,189,36,0.4);
    font-family: 'Courier New', monospace;
}

.bp-overall-sign {
    font-size: 16px;
    color: #6fa01e;
    margin-left: 1px;
}

.bp-overall-label {
    font-size: 9px;
    color: #5b5851;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* Bars container */
.bp-bars {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Single progress item */
.bp-item {
    position: relative;
}

.bp-item-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.bp-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    font-size: 10px;
    flex-shrink: 0;
}

.bp-icon-dungeon { background: rgba(129,189,36,0.1); color: #81bd24; border: 1px solid rgba(129,189,36,0.2); }
.bp-icon-raid    { background: rgba(200,60,60,0.1); color: #c84040; border: 1px solid rgba(200,60,60,0.2); }
.bp-icon-quest   { background: rgba(210,180,40,0.1); color: #d2b428; border: 1px solid rgba(210,180,40,0.2); }
.bp-icon-pvp     { background: rgba(180,80,200,0.1); color: #b450c8; border: 1px solid rgba(180,80,200,0.2); }
.bp-icon-class   { background: rgba(100,160,220,0.1); color: #6496d2; border: 1px solid rgba(100,160,220,0.2); }
.bp-icon-event   { background: rgba(210,128,16,0.1); color: #d28010; border: 1px solid rgba(210,128,16,0.2); }
.bp-icon-db      { background: rgba(150,145,134,0.1); color: #989186; border: 1px solid rgba(150,145,134,0.2); }

.bp-item-name {
    flex: 1;
    font-size: 11px;
    color: #706b62;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: Verdana, Arial, sans-serif;
}

.bp-item-pct {
    font-size: 12px;
    font-weight: bold;
    color: #989186;
    font-family: 'Courier New', monospace;
    min-width: 32px;
    text-align: right;
}

/* Track */
.bp-track {
    width: 100%;
    height: 6px;
    background: #0a0a08;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

/* Fill - animated */
.bp-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

/* Glow shine effect */
.bp-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2));
    border-radius: 0 3px 3px 0;
}

/* Colors */
.bp-fill-green {
    background: linear-gradient(90deg, #3a5a10, #81bd24);
    box-shadow: 0 0 8px rgba(129,189,36,0.3);
}

.bp-fill-yellow {
    background: linear-gradient(90deg, #5a4a10, #d2b428);
    box-shadow: 0 0 8px rgba(210,180,40,0.3);
}

.bp-fill-orange {
    background: linear-gradient(90deg, #5a3010, #d28010);
    box-shadow: 0 0 8px rgba(210,128,16,0.3);
}

.bp-fill-red {
    background: linear-gradient(90deg, #4a1010, #c84040);
    box-shadow: 0 0 8px rgba(200,60,60,0.3);
}

.bp-fill-blue {
    background: linear-gradient(90deg, #103050, #6496d2);
    box-shadow: 0 0 8px rgba(100,160,220,0.3);
}

/* ============================================
   INSTANCE & RAID PROGRESS
   ============================================ */
.ip-container {
    background: #0d0d0b;
    border: 1px solid #1a1a15;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.ip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid #1a1a15;
}

.ip-title {
    font-family: 'Aparajita', Georgia, serif;
    font-size: 20px;
    font-variant: small-caps;
    color: #81bd24;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(129,189,36,0.3);
}

.ip-header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Tabs */
.ip-tabs {
    display: flex;
    gap: 4px;
}

.ip-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(16,16,14,0.6);
    border: 1px solid #1a1a15;
    border-radius: 4px;
    color: #5b5851;
    font-size: 12px;
    font-family: Verdana, Arial, sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.ip-tab i {
    font-size: 11px;
}

.ip-tab:hover {
    border-color: #2a3a10;
    color: #706b62;
    background: rgba(16,16,14,0.9);
}

.ip-tab-active {
    background: rgba(129,189,36,0.08);
    border-color: rgba(129,189,36,0.25);
    color: #81bd24;
    text-shadow: 0 0 8px rgba(129,189,36,0.2);
}

.ip-tab-active:hover {
    border-color: rgba(129,189,36,0.35);
    color: #81bd24;
}

.ip-tab-count {
    font-size: 10px;
    font-weight: bold;
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* Panels */
.ip-panel {
    display: none;
}

.ip-panel-active {
    display: block;
}

.ip-overall {
    text-align: center;
    line-height: 1;
}

.ip-overall-pct {
    font-size: 32px;
    font-weight: bold;
    color: #81bd24;
    text-shadow: 0 0 15px rgba(129,189,36,0.4);
    font-family: 'Courier New', monospace;
}

.ip-overall-sign {
    font-size: 16px;
    color: #6fa01e;
    margin-left: 1px;
}

.ip-overall-label {
    font-size: 9px;
    color: #5b5851;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

.ip-body {
    padding: 16px;
}

.ip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ip-instance {
    background: rgba(16,16,14,0.6);
    border: 1px solid #1a1a15;
    border-radius: 4px;
    padding: 10px 12px;
    transition: all 0.2s;
}

.ip-instance:hover {
    border-color: #2a3a10;
    background: rgba(16,16,14,0.9);
}

.ip-raid:hover {
    border-color: #3a1515;
}

.ip-inst-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ip-inst-name {
    font-size: 11px;
    color: #989186;
    font-family: Verdana, Arial, sans-serif;
    font-weight: bold;
}

.ip-inst-pct {
    font-size: 11px;
    font-weight: bold;
    color: #81bd24;
    font-family: 'Courier New', monospace;
}

.ip-raid .ip-inst-pct {
    color: #c84040;
}

.ip-inst-track {
    width: 100%;
    height: 5px;
    background: #0a0a08;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.ip-inst-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.ip-fill-green {
    background: linear-gradient(90deg, #3a5a10, #81bd24);
    box-shadow: 0 0 6px rgba(129,189,36,0.25);
}

.ip-fill-raid {
    background: linear-gradient(90deg, #4a1010, #c84040);
    box-shadow: 0 0 6px rgba(200,60,60,0.25);
}

.ip-inst-bosses {
    font-size: 9px;
    color: #5b5851;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: Verdana, Arial, sans-serif;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 980px) {

    /* Progress bars mobile */
    .bp-header {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        text-align: center;
    }

    .bp-title {
        font-size: 17px;
    }

    .bp-overall-pct {
        font-size: 28px;
    }

    .bp-bars {
        padding: 10px 12px 14px;
        gap: 8px;
    }

    .bp-item-name {
        font-size: 10px;
    }

    .bp-item-pct {
        font-size: 11px;
    }

    .bp-track {
        height: 5px;
    }
    .cl-date-badge {
        font-size: 14px;
        padding: 5px 12px;
    }

    .cl-card-header {
        padding: 8px 10px;
    }

    .cl-card-title {
        font-size: 12px;
    }

    .cl-entry {
        padding: 6px 8px;
        gap: 8px;
    }

    .cl-text {
        font-size: 11px;
    }

    .cl-form {
        flex-direction: column;
    }

    .cl-select, .cl-input {
        width: 100%;
        min-width: 0;
    }

    .cl-btn {
        width: 100%;
        text-align: center;
    }

    .cl-admin-actions {
        flex-direction: column;
    }

    /* Instance progress mobile */
    .ip-header {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
        text-align: center;
    }

    .ip-header-right {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .ip-tabs {
        width: 100%;
    }

    .ip-tab {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 11px;
    }

    .ip-title {
        font-size: 17px;
    }

    .ip-overall-pct {
        font-size: 28px;
    }

    .ip-body {
        padding: 12px;
    }

    .ip-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ip-inst-name {
        font-size: 10px;
    }
}
