/* Builder Page Styles */
.builder-page {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

/* Header Styles */
.builder-header {
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn:hover {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #00ff88, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-title p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.header-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.header-btn.primary {
    background: linear-gradient(135deg, #00ff88, #00bfff);
    color: #000000;
    font-weight: 600;
}

.header-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3);
}

/* Main Content */
.builder-main {
    padding: 2rem 0;
}

.builder-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    padding: 0 2rem;
}

/* Preview Section */
.preview-section {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.preview-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.preview-controls {
    display: flex;
    gap: 0.5rem;
}

.preview-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-btn.active {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
    color: #00ff88;
}

.preview-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.preview-display {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.preview-background {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.preview-background.dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.preview-background.light {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.preview-background.dust2 {
    background: linear-gradient(135deg, #8b7355 0%, #a68b5b 100%);
}

.preview-background.haven {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.crosshair-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.target-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.target-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.preview-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-stats {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #00ff88;
}

.code-section h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.code-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-display code {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #00ff88;
    background: none;
    padding: 0;
    word-break: break-all;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.copy-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-1px);
}

/* Controls Section */
.controls-section {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    height: fit-content;
}

.controls-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.controls-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    width: 100%;
    padding: 0.9rem 0.8rem;
    border: 1px solid transparent;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.tab-btn.active {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.tab-btn:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.tab-btn:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.tab-btn:nth-child(5) {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.tab-content.active {
    display: flex;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-group h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.control-grid {
    display: grid;
    gap: 1rem;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-item label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
}

/* Color Controls */
.color-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-control input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.color-presets {
    display: flex;
    gap: 0.5rem;
}

.color-preset {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.color-preset:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.color-preset.active {
    border-color: #00ff88;
}

/* Checkbox Controls */
.checkbox-control {
    position: relative;
    display: inline-block;
}

.checkbox-control input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-control input:checked ~ .checkmark {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-control input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-control .checkmark:after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #00ff88;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Slider Controls */
.slider-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-control input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
}

.slider-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ff88;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    transition: all 0.3s ease;
}

.slider-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.7);
}

.slider-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #00ff88;
    min-width: 40px;
    text-align: center;
}

/* Preset Styles */
.preset-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.preset-category h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.preset-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.preset-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.preset-preview {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preset-crosshair {
    position: relative;
}

.preset-crosshair.minimal::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background: #00ff88;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.preset-crosshair.minimal::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #00ff88;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.preset-crosshair.classic::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 24px;
    background: #00ff88;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px #000000;
}

.preset-crosshair.classic::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background: #00ff88;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px #000000;
}

.preset-crosshair.dot::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.preset-crosshair.thick::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 20px;
    background: #00ff88;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.preset-crosshair.thick::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 4px;
    background: #00ff88;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.preset-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #ffffff;
}

.preset-info p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

/* Pro Player Styles */
.pro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.pro-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pro-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.pro-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.pro-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-info {
    flex: 1;
}

.pro-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #ffffff;
}

.pro-info p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.pro-crosshair-preview {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin-top: 0.5rem;
    position: relative;
}

/* Action Buttons */
.controls-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.action-btn.primary {
    background: linear-gradient(135deg, #00ff88, #00bfff);
    color: #000000;
    font-weight: 600;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.modal-content {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffffff;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.animation-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: inherit;
    cursor: pointer;
}

.animation-select:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.animation-select option {
    background: rgba(26, 26, 26, 0.95);
    color: #ffffff;
    padding: 0.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: rgba(0, 255, 136, 0.5);
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-btn.primary {
    background: linear-gradient(135deg, #00ff88, #00bfff);
    color: #000000;
    font-weight: 600;
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

/* Weapon Selector Styles */
.weapon-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
}

.weapon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.weapon-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.weapon-card.active {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.weapon-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.3s ease;
}

.weapon-card:hover .weapon-icon,
.weapon-card.active .weapon-icon {
    color: #00ff88;
}

.weapon-card span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #ffffff;
}

.weapon-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
}

.weapon-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.weapon-details p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
}

.weapon-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.6rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    font-size: 0.8rem;
}

.stat-label {
    color: #6b7280;
    font-weight: 500;
}

.stat-value {
    color: #00ff88;
    font-weight: 600;
}

/* Crosshair Animation Styles */
.crosshair-animation {
    position: relative;
}

.crosshair-animation.pulse {
    animation: crosshair-pulse 2s infinite;
}

.crosshair-animation.glow {
    animation: crosshair-glow 3s infinite;
}

.crosshair-animation.breathing {
    animation: crosshair-breathing 4s infinite;
}

@keyframes crosshair-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

@keyframes crosshair-breathing {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(1); }
    75% { transform: scale(0.95); }
}

.crosshair-animation.bounce {
    animation: crosshair-bounce 1s infinite;
}

.crosshair-animation.rotate {
    animation: crosshair-rotate 3s infinite linear;
}

@keyframes crosshair-bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-2px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(2px); }
}

@keyframes crosshair-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Weapon Specific Crosshair Styles */
.weapon-crosshair-vandal {
    filter: drop-shadow(0 0 3px rgba(255, 0, 0, 0.5));
}

.weapon-crosshair-phantom {
    filter: drop-shadow(0 0 3px rgba(0, 0, 255, 0.5));
}

.weapon-crosshair-operator {
    filter: drop-shadow(0 0 5px rgba(255, 255, 0, 0.5));
}

.weapon-crosshair-spectre {
    filter: drop-shadow(0 0 2px rgba(255, 0, 255, 0.5));
}

.weapon-crosshair-sheriff {
    filter: drop-shadow(0 0 2px rgba(0, 255, 255, 0.5));
}

