/**
 * Travel Companion System Styles
 * Professional, modern design with glassmorphism effects
 */

/* ========== WIZARD MODAL ========== */

.companion-wizard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.wizard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.wizard-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    background: var(--card-bg, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.wizard-header {
    padding: 24px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: var(--text-main, #fff);
}

.wizard-header h2 .bi,
.wizard-step h3 .bi,
.preview-section h4 .bi,
.companion-route .bi,
.companion-date .bi,
.companion-group .bi,
.companion-budget .bi,
.companion-meta .bi,
.companion-page-header h2 .bi {
    margin-right: 8px;
    color: #5ac8fa;
}

.wizard-close {
    background: none;
    border: none;
    font-size: 2em;
    color: var(--text-secondary, #aaa);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.wizard-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main, #fff);
}

/* Progress Bar */
.wizard-progress {
    padding: 20px 24px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0A84FF, #5AC8FA);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.progress-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #aaa);
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: linear-gradient(135deg, #0A84FF, #5AC8FA);
    border-color: #0A84FF;
    color: #fff;
    transform: scale(1.1);
}

.progress-dot.completed {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

/* Wizard Content */
.wizard-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.wizard-step {
    animation: fadeInStep 0.3s ease;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wizard-step h3 {
    margin: 0 0 8px 0;
    font-size: 1.4em;
    color: var(--text-main, #fff);
}

.step-description {
    color: var(--text-secondary, #aaa);
    margin-bottom: 24px;
    font-size: 0.95em;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main, #fff);
    font-weight: 500;
    font-size: 0.95em;
}

.required {
    color: #ff4d4d;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-main, #fff);
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0A84FF;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted, #666);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.radio-label input[type="radio"]:checked+span {
    color: #0A84FF;
    font-weight: 600;
}

/* Range Sliders */
.range-slider-container {
    position: relative;
    padding: 10px 0;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin: 5px 0;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0A84FF, #5AC8FA);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.5);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0A84FF, #5AC8FA);
    cursor: pointer;
    border: none;
}

/* Budget Chips */
.budget-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.budget-chip {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.budget-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.budget-chip.active {
    background: rgba(10, 132, 255, 0.2);
    border-color: #0A84FF;
}

.budget-label {
    font-weight: 600;
    color: var(--text-main, #fff);
    margin-bottom: 4px;
}

.budget-range {
    font-size: 0.85em;
    color: var(--text-secondary, #aaa);
}

/* Transport Chips */
.transport-chips,
.style-chips,
.language-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.transport-chip,
.style-chip,
.language-chip {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main, #fff);
    font-size: 0.95em;
}

.transport-chip:hover,
.style-chip:hover,
.language-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.transport-chip.active,
.style-chip.active,
.language-chip.active {
    background: rgba(10, 132, 255, 0.2);
    border-color: #0A84FF;
    color: #0A84FF;
}

.transport-icon,
.style-icon {
    font-size: 1.3em;
}

.transport-icon .bi,
.style-icon .bi {
    font-size: 1.1em;
    line-height: 1;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    min-height: 40px;
}

.tag {
    padding: 6px 12px;
    background: rgba(10, 132, 255, 0.2);
    border: 1px solid rgba(10, 132, 255, 0.4);
    border-radius: 20px;
    color: #0A84FF;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag-remove {
    cursor: pointer;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.tag-remove:hover {
    opacity: 1;
}

/* Character Count */
.character-count {
    text-align: right;
    margin-top: 6px;
    font-size: 0.85em;
    color: var(--text-secondary, #aaa);
}

/* Preview Step */
.preview-step {
    max-width: 600px;
    margin: 0 auto;
}

.preview-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.preview-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.preview-section h4 {
    margin: 0 0 8px 0;
    color: var(--text-main, #fff);
    font-size: 1.1em;
}

.preview-section p {
    margin: 4px 0;
    color: var(--text-secondary, #aaa);
}

.text-muted {
    color: var(--text-muted, #666);
    font-size: 0.9em;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    color: #10b981;
    font-size: 0.85em;
    margin-top: 6px;
}

/* Footer */
.wizard-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
}

.spacer {
    flex: 1;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0A84FF, #5AC8FA);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 132, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main, #fff);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}


/* ========== COMPANION LISTINGS PAGE ========== */

.social-page-container {
    margin-top: 100px;
    max-width: 1400px;
}

.companion-page-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.1), rgba(90, 200, 250, 0.1));
    border-radius: 20px;
    margin-bottom: 30px;
}

.companion-page-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    color: var(--text-main, #fff);
}

.companion-page-header p {
    color: var(--text-secondary, #aaa);
    font-size: 1.1em;
}

.companion-header-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.latest-plan-summary {
    width: min(760px, 100%);
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(90, 200, 250, 0.35);
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(30, 41, 59, 0.45));
    text-align: left;
}

.latest-plan-label {
    color: rgba(144, 202, 249, 0.95);
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.latest-plan-title {
    margin-top: 4px;
    color: var(--text-main, #fff);
    font-size: 1.05em;
    font-weight: 700;
}

.latest-plan-meta {
    margin-top: 4px;
    color: var(--text-secondary, #aaa);
    font-size: 0.9em;
}

.latest-plan-hint {
    margin: 0;
    color: var(--text-secondary, #aaa);
    font-size: 0.88em;
}

.create-listing-btn {
    margin-top: 20px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #0A84FF, #5AC8FA);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-listing-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 132, 255, 0.4);
}

.companion-page-header .create-listing-btn {
    margin-top: 0;
}

/* Filters */
.companion-filters {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    color: var(--text-secondary, #aaa);
    font-size: 0.9em;
    font-weight: 500;
}

/* Companion Cards */
.companions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.companion-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.companion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(10, 132, 255, 0.5);
}

.companion-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.companion-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.companion-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0A84FF, #5AC8FA);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}

.companion-user-info h4 {
    margin: 0;
    color: var(--text-main, #fff);
    font-size: 1.1em;
}

.companion-user-info span {
    color: var(--text-secondary, #aaa);
    font-size: 0.85em;
}

.compatibility-badge {
    padding: 6px 12px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 20px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.companion-route {
    font-size: 1.1em;
    color: var(--text-main, #fff);
    margin-bottom: 8px;
    font-weight: 600;
}

.companion-date,
.companion-group,
.companion-budget {
    color: var(--text-secondary, #aaa);
    font-size: 0.9em;
    margin-bottom: 6px;
}

.companion-description {
    color: var(--text-muted, #888);
    font-size: 0.9em;
    margin: 12px 0;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.companion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.companion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.companion-meta {
    color: var(--text-muted, #666);
    font-size: 0.85em;
}

.companion-actions {
    display: flex;
    gap: 8px;
}

.btn-apply {
    padding: 8px 16px;
    background: linear-gradient(135deg, #0A84FF, #5AC8FA);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 132, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-container {
        width: 95%;
        max-height: 95vh;
    }

    .latest-plan-summary {
        text-align: center;
    }

    .companions-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}


/* Override Grid Layouts for Mobile */
@media (max-width: 768px) {
    .grid, .grid-container, .pricing-grid, .tours-grid, .companion-grid, .radar-grid, .members-grid, [style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }
}
