/* Skills Panel Styles */
.skills-panel {
    padding: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Skill Card Styles */
.skill-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.skill-card.available {
    border-color: rgba(99, 179, 237, 0.6);
    background: rgba(99, 179, 237, 0.1);
}

.skill-card.locked {
    border-color: rgba(245, 101, 101, 0.6);
    background: rgba(245, 101, 101, 0.1);
    opacity: 0.7;
}

.skill-card.learned {
    border-color: rgba(72, 187, 120, 0.6);
    background: rgba(72, 187, 120, 0.1);
}

/* Skill Card Header */
.skill-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.skill-card-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    flex: 1;
    margin: 0;
    line-height: 1.2;
}

.skill-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.skill-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-card-icon .fallback-icon {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
}

/* Skill Card Body */
.skill-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.skill-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.skill-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.skill-stat-label {
    font-weight: 500;
}

.skill-stat-value {
    font-weight: 600;
}

/* Resource Type Colors */
.resource-rage {
    color: #ef4444 !important;
}

.resource-life {
    color: #ef4444 !important;
}

.resource-energy {
    color: #f59e0b !important;
}

.resource-mana {
    color: #3b82f6 !important;
}

/* GCD Indicator */
.gcd-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gcd-indicator.yes {
    color: #f59e0b;
}

.gcd-indicator.no {
    color: #6b7280;
}

/* Skill Card Footer */
.skill-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-rank-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.skill-button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-top: auto;
}

.skill-button.available {
    background: #63b3ed;
    color: white;
}

.skill-button.available:hover {
    background: #4299e1;
    transform: translateY(-2px);
}

.skill-button.locked {
    background: #f56565;
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

.skill-button.learned {
    background: #48bb78;
    color: white;
    cursor: default;
}

.skill-button.learned:hover {
    background: #38a169;
}

/* Requirements */
.skill-requirements-locked {
    margin-top: 10px;
}

.skill-requirements-locked span {
    background: rgba(245, 101, 101, 0.2);
    color: #f56565;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(245, 101, 101, 0.3);
}

.skill-autocast-requirements {
    margin-top: 8px;
}

.skill-autocast-requirements span {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Autocast Priority Section */
.autocast-priority-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.autocast-priority-section:hover {
    border-color: rgba(99, 179, 237, 0.6);
    background: rgba(99, 179, 237, 0.1);
}

.autocast-priority-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.priority-list {
    margin-bottom: 15px;
}

.priority-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.priority-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.priority-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #63b3ed 0%, #3182ce 100%);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.priority-skill-info {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
}

.priority-skill-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.priority-skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.priority-skill-icon .fallback-icon {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
}

.skill-name {
    flex: 1;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.priority-controls {
    display: flex;
    gap: 4px;
}

.priority-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ffffff;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.priority-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #63b3ed 0%, #3182ce 100%);
    border-color: rgba(99, 179, 237, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.priority-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.priority-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.priority-action-btn {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.priority-action-btn.primary {
    background: linear-gradient(135deg, #63b3ed 0%, #3182ce 100%);
    color: white;
    border-color: rgba(99, 179, 237, 0.6);
}

.priority-action-btn.primary:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    border-color: rgba(99, 179, 237, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.priority-action-btn.secondary {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.priority-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Currency styling */
.currency-gold {
    color: #ffd700;
    font-weight: 600;
}

.currency-silver {
    color: #c0c0c0;
    font-weight: 500;
}

.currency-copper {
    color: #cd7f32;
    font-weight: 500;
}

.currency-separator {
    color: #ffffff;
    font-weight: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .skill-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .priority-skill-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .priority-skill-icon {
        width: 20px;
        height: 20px;
    }
}


.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:16px;
}

.skill-card{
  position:relative;
  padding:14px 14px 12px 14px;
  border-radius:10px;
  background:rgba(18,22,30,.75);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 6px 16px rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
}

.skill-card.available{ border-color:rgba(99,179,237,.45); box-shadow:0 6px 18px rgba(49,130,206,.25); }
.skill-card.locked{ opacity:.85; }
.skill-card.learned{ border-color:rgba(72,187,120,.45); }

.skill-icon-abs{
  position:absolute; top:10px; right:10px;
  width:40px; height:40px; border-radius:6px; overflow:hidden;
  border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.06);
}
.skill-icon-abs .skill-icon{ width:100%; height:100%; object-fit:cover; image-rendering:auto; }

.skill-head-compact{
  padding-right:56px; /* leave space for the icon */
  display:flex; align-items:center; gap:8px; margin-bottom:6px;
}
.skill-title{ color:#fff; font-size:16px; line-height:1.1; margin:0; font-weight:700; }
.rank-badge{
  font-size:11px; padding:2px 6px; border-radius:9999px;
  background:rgba(255,255,255,.08); color:#e5e7eb; border:1px solid rgba(255,255,255,.12);
}

.chip-row{ display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 8px; }
.chip{
  font-size:11px; line-height:1; padding:6px 8px; border-radius:7px;
  background:rgba(255,255,255,.06); color:#e5e7eb; border:1px solid rgba(255,255,255,.12);
}
.chip-cd{ background:rgba(99,179,237,.12); border-color:rgba(99,179,237,.35); color:#cfe9ff; }
.chip-mana{ background:rgba(59,130,246,.12); border-color:rgba(59,130,246,.35); }
.chip-energy{ background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.35); }
.chip-rage,.chip-life{ background:rgba(239,68,68,.12); border-color:rgba(239,68,68,.35); }
.chip-gcd-yes{ background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.35); }
.chip-gcd-no{ background:rgba(156,163,175,.12); border-color:rgba(156,163,175,.35); }

.skill-desc{
  color:rgba(255,255,255,.9); font-size:13px; line-height:1.35;
  margin:6px 0 10px;
}

/* reuse your existing .skill-button styles; tighten spacing */
.skill-buttons{ display:grid; grid-template-columns:1fr; gap:8px; margin-top:8px; }
.skill-button{ padding:9px 10px; border-radius:9px; font-size:13px; }
