/**
 * Tag Felvételi Form Stílusok
 * Ethernal IllusionKlán
 */

/* ============================================
   RECRUITMENT STEP
   ============================================ */
.recruitment-step {
    padding: 20px;
    min-height: 400px;
}

.recruitment-step h3 {
    color: #f59e0b;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* ============================================
   FORM GROUPS
   ============================================ */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
    font-weight: bold;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(17, 24, 39, 0.8);
    border: 2px solid rgba(75, 85, 99, 0.5);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #6b7280;
}

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

.form-hint {
    margin-top: 15px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
    color: #93c5fd;
    font-size: 14px;
}

.form-hint strong {
    color: #60a5fa;
}

/* ============================================
   AUTOCOMPLETE
   ============================================ */
.autocomplete-input {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: rgba(17, 24, 39, 0.98);
    border: 2px solid rgba(245, 158, 11, 0.5);
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #d1d5db;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.autocomplete-item:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #fff;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.realm-info {
    color: #9ca3af;
    font-size: 12px;
    margin-left: 8px;
}

.autocomplete-no-result {
    padding: 12px 16px;
    color: #9ca3af;
    text-align: center;
    font-style: italic;
}

/* ============================================
   CHARACTER PREVIEW
   ============================================ */
.character-preview {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: rgba(17, 24, 39, 0.6);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    margin-bottom: 30px;
    align-items: center;
}

.character-avatar {
    flex-shrink: 0;
}

.character-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    border: 3px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.character-info {
    flex: 1;
}

.character-name {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 10px currentColor;
}

.character-details {
    color: #d1d5db;
    font-size: 16px;
    margin-bottom: 8px;
}

.character-ilvl,
.character-rio {
    font-size: 18px;
    color: #d1d5db;
    margin-top: 12px;
}

.character-ilvl strong,
.character-rio strong {
    font-size: 22px;
}

.character-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* ============================================
   CONTACT FIELDS
   ============================================ */
.contact-field-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.contact-type {
    width: 150px;
    flex-shrink: 0;
}

.contact-value {
    flex: 1;
}

.btn-remove-contact {
    width: 50px;
    padding: 10px;
    flex-shrink: 0;
}

#add-contact-btn {
    margin-top: 10px;
}

/* ============================================
   CHARACTER COUNTER
   ============================================ */
.character-counter {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    transition: all 0.3s ease;
}

.character-counter.invalid {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    color: #fca5a5;
}

.character-counter.valid {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    color: #6ee7b7;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(245, 158, 11, 0.2);
    border-top-color: #f59e0b;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

.loading-spinner p {
    color: #d1d5db;
    font-size: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.recruitment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.step-indicator {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
}

.footer-buttons {
    display: flex;
    gap: 10px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(75, 85, 99, 0.8);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(107, 114, 128, 0.9);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .character-preview {
        flex-direction: column;
        text-align: center;
    }

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

    .contact-field-group {
        flex-direction: column;
    }

    .contact-type {
        width: 100%;
    }

    .recruitment-footer {
        flex-direction: column;
        gap: 15px;
    }

    .footer-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
