/* ============================================================
   ENKAURA — Support Page Styles
   ============================================================ */

/* Hero */
.support-hero {
  text-align: center;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 3rem;
}
.support-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.support-hero p { max-width: 600px; margin: 0 auto; color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; }

.support-actions {
  display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap;
}
.support-actions .btn { min-width: 180px; }

/* Status Banner (live from admin) */
.support-status-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; padding: 0.85rem 1.5rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 12px; max-width: 600px; margin: 2rem auto 0;
  font-size: 0.9rem; color: var(--text-secondary);
  transition: all 0.3s ease;
}
.support-status-bar:hover {
  border-color: var(--accent-4);
  box-shadow: 0 0 20px rgba(58,180,233,0.1);
}
.support-status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; animation: statusPulse 2s ease-in-out infinite;
}
.support-status-dot.operational { background: #34d399; }
.support-status-dot.degraded { background: #fbbf24; }
.support-status-dot.major { background: #f87171; }
@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Quick Actions Grid */
.support-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.support-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.support-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand-gradient);
  opacity: 0; transition: opacity 0.3s;
}
.support-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-4);
  box-shadow: 0 8px 32px rgba(58,180,233,0.12);
}
.support-card:hover::before { opacity: 1; }
.support-card-icon {
  font-size: 2rem; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.support-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 600; }
.support-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* Ticket Form */
.ticket-section {
  max-width: 700px; margin: 0 auto;
}
.ticket-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.ticket-form::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand-gradient);
}
.ticket-form h2 {
  font-size: 1.4rem; margin-bottom: 0.5rem;
}
.ticket-form > p {
  color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem;
}

.ticket-gate {
  text-align: center; padding: 3rem 1.5rem;
}
.ticket-gate-icon { font-size: 3rem; margin-bottom: 1rem; }
.ticket-gate h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.ticket-gate p { color: var(--text-muted); font-size: 0.9rem; max-width: 400px; margin: 0 auto 1.5rem; line-height: 1.5; }

