/**
 * CSS dla publicznej części wtyczki Pro Frontend Inventory
 */

/* Ogólne zmienne */
:root {
  --primary-color: #2271b1;
  --primary-hover: #135e96;
  --success-color: #28a745;
  --border-color: #dcdcde;
  --text-color: #1d2327;
  --text-secondary: #50575e;
  --light-bg: #f6f7f8;
  --border-radius: 4px;
}

/* Kontenery */
.pro-inventory-container {
  margin: 15px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text-color);
}

/* Nagłówek sekcji */
.pro-inventory-header {
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.pro-inventory-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: var(--text-color);
}

/* Dodatkowe style nagłówka */
.pro-inventory-header p {
  margin: 5px 0 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Komunikat pustego ekwipunku */
.pro-no-inventory {
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #eee;
  margin: 20px 0;
}

.pro-no-inventory p {
  margin: 0 0 15px 0;
  color: var(--text-secondary);
  font-size: 15px;
}

/* Przycisk sklepu w sekcji pustego ekwipunku */
.pro-shop-button {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white !important;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.pro-shop-button:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Klasy specyficzne dla typów przedmiotów */
.item-type-label {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  margin-left: 5px;
}

.item-type-consumable {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.item-type-equipment {
  background-color: #e3f2fd;
  color: #1565c0;
}

.item-type-quest {
  background-color: #fff3e0;
  color: #e65100;
}

.item-type-valuable {
  background-color: #f3e5f5;
  color: #6a1b9a;
}

/* Animacja dla efektów statusowych (zdrowie, energia) */
.status-update {
  animation: statusPulse 2s ease;
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); color: var(--success-color); }
}

/* Style dla indykatorów statystyk postaci (jeśli są wyświetlane) */
.character-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  background-color: var(--light-bg);
  padding: 15px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.character-stat {
  flex: 1;
  text-align: center;
  padding: 10px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

.health-stat .stat-value {
  color: #e53935;
}

.energy-stat .stat-value {
  color: #1e88e5;
}

/* Pasek postępu dla statystyk */
.stat-progress {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  margin-top: 5px;
  overflow: hidden;
}

.stat-progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.health-stat .stat-progress-bar {
  background-color: #e53935;
}

.energy-stat .stat-progress-bar {
  background-color: #1e88e5;
}

/* Style dla powiadomień o użyciu przedmiotu */
.item-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 15px;
  z-index: 9999;
  max-width: 300px;
  display: flex;
  align-items: center;
  transform: translateY(100px);
  opacity: 0;
  animation: slideIn 0.3s forwards, slideOut 0.3s 5s forwards;
}

@keyframes slideIn {
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOut {
  to { transform: translateY(100px); opacity: 0; }
}

.notification-icon {
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(40, 167, 69, 0.1);
}

.notification-icon .dashicons {
  color: var(--success-color);
  font-size: 20px;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.notification-message {
  font-size: 13px;
  color: var(--text-secondary);
}