/* Advanced Effect Styles */
.advanced-effects {
    position: relative;
}

.advanced-effects.bloom::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: inherit;
    filter: blur(3px);
    opacity: 0.3;
    z-index: -1;
}

.advanced-effects.chromatic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2px;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: hue-rotate(180deg);
    opacity: 0.2;
    z-index: -1;
}

.advanced-effects.distortion {
    filter: blur(0.5px) contrast(1.2);
}

/* Aim Trainer Styles */
.aim-trainer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    max-width: 100%;
    overflow: hidden;
}

.trainer-header {
    text-align: center;
}

.trainer-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.trainer-header p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.trainer-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 100%;
    overflow: hidden;
}

.trainer-mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 120px;
    max-width: 200px;
    margin: 0 auto;
}

.trainer-mode-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.trainer-mode-card.active {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.mode-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.3s ease;
}

.trainer-mode-card:hover .mode-icon,
.trainer-mode-card.active .mode-icon {
    color: #00ff88;
}

.trainer-mode-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.trainer-mode-card p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.trainer-settings {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 100%;
    overflow: hidden;
}

.trainer-settings h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

.trainer-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 100%;
    overflow: hidden;
}

.trainer-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trainer-control label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
}

.trainer-control input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
}

.trainer-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ff88;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.trainer-control select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: inherit;
    cursor: pointer;
}

.trainer-control select:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.trainer-control span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #00ff88;
    text-align: center;
}

.trainer-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.trainer-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.trainer-btn.primary {
    background: linear-gradient(135deg, #00ff88, #00bfff);
    color: #000000;
}

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

.trainer-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trainer-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.trainer-results {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.trainer-results h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #ffffff;
    text-align: center;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.result-stat .stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.result-stat .stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #00ff88;
}

.crosshair-feedback {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.crosshair-feedback h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #00ff88;
}

.crosshair-feedback p {
    font-size: 0.9rem;
    color: #ffffff;
    margin: 0;
}

/* Aim Training Game Styles */
.aim-training-game {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    z-index: 2000;
    display: none;
    overflow: hidden;
}

/* Aim Training Game Preview Styles */
.aim-training-game-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.aim-training-game-preview.active {
    display: flex;
}

.aim-training-game.active {
    display: flex;
    flex-direction: column;
}

.training-hud {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
}

.training-hud-preview {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 95%;
}

.hud-item {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #ffffff;
    font-weight: 600;
}

.training-hud-preview .hud-item {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.7rem;
}

.training-area {
    flex: 1;
    position: relative;
    cursor: crosshair;
}

.training-area-preview {
    flex: 1;
    position: relative;
    cursor: crosshair;
    margin-top: 50px;
    margin-bottom: 40px;
}

.training-target {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #ff0000 0%, #ff4444 100%);
    border-radius: 50%;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: target-appear 0.3s ease;
}

.training-target:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.training-target.hit {
    background: radial-gradient(circle, #00ff00 0%, #44ff44 100%);
    animation: target-hit 0.3s ease;
}

@keyframes target-appear {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes target-hit {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(0); opacity: 0; }
}

.training-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}

.training-crosshair-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}

.training-controls-preview {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.trainer-btn-small {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.trainer-btn-small.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trainer-btn-small.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.training-end-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #ffffff;
    display: none;
}

.training-end-screen.active {
    display: block;
}

.training-end-screen h3 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: #00ff88;
}

.end-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.end-stat {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

.end-stat .stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.end-stat .stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00ff88;
}

.end-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.end-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.end-btn.primary {
    background: linear-gradient(135deg, #00ff88, #00bfff);
    color: #000000;
}

.end-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .builder-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .preset-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .builder-container {
        padding: 0 1rem;
    }
    
    .preview-section,
    .controls-section {
        padding: 1.5rem;
    }
    
    .controls-tabs {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 0.4rem;
        padding: 0.5rem;
    }
    
    .tab-btn {
        width: 100%;
        min-width: 0;
        font-size: 0.8rem;
        padding: 0.6rem 0.5rem;
    }
    
    .tab-btn:nth-child(4) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    
    .tab-btn:nth-child(5) {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
    
    .preset-grid {
        grid-template-columns: 1fr;
    }
    
    .controls-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .trainer-modes {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .trainer-mode-card {
        padding: 1rem;
        gap: 0.5rem;
        min-height: 100px;
    }
    
    .trainer-controls {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .trainer-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .trainer-btn {
        width: 100%;
        padding: 0.8rem 1rem;
    }
    
    .training-hud {
        gap: 0.5rem;
        max-width: 95%;
        font-size: 0.9rem;
    }
    
    .hud-item {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-title h1 {
        font-size: 1.25rem;
    }
    
    .preview-display {
        height: 300px;
    }
    
    .info-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-item {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .trainer-modes {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .trainer-mode-card {
        padding: 0.8rem;
        gap: 0.3rem;
        min-height: 80px;
        max-width: 100%;
    }
    
    .mode-icon {
        width: 40px;
        height: 40px;
    }
    
    .trainer-mode-card h4 {
        font-size: 0.9rem;
    }
    
    .trainer-mode-card p {
        font-size: 0.8rem;
    }
    
    .trainer-controls {
        gap: 0.5rem;
    }
    
    .trainer-control {
        gap: 0.3rem;
    }
    
    .trainer-control label {
        font-size: 0.8rem;
    }
    
    .trainer-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .training-hud {
        gap: 0.3rem;
        flex-wrap: wrap;
        max-width: 98%;
    }
    
    .hud-item {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
        min-width: 0;
        flex: 1;
    }
} 