.ticket-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ticket-field { margin-bottom: 1.25rem; }
.ticket-field label {
  display: block; font-size: 0.82rem; color: var(--text-muted);
  margin-bottom: 0.4rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.ticket-field input,
.ticket-field select,
.ticket-field textarea {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 10px; color: var(--text-primary);
  font-size: 0.92rem; font-family: inherit;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.ticket-field input:focus,
.ticket-field select:focus,
.ticket-field textarea:focus {
  border-color: var(--accent-4);
  box-shadow: 0 0 0 3px rgba(58,180,233,0.1);
}
.ticket-field textarea { resize: vertical; min-height: 120px; }
.ticket-field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.ticket-field select option { background: var(--bg-secondary); color: var(--text-primary); }

.ticket-file-area {
  border: 2px dashed var(--glass-border);
  border-radius: 12px; padding: 1.5rem;
  text-align: center; cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.ticket-file-area:hover {
  border-color: var(--accent-4);
  background: rgba(58,180,233,0.03);
}
.ticket-file-area input { display: none; }
.ticket-file-area svg { width: 32px; height: 32px; color: var(--text-muted); margin-bottom: 0.5rem; }
.ticket-file-area p { font-size: 0.85rem; color: var(--text-muted); }
.ticket-file-name { font-size: 0.82rem; color: var(--accent-4); margin-top: 0.5rem; font-weight: 500; }

.ticket-submit {
  width: 100%; margin-top: 0.5rem;
}
.ticket-success {
  display: none; text-align: center; padding: 2rem;
}
.ticket-success-icon { font-size: 3rem; margin-bottom: 1rem; }
.ticket-success h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.ticket-success p { color: var(--text-muted); font-size: 0.9rem; }

/* SLA Table */
.sla-table-wrap {
  overflow-x: auto; margin-top: 1.5rem;
  border-radius: 14px; border: 1px solid var(--glass-border);
}
.sla-table {
  width: 100%; border-collapse: collapse; font-size: 0.88rem;
}
.sla-table th {
  padding: 0.9rem 1.25rem; text-align: left;
  background: var(--glass-bg); color: var(--text-muted);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 0.78rem; border-bottom: 1px solid var(--glass-border);
}
.sla-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-secondary);
}
.sla-table tr:last-child td { border-bottom: none; }
.sla-table tr:hover td { background: rgba(58,180,233,0.03); }
.sla-badge {
  display: inline-block; padding: 0.2rem 0.65rem;
  border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.sla-badge-starter { background: rgba(52,211,153,0.1); color: #34d399; }
.sla-badge-premium { background: rgba(58,180,233,0.1); color: #3ab4e9; }
.sla-badge-enterprise { background: rgba(168,85,247,0.1); color: #a855f7; }

/* Knowledge Base */
.kb-search {
  display: flex; gap: 0.75rem; max-width: 500px; margin: 0 auto 2.5rem;
}
.kb-search input {
  flex: 1; padding: 0.75rem 1rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 10px; color: var(--text-primary);
  font-size: 0.92rem; font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
.kb-search input:focus { border-color: var(--accent-4); }

.kb-categories {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.kb-category {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px; overflow: hidden;
  transition: border-color 0.3s;
}
.kb-category:hover { border-color: var(--accent-4); }
.kb-category-header {
  padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
  cursor: pointer; transition: background 0.2s;
}
.kb-category-header:hover { background: rgba(58,180,233,0.03); }
.kb-category-header .kb-cat-icon { font-size: 1.3rem; flex-shrink: 0; }
.kb-category-header h3 { font-size: 1rem; font-weight: 600; flex: 1; }
.kb-category-header .kb-count {
  font-size: 0.78rem; color: var(--text-muted);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  padding: 0.15rem 0.55rem; border-radius: 20px;
}
.kb-category-header .kb-arrow {
  color: var(--text-muted); transition: transform 0.3s;
}
.kb-category.open .kb-arrow { transform: rotate(180deg); }
.kb-items { display: none; }
.kb-category.open .kb-items { display: block; }
.kb-item {
  display: block; padding: 0.85rem 1.5rem;
  color: var(--text-secondary); font-size: 0.9rem;
  text-decoration: none; border-bottom: 1px solid var(--glass-border);
  transition: background 0.2s, color 0.2s;
}
.kb-item:last-child { border-bottom: none; }
.kb-item:hover { background: rgba(58,180,233,0.03); color: var(--text-primary); }

/* Remote Session */
.remote-section {
  max-width: 700px; margin: 0 auto;
}
.remote-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 2.5rem; text-align: center;
  position: relative; overflow: hidden;
}
.remote-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #a855f7, #3ab4e9);
}
.remote-icon {
  font-size: 3rem; margin-bottom: 1.25rem;
}
.remote-card h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.remote-card > p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.5rem; line-height: 1.5; max-width: 500px; margin-left: auto; margin-right: auto; }
.remote-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-bottom: 2rem; text-align: center;
}
.remote-step {
  padding: 1rem;
}
.remote-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-gradient); color: #fff;
  font-weight: 700; font-size: 0.9rem; margin-bottom: 0.75rem;
}
.remote-step h4 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.remote-step p { font-size: 0.82rem; color: var(--text-muted); }

.remote-session-input {
  display: flex; gap: 0.75rem; max-width: 400px; margin: 0 auto;
}
.remote-session-input input {
  flex: 1; padding: 0.75rem 1rem;
  background: var(--bg-primary); border: 1px solid var(--glass-border);
  border-radius: 10px; color: var(--text-primary);
  font-family: var(--font-mono); font-size: 0.92rem; outline: none;
  text-align: center; letter-spacing: 0.1em;
  transition: border-color 0.2s;
}
.remote-session-input input:focus { border-color: var(--accent-4); }

/* Contact Methods */
.contact-methods {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.contact-method {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 2rem 2.25rem; min-height: 100px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 18px; text-decoration: none; color: var(--text-primary);
  transition: transform 0.3s, border-color 0.3s;
}
.contact-method:hover {
  transform: translateY(-2px); border-color: var(--accent-4);
}
.contact-method-icon { font-size: 2.2rem; flex-shrink: 0; }
.contact-method-icon--svg { display: flex; align-items: center; justify-content: center; color: var(--text-primary); }
.contact-method-text { font-size: 1rem; }
.contact-method-label { color: var(--text-muted); font-size: 0.85rem; display: block; margin-bottom: 0.25rem; }

/* Responsive */
@media (max-width: 768px) {
  .ticket-row { grid-template-columns: 1fr; }
  .remote-steps { grid-template-columns: 1fr; gap: 0.75rem; }
  .support-grid { grid-template-columns: 1fr; }
  .kb-categories { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; margin-left: -1rem; margin-right: -1rem; gap: 0; }
  .contact-method { padding: 1.75rem 1.5rem; min-height: unset; width: 100%; box-sizing: border-box; border-radius: 0; border-left: none; border-right: none; border-top: none; border-bottom: 1px solid var(--glass-border); }
  .contact-method:first-child { border-top: 1px solid var(--glass-border); }
}

/* RTL */
[dir="rtl"] .ticket-field select { background-position: left 1rem center; padding-left: 2.5rem; padding-right: 1rem; }
[dir="rtl"] .sla-table th, [dir="rtl"] .sla-table td { text-align: right; }
[dir="rtl"] .kb-item { text-align: right; }
[dir="rtl"] .contact-method { flex-direction: row-reverse; text-align: right; }
