/* Sunčani Krug — Frontend Styles */

:root {
    --sk-primary:   #f59e0b;
    --sk-secondary: #ef4444;
    --sk-dark:      #1f2937;
    --sk-light:     #fef3c7;
    --sk-gray:      #6b7280;
    --sk-success:   #10b981;
    --sk-error:     #ef4444;
    --sk-radius:    12px;
}

.sk-box {
    max-width: 500px;
    margin: 20px auto;
    background: #fff;
    border-radius: var(--sk-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.sk-box h2 {
    background: linear-gradient(135deg, var(--sk-primary), var(--sk-secondary));
    color: #fff;
    margin: 0;
    padding: 25px 30px;
    font-size: 1.4em;
}

.sk-box > div { padding: 25px 30px; }

/* Form */
.sk-form-row { margin-bottom: 15px; }
.sk-form-row input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.sk-form-row input:focus {
    outline: none;
    border-color: var(--sk-primary);
}

/* Button */
.sk-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--sk-primary), var(--sk-secondary));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 5px;
}
.sk-btn:hover   { opacity: 0.9; transform: translateY(-1px); }
.sk-btn:active  { transform: translateY(0); }
.sk-btn-secondary {
    background: #e5e7eb;
    color: var(--sk-dark);
    width: auto;
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Messages */
.sk-success-box {
    background: #d1fae5;
    border-left: 4px solid var(--sk-success);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}
.sk-error-box {
    background: #fee2e2;
    border-left: 4px solid var(--sk-error);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    color: #991b1b;
}

/* Profile header */
.sk-profile-header {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}
.sk-profile-header h2 { background: none; color: var(--sk-dark); padding: 0; font-size: 1.6em; }
.sk-tier-badge {
    display: inline-block;
    background: var(--sk-light);
    border: 2px solid var(--sk-primary);
    color: var(--sk-dark);
    padding: 5px 18px;
    border-radius: 20px;
    font-weight: bold;
    margin-top: 8px;
    font-size: 1.1em;
}

/* Stats */
.sk-stats-row {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}
.sk-stat-card {
    flex: 1;
    background: var(--sk-light);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}
.sk-stat-num { font-size: 2em; font-weight: bold; color: var(--sk-dark); }
.sk-stat-lbl { font-size: 0.8em; color: var(--sk-gray); margin-top: 4px; }

/* Progress bar */
.sk-progress-bar-wrap {
    background: #e5e7eb;
    border-radius: 10px;
    height: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}
.sk-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--sk-primary), var(--sk-secondary));
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* QR section */
.sk-qr-section {
    text-align: center;
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}
.sk-qr-section img {
    border: 3px solid var(--sk-primary);
    padding: 8px;
    border-radius: 10px;
    background: #fff;
}
.sk-qr-code {
    font-family: monospace;
    color: var(--sk-gray);
    font-size: 0.85em;
    margin-top: 8px;
}

/* Tier benefits */
.sk-tier-info { margin-top: 15px; }
.sk-tier-info h3 { color: var(--sk-dark); margin-bottom: 10px; }
.sk-benefit-item {
    padding: 8px 12px;
    background: var(--sk-light);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.95em;
}

/* Loading spinner */
.sk-loading { opacity: 0.6; pointer-events: none; }
.sk-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sk-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes sk-spin { to { transform: rotate(360deg); } }

/* ── TABS ────────────────────────────────────── */
.sk-tabs {
  display: flex;
  border-bottom: 2px solid #f3f4f6;
  margin: 16px 0 0;
}
.sk-tab {
  flex: 1;
  padding: 10px 6px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sk-gray);
  cursor: pointer;
  transition: all 0.2s;
}
.sk-tab.active {
  color: var(--sk-dark);
  border-bottom-color: var(--sk-primary);
}

/* ── TICKET CARDS ─────────────────────────────── */
.sk-ticket-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
}
.sk-ticket-info { flex: 1; }
.sk-ticket-event { font-weight: 600; font-size: 0.9rem; color: var(--sk-dark); }
.sk-ticket-meta  { font-size: 0.78rem; color: var(--sk-gray); margin: 2px 0; }
.sk-ticket-status { font-size: 0.78rem; margin-top: 4px; }
.sk-ticket-qr { text-align: center; flex-shrink: 0; }
.sk-ticket-qr img { border: 2px solid var(--sk-primary); padding: 4px; border-radius: 6px; }

/* ── LINK INLINE ─────────────────────────────── */
.sk-link-inline {
  background: var(--sk-light);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 4px;
}

/* ── REWARDS ──────────────────────────────────── */
.sk-reward-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.sk-reward-img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f3f4f6;
}
.sk-reward-img-placeholder {
  width: 64px; height: 64px;
  background: var(--sk-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; flex-shrink: 0;
}
.sk-reward-info { flex: 1; }
.sk-reward-name { font-weight: 700; font-size: 1rem; color: var(--sk-dark); }
.sk-reward-desc { font-size: 0.82rem; color: var(--sk-gray); margin: 3px 0 8px; }
.sk-reward-cost {
  display: inline-block;
  background: var(--sk-light);
  border: 1px solid var(--sk-primary);
  color: var(--sk-dark);
  font-size: 0.78rem; font-weight: 700;
  padding: 3px 10px; border-radius: 12px; margin-bottom: 8px;
}
.sk-reward-stock { font-size: 0.75rem; color: var(--sk-gray); margin-bottom: 8px; }
.sk-btn-claim {
  background: linear-gradient(135deg, var(--sk-primary), var(--sk-secondary));
  color: #fff; border: none; padding: 8px 16px;
  font-size: 0.82rem; font-weight: 700;
  border-radius: 6px; cursor: pointer; transition: opacity 0.2s;
}
.sk-btn-claim:hover:not(:disabled) { opacity: 0.88; }
.sk-btn-claim:disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }
.sk-claim-card {
  display: flex; gap: 12px; align-items: center;
  padding: 10px; background: #f9fafb;
  border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 8px;
}
.sk-claim-qr img { border: 2px solid var(--sk-primary); padding: 3px; border-radius: 6px; }
.sk-claim-info { flex: 1; }
.sk-claim-name   { font-weight: 600; font-size: 0.88rem; }
.sk-claim-status { font-size: 0.78rem; color: var(--sk-gray); margin-top: 2px; }
