/*
Theme Name: JOBO
Version: 2.0
*/

/* CSS Variables */
:root {
    --bg-primary: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --bg-secondary: rgba(255, 255, 255, 0.9);
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --jobo-primary: #3B82F6;
    --jobo-secondary: #1E40AF;
    --jobo-accent: #60A5FA;
    --particle-color: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --bg-card: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    --jobo-primary: #60A5FA;
    --jobo-secondary: #3B82F6;
    --jobo-accent: #93C5FD;
    --particle-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Main App Container */
#jobo-app { 
    min-height: 100vh; 
    position: relative; 
}

/* FIXED Theme Toggle - Always Same Position */
.theme-toggle, .jobo-theme-toggle {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
}

.toggle-btn, .jobo-toggle-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px !important;
    height: 50px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.toggle-btn:hover, .jobo-toggle-btn:hover {
    transform: scale(1.1);
    border-color: var(--jobo-primary);
}

/* FIXED Logo Size - Always Same */
.jobo-logo {
    width: 200px !important;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* Logo for home page can be bigger */
.jobo-home-container .jobo-logo {
    width: 400px !important;
}

/* Logo theme handling */
.jobo-logo-light { display: block; }
.jobo-logo-dark { display: none; }

[data-theme="dark"] .jobo-logo-light { display: none; }
[data-theme="dark"] .jobo-logo-dark { display: block; }

/* Particles Background */
.particles-container, .jobo-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle, .jobo-particle {
    position: absolute;
    background: var(--particle-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Form Container */
.jobo-form-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.form-wrapper, .jobo-form-wrapper {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Form Elements */
.form-title, .jobo-form-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.form-description, .jobo-form-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Form Groups */
.jobo-form {
    margin: 2rem 0;
    text-align: left;
}

.form-group, .jobo-form-group {
    margin-bottom: 1.5rem;
}

.form-group label, .jobo-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

.form-group input, .form-group select,
.jobo-form-group input, .jobo-form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus,
.jobo-form-group input:focus, .jobo-form-group select:focus {
    outline: none;
    border-color: var(--jobo-primary);
    background: var(--bg-card);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.phone-input-group select {
    flex: 0 0 140px;
}

.phone-input-group input {
    flex: 1;
}

/* Buttons */
.submit-button, .jobo-submit-button {
    width: 100%;
    background: linear-gradient(45deg, var(--jobo-primary), var(--jobo-secondary));
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.submit-button:hover, .jobo-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* Loading State */
.loading, .jobo-loading {
    text-align: center;
    margin: 1rem 0;
}

.spinner, .jobo-spinner {
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top: 3px solid var(--jobo-primary);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Back Link */
.back-link, .jobo-back-link {
    margin-top: 2rem;
}

.back-link a, .jobo-back-link a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-link a:hover, .jobo-back-link a:hover {
    color: var(--text-primary);
}

/* Home Page Specific */
.jobo-home-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.jobo-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Options Grid */
.jobo-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

.jobo-option-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.jobo-option-card:hover {
    transform: translateY(-10px);
    border-color: var(--jobo-primary);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

.jobo-option-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.jobo-option-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.jobo-option-subtitle {
    font-size: 1rem;
    color: var(--jobo-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.jobo-option-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.jobo-cta-button {
    background: linear-gradient(45deg, var(--jobo-primary), var(--jobo-secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    text-decoration: none;
    display: inline-block;
}

.jobo-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    color: white;
}

/* Thank You Pages */
.jobo-thank-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.thank-wrapper {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    z-index: 10;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .theme-toggle, .jobo-theme-toggle {
        top: 10px !important;
        right: 10px !important;
    }
    
    .toggle-btn, .jobo-toggle-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem;
    }
    
    .jobo-logo {
        width: 150px !important;
    }
    
    .jobo-home-container .jobo-logo {
        width: 250px !important;
    }
    
    .form-wrapper, .jobo-form-wrapper {
        padding: 2rem;
        margin: 1rem;
    }
    
    .jobo-options {
        grid-template-columns: 1fr;
    }
    
    .phone-input-group {
        flex-direction: column;
    }
    
    .phone-input-group select {
        flex: none;
        width: 100%;
    }
}

/* Additional Thank You Page Styles */
.thank-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.thank-subtitle {
    color: var(--jobo-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.thank-message {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.next-steps {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.next-steps h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.next-steps li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--jobo-primary);
    font-weight: bold;
    font-size: 1.2rem;
}
