/* 
   Character Info Plugin Styles
   WebEngine CMS (Independent Assets)
*/

.ci-profile-card {
    font-family: 'Inter', sans-serif;
    margin-top: 15px;
    position: relative;
    padding: 0 15px;
    /* Lateral padding */
}

.ci-profile-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

.ci-profile-info-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ci-profile-equip-column {
    width: 100%;
}

@media (max-width: 768px) {
    .ci-profile-body {
        flex-direction: column;
        align-items: center;
    }

    .ci-profile-info-column,
    .ci-profile-equip-column {
        width: 100%;
        flex: unset;
    }
}


.ci-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.ci-header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.ci-header-guild-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ci-header-guild-badge:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.ci-header-guild-badge img {
    width: 28px;
    height: 28px;
    border-radius: 3px;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.ci-header-guild-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.ci-header-guild-name a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ci-header-guild-name a:hover {
    color: #00c6ff !important;
}

@media (max-width: 768px) {
    .ci-header-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}


.ci-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ci-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    background: #121218;
}

.ci-player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ci-player-name {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ci-player-class {
    font-size: 14px;
    font-weight: 500;
    color: #00c6ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ci-header-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.ci-h-stat {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-weight: 500;
}

.ci-h-stat strong {
    color: #00c6ff;
    font-weight: 700;
}


/* Status Badge */
.ci-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.ci-status-online {
    background: rgba(0, 255, 135, 0.15);
    color: #00ff87;
    border: 1px solid rgba(0, 255, 135, 0.3);
}

.ci-status-offline {
    background: rgba(255, 255, 255, 0.05);
    color: #aaaaaa;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ci-player-name-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ci-status-dot-only {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    margin-top: 2px;
}

.ci-status-dot-only.ci-status-online {
    background-color: #00ff87;
    box-shadow: 0 0 10px #00ff87;
    animation: ci-blink 1.5s infinite ease-in-out;
}

.ci-status-dot-only.ci-status-offline {
    background-color: #aaaaaa;
}

.ci-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.ci-status-online .ci-status-dot {
    background-color: #00ff87;
    box-shadow: 0 0 10px #00ff87;
    animation: ci-blink 1.5s infinite ease-in-out;
}

.ci-status-offline .ci-status-dot {
    background-color: #aaaaaa;
}

@keyframes ci-blink {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Grid Layout */
.ci-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}

.ci-stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s ease;
}

.ci-stat-box:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.ci-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #888899;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ci-stat-val {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.ci-guild-val {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px !important;
    font-weight: 600;
}

.ci-guild-val img {
    border-radius: 2px;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Core Attributes Section */
.ci-attributes-section {
    position: relative;
}

.ci-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #aaaaaa;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-left: 3px solid #00c6ff;
    padding-left: 8px;
}

.ci-equip-attrs-container {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.ci-equip-attrs-container .ci-equipment-section {
    flex: 0 0 320px;
}

.ci-equip-attrs-container .ci-attributes-section {
    flex: 1;
    max-width: 320px;
    width: 100%;
}

@media (max-width: 768px) {
    .ci-equip-attrs-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .ci-equip-attrs-container .ci-equipment-section,
    .ci-equip-attrs-container .ci-attributes-section {
        width: 100%;
        max-width: 320px;
        flex: unset;
    }
}

.ci-attributes-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ci-attribute-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    border-left: 3px solid #333344;
    transition: border-color 0.2s ease;
}

.ci-attribute-row:hover {
    border-left-color: #00c6ff;
}

.ci-attr-name {
    font-size: 12px;
    color: #bbbbcc;
    font-weight: 500;
}

.ci-attr-val {
    font-size: 14px;
    color: #ffffff;
    font-weight: 700;
}

/* Equipment Section */
.ci-equipment-section {
    /*     background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 18px; */
    margin-top: 0;
    position: relative;
}

