/**
 * Creative Input Field Styles for WP Smart Short Links
 * Modern, animated, and responsive input designs
 */

/* ========================================
   CREATIVE INPUT FIELDS - MODERN STYLE
   ======================================== */

.wpssl-input-group {
    position: relative;
    margin-bottom: 28px;
}

.wpssl-input-creative,
.wpssl-input,
.cyber-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wpssl-input-creative:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wpssl-input-creative:focus,
.wpssl-input:focus,
.cyber-input:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

/* Floating Label Style */
.wpssl-input-floating {
    position: relative;
    margin-bottom: 32px;
}

.wpssl-input-floating input,
.wpssl-input-floating textarea,
.wpssl-input-floating select {
    width: 100%;
    padding: 20px 16px 8px 16px;
    font-size: 16px;
    color: #1f2937;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    border-radius: 0;
    transition: all 0.3s ease;
    outline: none;
}

.wpssl-input-floating label {
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 16px;
    color: #9ca3af;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpssl-input-floating input:focus,
.wpssl-input-floating textarea:focus,
.wpssl-input-floating select:focus {
    border-bottom-color: #667eea;
    box-shadow: 0 2px 0 0 #667eea;
}

.wpssl-input-floating input:focus + label,
.wpssl-input-floating input:not(:placeholder-shown) + label,
.wpssl-input-floating textarea:focus + label,
.wpssl-input-floating textarea:not(:placeholder-shown) + label,
.wpssl-input-floating select:focus + label,
.wpssl-input-floating select:not([value=""]) + label {
    top: 0;
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
}

/* Glassmorphism Input Style */
.wpssl-input-glass {
    position: relative;
    margin-bottom: 24px;
}

.wpssl-input-glass input,
.wpssl-input-glass textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    outline: none;
}

.wpssl-input-glass input:focus,
.wpssl-input-glass textarea:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.15),
        0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Neon Glow Input (Cyberpunk Style) */
.wpssl-input-neon {
    position: relative;
    margin-bottom: 28px;
}

.wpssl-input-neon input,
.wpssl-input-neon textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    color: #00f0ff;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Courier New', monospace;
}

.wpssl-input-neon input::placeholder,
.wpssl-input-neon textarea::placeholder {
    color: rgba(0, 240, 255, 0.4);
}

.wpssl-input-neon input:focus,
.wpssl-input-neon textarea:focus {
    border-color: #00f0ff;
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.4),
        0 0 40px rgba(0, 240, 255, 0.2),
        inset 0 0 10px rgba(0, 240, 255, 0.1);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

/* Gradient Border Input */
.wpssl-input-gradient {
    position: relative;
    margin-bottom: 28px;
}

.wpssl-input-gradient-wrapper {
    position: relative;
    padding: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.wpssl-input-gradient input,
.wpssl-input-gradient textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    color: #1f2937;
    background: #ffffff;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    outline: none;
}

.wpssl-input-gradient input:focus,
.wpssl-input-gradient textarea:focus {
    background: #f9fafb;
}

.wpssl-input-gradient-wrapper:focus-within {
    padding: 3px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

/* Animated Underline Input */
.wpssl-input-underline {
    position: relative;
    margin-bottom: 32px;
}

.wpssl-input-underline input,
.wpssl-input-underline textarea {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    color: #1f2937;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    outline: none;
}

.wpssl-input-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpssl-input-underline input:focus ~ ::after,
.wpssl-input-underline textarea:focus ~ ::after {
    width: 100%;
}

/* Icon Input Style */
.wpssl-input-icon {
    position: relative;
    margin-bottom: 24px;
}

.wpssl-input-icon input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    font-size: 15px;
    color: #1f2937;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.wpssl-input-icon .icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.wpssl-input-icon input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.wpssl-input-icon input:focus ~ .icon {
    color: #667eea;
}

/* Pill Style Input */
.wpssl-input-pill {
    margin-bottom: 24px;
}

.wpssl-input-pill input,
.wpssl-input-pill textarea {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    color: #1f2937;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
    outline: none;
}

.wpssl-input-pill input:focus,
.wpssl-input-pill textarea:focus {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Success/Error States */
.wpssl-input-success input,
.wpssl-input-success textarea {
    border-color: #10b981 !important;
    background: #ecfdf5;
}

.wpssl-input-success input:focus,
.wpssl-input-success textarea:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
}

.wpssl-input-error input,
.wpssl-input-error textarea {
    border-color: #ef4444 !important;
    background: #fef2f2;
}

.wpssl-input-error input:focus,
.wpssl-input-error textarea:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* Helper Text */
.wpssl-input-helper {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wpssl-input-helper.success {
    color: #10b981;
}

.wpssl-input-helper.error {
    color: #ef4444;
}

/* Input with Button (Action Input) */
.wpssl-input-action {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.wpssl-input-action input {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    color: #1f2937;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.wpssl-input-action button {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wpssl-input-action button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Textarea Specific Styles */
textarea.wpssl-input-creative,
textarea.wpssl-input {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Select Dropdown Style */
select.wpssl-input-creative,
select.wpssl-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

/* Checkbox & Radio Custom Styles */
.wpssl-checkbox-creative,
.wpssl-radio-creative {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wpssl-checkbox-creative:hover,
.wpssl-radio-creative:hover {
    background: #f9fafb;
}

.wpssl-checkbox-creative input[type="checkbox"],
.wpssl-radio-creative input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .wpssl-input-creative,
    .wpssl-input {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .wpssl-input-action {
        flex-direction: column;
    }
    
    .wpssl-input-action button {
        width: 100%;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wpssl-input-creative,
    .wpssl-input {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .wpssl-input-creative:focus,
    .wpssl-input:focus {
        background: #111827;
        border-color: #667eea;
    }
}

/* Animation for Input Focus */
@keyframes inputGlow {
    0%, 100% { box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1); }
    50% { box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.15); }
}

.wpssl-input-creative:focus {
    animation: inputGlow 2s ease-in-out infinite;
}
