/* =============================================
   SPECIAL NAME REQUEST SYSTEM - FPS GAMING THEME
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

/* CSS Variables */
:root {
    /* Primary Colors - Military/Tactical */
    --bg-dark: #0a0c10;
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2128;
    --bg-card-hover: #242c38;
    
    /* Accent Colors - Neon Combat */
    --accent-primary: #00ff88;
    --accent-secondary: #00d4ff;
    --accent-warning: #ffaa00;
    --accent-danger: #ff3366;
    --accent-purple: #bf5fff;
    
    /* Text Colors */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    
    /* Border & Effects */
    --border-color: #30363d;
    --border-glow: rgba(0, 255, 136, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.2);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    --gradient-dark: linear-gradient(180deg, #0d1117 0%, #0a0c10 100%);
    --gradient-card: linear-gradient(145deg, #1c2128 0%, #161b22 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(191, 95, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Grid Pattern Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
.header {
    text-align: center;
    padding: 40px 0;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.logo-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(0, 255, 136, 0.8));
    }
}

.header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    position: relative;
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.header p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 20px;
}

/* Card Component */
.card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: var(--shadow-glow);
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    font-size: 20px;
}

/* Alert Boxes */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    pointer-events: none;
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border-color: var(--accent-warning);
    color: var(--accent-warning);
}

.alert-danger {
    background: rgba(255, 51, 102, 0.1);
    border-color: var(--accent-danger);
    color: var(--accent-danger);
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.alert-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
}

.alert-content strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.alert-content .example {
    font-family: 'Share Tech Mono', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--accent-warning);
    font-size: 14px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.form-label i {
    margin-right: 8px;
    color: var(--accent-primary);
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1), var(--shadow-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled {
    background: var(--bg-secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Name Preview */
.name-preview {
    background: var(--bg-dark);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.name-preview.active {
    border-color: var(--accent-primary);
    border-style: solid;
}

.name-preview-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.name-preview-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    min-height: 48px;
    word-break: break-all;
}

.name-preview-text.empty {
    color: var(--text-muted);
    font-size: 18px;
}

/* Stats Display */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-box {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: var(--accent-primary);
}

.stat-box.warning {
    border-color: var(--accent-warning);
    background: rgba(255, 170, 0, 0.05);
}

.stat-box.danger {
    border-color: var(--accent-danger);
    background: rgba(255, 51, 102, 0.05);
}

.stat-box.success {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 136, 0.05);
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-box.warning .stat-value {
    color: var(--accent-warning);
}

.stat-box.danger .stat-value {
    color: var(--accent-danger);
}

.stat-box.success .stat-value {
    color: var(--accent-primary);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.4);
}

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

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-danger {
    background: linear-gradient(135deg, #ff3366 0%, #ff6b6b 100%);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: var(--bg-dark);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Player Info Display */
.player-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.player-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--bg-dark);
    flex-shrink: 0;
}

.player-details {
    flex: 1;
    min-width: 150px;
}

.player-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

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

.player-meta span {
    margin-right: 15px;
}

.player-meta i {
    color: var(--accent-primary);
    margin-right: 5px;
}

.player-items-center {
    flex: 2;
    text-align: center;
    padding: 20px 25px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
}

.item-info-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--accent-primary);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.item-info-text i {
    color: var(--accent-primary);
    margin-right: 10px;
    font-size: 24px;
}

.item-highlight {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.7);
}

.player-items {
    text-align: right;
    flex-shrink: 0;
}

.item-count {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
}

.item-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
}

.status-pending {
    background: rgba(255, 170, 0, 0.2);
    color: var(--accent-warning);
    border: 1px solid var(--accent-warning);
}

.status-approved {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.status-rejected {
    background: rgba(255, 51, 102, 0.2);
    color: var(--accent-danger);
    border: 1px solid var(--accent-danger);
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background: var(--bg-dark);
}

.table td {
    font-size: 14px;
    color: var(--text-primary);
}

.table tbody tr {
    transition: background 0.3s ease;
}

.table tbody tr:hover {
    background: var(--bg-card-hover);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Request History */
.request-item {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.request-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
}

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

.request-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.request-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.request-detail-item {
    display: flex;
    flex-direction: column;
}

.request-detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.request-detail-value {
    font-size: 14px;
    color: var(--text-primary);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 16, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
}

.loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

.toast-error {
    background: var(--accent-danger);
    color: white;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.footer a {
    color: var(--accent-primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 30px 0;
    }
    
    .header h1 {
        font-size: 22px;
        letter-spacing: 1px;
    }
    
    .card {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stat-box {
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .player-info {
        flex-direction: column;
        text-align: center;
    }
    
    .player-items {
        text-align: center;
    }
    
    .name-preview-text {
        font-size: 24px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 12px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

/* Admin Specific Styles */
.admin-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    margin-bottom: 30px;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.admin-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
}

.admin-menu {
    display: flex;
    gap: 20px;
}

.admin-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.admin-menu a:hover,
.admin-menu a.active {
    color: var(--accent-primary);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 11px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 16, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Get Item Link */
.get-item-link {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.get-item-link .btn {
    background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
    color: var(--bg-dark);
    font-size: 16px;
}

.get-item-link .btn:hover {
    box-shadow: 0 5px 20px rgba(255, 170, 0, 0.4);
    transform: translateY(-2px);
}

.get-item-link .btn i {
    font-size: 18px;
}
