/**
 * Support Center Styles
 * Professional support ticket system UI
 */

/* Support Hero Section */
.support-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 255, 136, 0.1));
    position: relative;
    z-index: 2;
}

.support-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.support-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.support-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.support-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* User Plan Info */
.user-plan-info {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.plan-info-card {
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.plan-badge-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.plan-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.plan-name {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-name.bronze {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
    color: white;
}

.plan-name.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a2e;
}

.plan-name.platinum {
    background: linear-gradient(135deg, #e5e4e2, #ffffff);
    color: #1a1a2e;
}

.response-time {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.time-icon {
    font-size: 24px;
}

.time-label {
    color: var(--text-secondary);
    font-size: 14px;
}

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

/* Support Container */
.support-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

/* Submit Ticket Section */
.submit-ticket-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
}

.submit-ticket-section h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Ticket Form */
.ticket-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(0, 217, 255, 0.05);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

.char-count {
    color: var(--text-secondary);
    font-size: 12px;
    text-align: right;
}

.btn-submit-ticket {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-submit-ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.btn-submit-ticket:active {
    transform: translateY(0);
}

/* Ticket History Section */
.ticket-history-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 28px;
}

.ticket-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: rgba(0, 217, 255, 0.5);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Ticket Search */
.ticket-search {
    margin-bottom: 25px;
}

.ticket-search input {
    width: 100%;
    background: rgba(0, 217, 255, 0.05);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.ticket-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.1);
}

/* Ticket List */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-card {
    background: rgba(0, 217, 255, 0.05);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ticket-card:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.4);
    transform: translateX(5px);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.ticket-id {
    font-family: monospace;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.ticket-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ticket-status.open {
    background: rgba(0, 217, 255, 0.2);
    color: #00d9ff;
}

.ticket-status.in_progress {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.ticket-status.resolved {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.ticket-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-subject {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.ticket-meta {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    flex-wrap: wrap;
}

.ticket-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* No Tickets */
.no-tickets {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-tickets-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-tickets p {
    font-size: 18px;
    margin-bottom: 10px;
}

.no-tickets small {
    font-size: 14px;
}

/* Ticket Detail Modal */
.ticket-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.ticket-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
    border: 2px solid rgba(0, 217, 255, 0.3);
    position: relative;
    animation: slideUp 0.5s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 77, 77, 0.2);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff4d4d;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 77, 77, 0.3);
    transform: rotate(90deg);
}

.ticket-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.ticket-id-display {
    font-family: monospace;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
}

.ticket-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.ticket-status-badge.open {
    background: rgba(0, 217, 255, 0.2);
    color: #00d9ff;
}

.ticket-status-badge.in_progress {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.ticket-status-badge.resolved {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.ticket-detail-info {
    background: rgba(0, 217, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.ticket-detail-subject {
    margin-bottom: 20px;
}

.ticket-detail-subject h3 {
    color: var(--primary-color);
    font-size: 24px;
}

.ticket-detail-message {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.ticket-detail-message p {
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.ticket-responses {
    margin-bottom: 25px;
}

.response-item {
    background: rgba(0, 217, 255, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.response-from {
    color: var(--primary-color);
    font-weight: 600;
}

.response-time {
    color: var(--text-secondary);
    font-size: 12px;
}

.response-message {
    color: var(--text-primary);
    line-height: 1.6;
}

.ticket-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-close-ticket {
    background: linear-gradient(135deg, #00ff88, #00d9ff);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.success-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
    border: 2px solid rgba(0, 217, 255, 0.3);
    animation: slideUp 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease 0.3s both;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.5);
}

.success-modal-content h2 {
    color: #00d9ff;
    font-size: 32px;
    margin-bottom: 10px;
}

.success-modal-content > p {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
}

.ticket-id-box {
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-id-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.ticket-id-value {
    font-family: monospace;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
}

.response-time-info {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.response-time-info strong {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Footer Styles */
footer {
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 3rem 2rem 1rem !important;
    margin-top: 4rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
}

.footer-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px !important;
    margin-bottom: 2rem !important;
}

.footer-section {
    display: block !important;
}

.footer-section h3 {
    color: #00d9ff !important;
    font-size: 20px !important;
    margin-bottom: 15px !important;
    font-weight: 600 !important;
}

.footer-section p {
    color: #aaa !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
}

.footer-section ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-section ul li {
    margin-bottom: 10px !important;
}

.footer-section ul li a {
    color: #aaa !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer-section ul li a:hover {
    color: #00d9ff !important;
}

.footer-bottom {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-top: 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
    color: #aaa !important;
}

.footer-bottom p {
    margin: 0 !important;
    color: #aaa !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .support-hero {
        padding: 6rem 1rem 3rem;
    }

    .support-hero h1 {
        font-size: 2rem;
    }

    .support-icon {
        font-size: 60px;
    }

    .plan-info-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .support-container {
        padding: 2rem 1rem;
    }

    .submit-ticket-section,
    .ticket-history-section {
        padding: 25px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticket-filters {
        width: 100%;
        overflow-x: auto;
    }

    .ticket-modal-content {
        padding: 25px;
    }

    .ticket-actions {
        flex-direction: column;
    }

    .btn-close-ticket {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}