/**
 * Vibe Profile — Full-screen swipe UI styles
 *
 * Clean, modern aesthetic with subtle shadows, rounded corners,
 * and smooth transitions. Mobile-first responsive design.
 */

/* =========================================================================
   CTA Button
   ========================================================================= */

.hrck-vibe-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.hrck-vibe-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.hrck-vibe-cta:active {
    transform: translateY(0);
}

/* =========================================================================
   Overlay
   ========================================================================= */

.hrck-vibe-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hrck-vibe-overlay--visible {
    opacity: 1;
}

.hrck-vibe-overlay-inner {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}

.hrck-vibe-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
}

.hrck-vibe-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hrck-vibe-content {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Body state when overlay is open */
body.hrck-vibe-active {
    overflow: hidden !important;
}

/* =========================================================================
   Loading & Empty States
   ========================================================================= */

.hrck-vibe-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hrck-vibe-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: hrckVibeSpin 0.8s linear infinite;
}

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

.hrck-vibe-empty {
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hrck-vibe-empty-icon {
    margin-bottom: 16px;
    opacity: 0.5;
}

.hrck-vibe-empty h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #fff;
}

.hrck-vibe-empty p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 20px;
}

.hrck-vibe-error {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =========================================================================
   Swiper Card
   ========================================================================= */

.hrck-vibe-swiper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hrck-vibe-progress {
    width: 100%;
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin-bottom: 4px;
}

.hrck-vibe-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.hrck-vibe-progress-text {
    position: absolute;
    right: 0;
    top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hrck-vibe-card {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 70vh;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hrck-vibe-card:active {
    cursor: grabbing;
}

.hrck-vibe-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hrck-vibe-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hrck-vibe-card-dimension {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hrck-vibe-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Swipe indicators (LIKE / SKIP) */

.hrck-vibe-indicator {
    position: absolute;
    top: 24px;
    padding: 8px 16px;
    border: 3px solid;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 800;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    transform: rotate(-12deg);
}

.hrck-vibe-indicator--like {
    right: 20px;
    color: #22c55e;
    border-color: #22c55e;
    transform: rotate(12deg);
}

.hrck-vibe-indicator--skip {
    left: 20px;
    color: #ef4444;
    border-color: #ef4444;
    transform: rotate(-12deg);
}

/* =========================================================================
   Action Buttons
   ========================================================================= */

.hrck-vibe-actions {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
}

.hrck-vibe-btn-round {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hrck-vibe-btn-skip {
    border-color: rgba(239, 68, 68, 0.6);
    color: #ef4444;
}

.hrck-vibe-btn-skip:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.hrck-vibe-btn-like {
    border-color: rgba(34, 197, 94, 0.6);
    color: #22c55e;
}

.hrck-vibe-btn-like:hover {
    background: rgba(34, 197, 94, 0.15);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* =========================================================================
   Progress Dots
   ========================================================================= */

.hrck-vibe-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 280px;
}

.hrck-vibe-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
}

.hrck-vibe-dot--active {
    background: #8b5cf6;
    transform: scale(1.3);
}

.hrck-vibe-dot--done {
    background: rgba(139, 92, 246, 0.5);
}

/* =========================================================================
   Complete: Vibe Profile Summary
   ========================================================================= */

.hrck-vibe-complete {
    width: 100%;
    max-width: 480px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hrck-vibe-profile-summary {
    text-align: center;
    margin-bottom: 24px;
}

.hrck-vibe-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #a78bfa, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hrck-vibe-tags {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.hrck-vibe-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.hrck-vibe-tag-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.5);
    min-width: 60px;
}

.hrck-vibe-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #c4b5fd;
}

.hrck-vibe-tag-empty {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* =========================================================================
   Email Capture
   ========================================================================= */

.hrck-vibe-email-capture {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.hrck-vibe-email-capture h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hrck-vibe-email-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.hrck-vibe-email-row {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 380px;
}

.hrck-vibe-email-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hrck-vibe-email-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.hrck-vibe-email-input:focus {
    border-color: #8b5cf6;
}

.hrck-vibe-skip-link {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.hrck-vibe-skip-link:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* =========================================================================
   Buttons (Shared)
   ========================================================================= */

.hrck-vibe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
}

.hrck-vibe-btn--primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.hrck-vibe-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.hrck-vibe-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.hrck-vibe-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hrck-vibe-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* =========================================================================
   Results Grid
   ========================================================================= */

.hrck-vibe-results {
    width: 100%;
}

.hrck-vibe-results-heading {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hrck-vibe-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hrck-vibe-result-card {
    display: block;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hrck-vibe-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

.hrck-vibe-result-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.05);
}

.hrck-vibe-result-info {
    padding: 10px 12px 12px;
}

.hrck-vibe-result-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hrck-vibe-result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.hrck-vibe-result-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    font-size: 11px;
    color: #c4b5fd;
}

.hrck-vibe-result-match {
    font-size: 12px;
    font-weight: 600;
    color: #22c55e;
}

.hrck-vibe-results-footer {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 20px;
}

/* =========================================================================
   Responsive: Desktop (wider cards)
   ========================================================================= */

@media (min-width: 601px) {
    .hrck-vibe-overlay-inner {
        padding: 24px;
    }

    .hrck-vibe-card {
        max-height: 65vh;
    }

    .hrck-vibe-results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .hrck-vibe-complete {
        max-width: 600px;
    }
}

/* =========================================================================
   Responsive: Mobile (single column, full width)
   ========================================================================= */

@media (max-width: 600px) {
    .hrck-vibe-overlay-inner {
        padding: 8px 8px 16px;
    }

    .hrck-vibe-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .hrck-vibe-card {
        border-radius: 12px;
        max-height: 60vh;
    }

    .hrck-vibe-card-value {
        font-size: 22px;
    }

    .hrck-vibe-btn-round {
        width: 48px;
        height: 48px;
    }

    .hrck-vibe-btn-round svg {
        width: 20px;
        height: 20px;
    }

    .hrck-vibe-actions {
        gap: 24px;
    }

    .hrck-vibe-results-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hrck-vibe-result-card {
        display: flex;
        flex-direction: row;
    }

    .hrck-vibe-result-image {
        width: 100px;
        min-width: 100px;
        aspect-ratio: 1;
    }

    .hrck-vibe-result-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hrck-vibe-email-row {
        flex-direction: column;
    }

    .hrck-vibe-email-row .hrck-vibe-btn {
        width: 100%;
    }

    .hrck-vibe-title {
        font-size: 22px;
    }

    .hrck-vibe-email-capture h3 {
        font-size: 16px;
    }
}

/* =========================================================================
   Accessibility: Reduced Motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
    .hrck-vibe-overlay {
        transition: none;
    }

    .hrck-vibe-card {
        transition: none !important;
    }

    .hrck-vibe-progress-bar {
        transition: none;
    }

    .hrck-vibe-dot {
        transition: none;
    }

    .hrck-vibe-spinner {
        animation: none;
        border-top-color: #8b5cf6;
    }
}
