/**
 * WooSpoke Support Tickets - Public/Frontend Styles
 * Matching WooSpoke theme design
 */

:root {
    --wsst-accent: #c9a227;
    --wsst-accent-hover: #d4b445;
    --wsst-bg-dark: #0a0a0f;
    --wsst-bg-card: #111118;
    --wsst-text: #e0e0e0;
    --wsst-text-secondary: #a0a0a0;
    --wsst-border: rgba(255, 255, 255, 0.1);
}

.wsst-public-wrap {
    color: var(--wsst-text);
}

/* Header */
.wsst-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.wsst-header h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
}

/* Buttons */
.wsst-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.wsst-btn-primary {
    background: var(--wsst-accent);
    color: #000;
}

.wsst-btn-primary:hover {
    background: var(--wsst-accent-hover);
    color: #000;
    transform: translateY(-2px);
}

.wsst-btn-secondary {
    background: transparent;
    color: var(--wsst-text-secondary);
    border: 1px solid var(--wsst-border);
}

.wsst-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.wsst-btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* Badges */
.wsst-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Status Badges */
.wsst-status-open { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.wsst-status-in_progress { background: rgba(0, 123, 255, 0.2); color: #4dabf7; }
.wsst-status-awaiting_reply { background: rgba(40, 167, 69, 0.2); color: #51cf66; }
.wsst-status-resolved { background: rgba(23, 162, 184, 0.2); color: #22b8cf; }
.wsst-status-closed { background: rgba(108, 117, 125, 0.2); color: #868e96; }

/* Priority Badges */
.wsst-priority-low { background: rgba(108, 117, 125, 0.2); color: #868e96; }
.wsst-priority-medium { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.wsst-priority-high { background: rgba(253, 126, 20, 0.2); color: #fd7e14; }
.wsst-priority-urgent { background: rgba(220, 53, 69, 0.3); color: #ff6b6b; }

/* Category Badges */
.wsst-category-bug_report { background: rgba(220, 53, 69, 0.2); color: #ff6b6b; }
.wsst-category-feature_request { background: rgba(40, 167, 69, 0.2); color: #51cf66; }
.wsst-category-general_question { background: rgba(0, 123, 255, 0.2); color: #4dabf7; }
.wsst-category-installation_help { background: rgba(111, 66, 193, 0.2); color: #b197fc; }

/* Tickets List */
.wsst-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wsst-ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--wsst-bg-card);
    border: 1px solid var(--wsst-border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.wsst-ticket-item:hover {
    border-color: var(--wsst-accent);
    transform: translateX(4px);
}

.wsst-ticket-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wsst-ticket-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--wsst-accent);
    background: rgba(201, 162, 39, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

.wsst-ticket-subject {
    margin: 0 0 8px;
    font-size: 16px;
}

.wsst-ticket-subject a {
    color: #fff;
    text-decoration: none;
}

.wsst-ticket-subject a:hover {
    color: var(--wsst-accent);
}

.wsst-ticket-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.wsst-ticket-date {
    color: var(--wsst-text-secondary);
    font-size: 12px;
}

/* Empty State */
.wsst-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--wsst-bg-card);
    border: 1px dashed var(--wsst-border);
    border-radius: 12px;
}

.wsst-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.wsst-empty-state h3 {
    margin: 0 0 10px;
    color: #fff;
}

.wsst-empty-state p {
    color: var(--wsst-text-secondary);
    margin-bottom: 20px;
}

/* Notice */
.wsst-notice {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wsst-notice-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.wsst-notice-warning p { color: #ffc107; margin: 0 0 10px; }
.wsst-notice-warning p:last-child { margin: 0; }
.wsst-notice-warning a { color: var(--wsst-accent); }

.wsst-notice-info {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.wsst-notice-info p { color: #4dabf7; margin: 0; }

/* Form Styles */
.wsst-ticket-form {
    background: var(--wsst-bg-card);
    border: 1px solid var(--wsst-border);
    border-radius: 12px;
    padding: 30px;
}

.wsst-form-group {
    margin-bottom: 20px;
}

.wsst-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--wsst-text);
    font-weight: 500;
}

.wsst-form-group .required {
    color: #ff6b6b;
}

.wsst-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--wsst-bg-dark);
    border: 1px solid var(--wsst-border);
    border-radius: 8px;
    color: var(--wsst-text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.wsst-input:focus {
    outline: none;
    border-color: var(--wsst-accent);
}

.wsst-input::placeholder {
    color: var(--wsst-text-secondary);
}

.wsst-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wsst-file-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--wsst-text-secondary);
}

.wsst-form-actions {
    margin-top: 30px;
}

/* Ticket Info Bar */
.wsst-ticket-info-bar {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: var(--wsst-bg-card);
    border: 1px solid var(--wsst-border);
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wsst-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wsst-info-label {
    font-size: 12px;
    color: var(--wsst-text-secondary);
    text-transform: uppercase;
}

/* Messages */
.wsst-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.wsst-message {
    padding: 20px;
    background: var(--wsst-bg-card);
    border: 1px solid var(--wsst-border);
    border-radius: 12px;
}

.wsst-message-admin {
    border-left: 3px solid var(--wsst-accent);
}

.wsst-message-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.wsst-message-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.wsst-message-meta strong {
    color: #fff;
}

.wsst-support-badge {
    display: inline-block;
    background: var(--wsst-accent);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

.wsst-message-time {
    display: block;
    font-size: 12px;
    color: var(--wsst-text-secondary);
}

.wsst-message-subject h3 {
    margin: 0 0 15px;
    color: #fff;
}

.wsst-message-body {
    color: var(--wsst-text);
    line-height: 1.7;
}

.wsst-message-body p { margin: 0 0 10px; }
.wsst-message-body p:last-child { margin: 0; }

.wsst-message-attachments {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wsst-attachment-thumb img {
    max-width: 120px;
    max-height: 80px;
    border-radius: 6px;
    border: 1px solid var(--wsst-border);
}

/* Reply Form */
.wsst-reply-form {
    background: var(--wsst-bg-card);
    border: 1px solid var(--wsst-border);
    border-radius: 12px;
    padding: 25px;
}

.wsst-reply-form h3 {
    margin: 0 0 20px;
    color: #fff;
}

/* No License */
.wsst-no-license {
    text-align: center;
    padding: 60px 20px;
    background: var(--wsst-bg-card);
    border: 1px solid var(--wsst-border);
    border-radius: 12px;
}

.wsst-no-license-icon { font-size: 48px; margin-bottom: 20px; }
.wsst-no-license h3 { margin: 0 0 15px; color: #fff; }
.wsst-no-license p { color: var(--wsst-text-secondary); margin: 0 0 10px; }
.wsst-no-license-actions { margin-top: 30px; }
.wsst-no-license-actions p { color: var(--wsst-text); margin-bottom: 15px; }

/* Responsive */
@media (max-width: 768px) {
    .wsst-header { flex-direction: column; gap: 15px; text-align: center; }
    .wsst-form-row { grid-template-columns: 1fr; }
    .wsst-ticket-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .wsst-ticket-info-bar { flex-direction: column; gap: 15px; }
}
