/* Swipe Quiz Styles */
#swipe-quiz-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#swipe-quiz-container.active {
    opacity: 1;
    pointer-events: auto;
}

.swipe-quiz-header {
    position: absolute;
    top: 30px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.swipe-quiz-counter {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    display: inline-block;
}

.quiz-instruction-text {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 240px;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #fff;
    font-weight: 700;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.4) 0%, rgba(16, 185, 129, 0.4) 100%);
    padding: 15px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 100;
}

@media (max-width: 1100px) {
    .quiz-instruction-text {
        position: static;
        transform: none;
        max-width: 300px;
        margin: 0 auto 20px;
        text-align: center;
        font-size: 0.95rem;
        padding: 10px 15px;
    }
}

@media (max-height: 700px) {
    .quiz-instruction-text {
        display: none;
    }
}

.swipe-quiz-close {
    position: absolute;
    left: 30px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.swipe-quiz-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.swiper-container {
    width: 340px;
    height: 520px;
    perspective: 1000px;
}

.swiper-slide {
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background: #1e293b;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.card-image-wrapper {
    width: 100%;
    height: 60%;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0) 0%, rgba(30, 41, 59, 1) 20%);
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.2;
}

.card-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Controls */
.swipe-controls {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    z-index: 10;
}

.swipe-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.btn-dislike {
    background: #ef4444;
    color: white;
}

.btn-like {
    background: #10b981;
    color: white;
}

.swipe-btn:hover {
    transform: scale(1.1);
}

.swipe-btn:active {
    transform: scale(0.9);
}

/* Result Screen */
.quiz-result-screen {
    text-align: center;
    padding: 30px;
    max-width: 500px;
    display: none;
    margin-top: -10vh; /* Raise the content higher */
}

.sphere-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
}

.vacancy-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.vacancy-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 16px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.vacancy-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.vacancy-item span {
    font-weight: 600;
    color: #fff;
}

.vacancy-arrow {
    color: var(--primary-glow);
}

.quiz-form {
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-input-group {
    width: 100%;
}

.quiz-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.quiz-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
}

@media (max-width: 400px) {
    .swiper-container {
        width: 300px;
        height: 480px;
    }
}
