/* ===================================
   AI Job Finder - Styles
   Neon Blue Theme matching JobTermin
   =================================== */

/* ===================================
   Main Container
   =================================== */

.ai-job-finder-main {
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 25%, #0f1425 50%, #1a2847 75%, #0d1929 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.ai-job-finder-main::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 50rem;
    height: 50rem;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(6rem);
    animation: floatBlobCyan 12s ease-in-out infinite;
    z-index: 0;
}

.ai-job-finder-main::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -5%;
    width: 40rem;
    height: 40rem;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(5rem);
    animation: floatBlobPurple 15s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes floatBlobCyan {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, 80px) scale(1.2); }
}

@keyframes floatBlobPurple {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, -60px) scale(1.15); }
}

/* ===================================
   Hero Section with Neural Avatar
   =================================== */

.ai-hero-section {
    padding: 6rem 1rem 4rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.ai-hero-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ===================================
   Neural Network Avatar
   =================================== */

.neural-avatar {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto 2rem;
    animation: hoverFloat 3s ease-in-out infinite;
}

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

.neural-avatar:hover {
    animation: hoverFloat 1.5s ease-in-out infinite;
}

#neuralCanvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    display: block;
    background: transparent !important;
}

.neural-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: none;
    animation: neuralpulse 2s ease-out infinite;
    z-index: 1;
}

@keyframes neuralpulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* ===================================
   Hero Text
   =================================== */

.ai-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.ai-hero-subtitle {
    font-size: 1.125rem;
    color: #cffafe;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================================
   Form Section
   =================================== */

.ai-form-section {
    padding: 0 1rem 6rem;
    position: relative;
    z-index: 10;
}

.ai-form-container {
    max-width: 900px;
    margin: 0 auto;
}

.ai-form-wrapper {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 1.5rem;
    padding: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

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

/* ===================================
   Login Notice (Non-logged-in users)
   =================================== */

.login-notice {
    text-align: center;
    padding: 2rem 0;
}

.login-notice-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-notice-icon svg {
    width: 40px;
    height: 40px;
    color: #22d3ee;
    stroke: #22d3ee;
}

.login-notice h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.login-notice p {
    color: #cffafe;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.login-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Form Elements
   =================================== */

.ai-form-grid {
    display: grid;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #22d3ee;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
    background: rgba(15, 23, 42, 0.8);
    transform: scale(1.01);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #64748b;
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.6;
}

.character-count {
    text-align: right;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* ===================================
   Submit Button
   =================================== */

.submit-section {
    text-align: center;
    margin-top: 1rem;
}

.ai-submit-btn {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.ai-submit-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;
}

.ai-submit-btn:hover::before {
    left: 100%;
}

.ai-submit-btn:hover {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.5);
    transform: translateY(-2px);
}

.ai-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ai-submit-btn svg {
    width: 20px;
    height: 20px;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.ai-submit-btn.loading .loading-spinner {
    display: block;
}

.ai-submit-btn.loading .btn-text {
    display: none;
}

/* ===================================
   Feedback Message
   =================================== */

.feedback-message {
    display: none;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.feedback-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.feedback-message-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feedback-message-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

/* ===================================
   Chat Bubble Animation
   =================================== */

.chat-bubble {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(34, 211, 238, 0.3);
    animation: bubbleIn 0.5s ease-out;
    max-width: 300px;
    z-index: 1000;
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #3b82f6;
}

.chat-bubble.show {
    display: block;
}

/* ===================================
   Buttons (Login/Register)
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
}

.btn--gradient {
    background: linear-gradient(to right, #06b6d4, #3b82f6);
    color: white;
}

.btn--gradient:hover {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
    transform: translateY(-2px);
}

.btn--outline {
    background: rgba(30, 41, 59, 0.5);
    border: 2px solid rgba(34, 211, 238, 0.5);
    color: #22d3ee;
}

.btn--outline:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: #06b6d4;
    color: #06b6d4;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .ai-job-finder-main::before,
    .ai-job-finder-main::after {
        width: 20rem;
        height: 20rem;
    }

    .ai-hero-section {
        padding: 4rem 1rem 3rem;
    }

    .ai-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .ai-hero-title {
        font-size: 2rem;
    }

    .ai-hero-subtitle {
        font-size: 1rem;
    }

    .login-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .chat-bubble {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .ai-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .neural-avatar {
        width: 450px;
        height: 450px;
    }

    .neural-pulse {
        width: 270px;
        height: 270px;
    }
}

@media (max-width: 480px) {
    .ai-form-section {
        padding: 0 0.5rem 4rem;
    }

    .ai-form-wrapper {
        padding: 1.5rem 1rem;
    }

    .form-input,
    .form-textarea {
        font-size: 0.9rem;
    }

    .ai-hero-title {
        font-size: 1.5rem;
    }

    .neural-avatar {
        width: 360px;
        height: 360px;
        margin: 0 auto 1rem;
    }

    .neural-pulse {
        width: 216px;
        height: 216px;
    }

    .chat-bubble {
        bottom: 1rem;
        font-size: 0.85rem;
    }
}

/* ===================================
   Accessibility
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus visible for keyboard navigation */
.form-input:focus-visible,
.form-textarea:focus-visible,
.ai-submit-btn:focus-visible,
.btn:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 2px;
}

/* ===================================
   End AI Job Finder Styles
   =================================== */