.ci-equipment-window {
    width: 320px;
    height: 294px;
    background-image: url('../img/Character_Equipment.jpg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* Equipment Slot (Absolutely Positioned) */
.ci-equip-slot {
    position: absolute;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.ci-equip-slot.ci-has-item {
    cursor: help;
}

/* Specific Slot Positions relative to the 200x184 design size */
.ci-equip-slot.ci-slot-8 {
    left: 1%;
    top: 1.08%;
    width: 24%;
    height: 26.08%;
}

/* Pet */
.ci-equip-slot.ci-slot-2 {
    left: 38%;
    top: 1.08%;
    width: 24%;
    height: 26.08%;
}

/* Helm */
.ci-equip-slot.ci-slot-7 {
    left: 63%;
    top: 1.08%;
    width: 36%;
    height: 26.08%;
}

/* Wings */

.ci-equip-slot.ci-slot-0 {
    left: 1%;
    top: 30.43%;
    width: 24%;
    height: 39.13%;
}

/* Weapon */
.ci-equip-slot.ci-slot-9 {
    left: 25%;
    top: 30.43%;
    width: 11%;
    height: 11.95%;
}

/* Pendant */
.ci-equip-slot.ci-slot-3 {
    left: 38%;
    top: 30.43%;
    width: 24%;
    height: 39.13%;
}

/* Armor */
.ci-equip-slot.ci-slot-1 {
    left: 75%;
    top: 30.43%;
    width: 24%;
    height: 39.13%;
}

/* Shield */

.ci-equip-slot.ci-slot-5 {
    left: 1%;
    top: 72.82%;
    width: 24%;
    height: 26.08%;
}

/* Gloves */
.ci-equip-slot.ci-slot-10 {
    left: 25%;
    top: 72.82%;
    width: 11%;
    height: 11.95%;
}

/* Ring 1 */
.ci-equip-slot.ci-slot-4 {
    left: 38%;
    top: 72.82%;
    width: 24%;
    height: 26.08%;
}

/* Pants */
.ci-equip-slot.ci-slot-11 {
    left: 63%;
    top: 72.82%;
    width: 11%;
    height: 11.95%;
}

/* Ring 2 */
.ci-equip-slot.ci-slot-6 {
    left: 75%;
    top: 72.82%;
    width: 24%;
    height: 26.08%;
}

/* Boots */

/* Item Quality Border Colors */
.ci-equip-slot.item-normal.ci-has-item {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

.ci-equip-slot.item-excellent.ci-has-item {
    border-color: rgba(0, 255, 135, 0.65);
    background: rgba(0, 255, 135, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 255, 135, 0.15);
}

.ci-equip-slot.item-ancient.ci-has-item {
    border-color: rgba(255, 180, 0, 0.7);
    background: rgba(255, 180, 0, 0.05);
    box-shadow: inset 0 0 10px rgba(255, 180, 0, 0.15);
}

.ci-equip-slot.item-socket.ci-has-item {
    border-color: rgba(180, 0, 255, 0.7);
    background: rgba(180, 0, 255, 0.05);
    box-shadow: inset 0 0 10px rgba(180, 0, 255, 0.15);
}

.ci-equip-slot.item-wing.ci-has-item {
    border-color: rgba(0, 198, 255, 0.7);
    background: rgba(0, 198, 255, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 198, 255, 0.15);
}

.ci-equip-slot.ci-has-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.03);
    z-index: 5;
}

/* Item Image wrapper */
.ci-item-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-sizing: border-box;
}

.ci-item-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* Tooltip Container */
.ci-item-tooltip {
    display: none;
    position: fixed;
    z-index: 999999;
    width: 250px;
    background: rgba(10, 10, 16, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    pointer-events: none;
    font-size: 12px;
    color: #f0f0f5;
    line-height: 1.5;
}

.ci-equip-slot.ci-has-item:hover .ci-item-tooltip {
    display: block;
}

/* Tooltip Parts */
.tooltip-header {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.tooltip-line {
    margin-bottom: 3px;
}

.tooltip-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* Item Option Colors */
.text-blue {
    color: #00a2ff;
}

.text-gray {
    color: #8a8a9a;
}

.text-excellent {
    color: #00ff87 !important;
}

.text-ancient {
    color: #ffb400 !important;
}

.text-socket {
    color: #b400ff !important;
}

.text-socket-opt {
    color: #d070ff !important;
}

.text-harmony {
    color: #f2cb05 !important;
}

.text-purple {
    color: #cf00cf !important;
}

.text-wing {
    color: #00c6ff !important;
}