/* ============================================================================
  Mobile responsive key breakpoints.
   ============================================================================ */

   /* Tablet */
@media (max-width: 768px) {
    .topbar-container {
        flex-direction: column;
        padding: 12px;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none; /* Or make it a dropdown */
    }
}

/**
 * Brand Profile Builder Styles
 * LinkedIn-inspired 3-step wizard design
 */

/* ═══════════════════════════════════════════════════════════════════════════
   VARIABLES
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --linkedin-blue: #0A66C2;
    --linkedin-blue-dark: #004182;
    --linkedin-white: #FFFFFF;
    --linkedin-gray-100: #F3F2EF;
    --linkedin-gray-200: #E9E5DF;
    --text-primary: #000000E6;
    --text-secondary: #00000099;
    --border-color: #00000014;
    --success: #057642;
    --error: #CC1016;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--linkedin-gray-100);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION BAR (Dashboard Style)
   ═══════════════════════════════════════════════════════════════════════════ */

.topbar {
    background: var(--linkedin-white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.topbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    height: 36px;
    width: auto;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--linkedin-gray-100);
}

.nav-link.active {
    color: var(--text-primary);
    font-weight: 600;
    background: var(--linkedin-gray-100);
}

/* ═══════════════════════════════════════════════════════════════════════════
   USER MENU DROPDOWN
   ═══════════════════════════════════════════════════════════════════════════ */

.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu-btn:hover {
    background: var(--linkedin-gray-100);
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--linkedin-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--linkedin-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.user-name-large {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    cursor: pointer;
}

.dropdown-link:hover {
    background: var(--linkedin-gray-100);
}

.tier-badge {
    font-size: 12px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════════════════════════════════════════ */

.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.progress-container {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.progress-bar {
    height: 6px;
    background: var(--linkedin-gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 32px;
}

.progress-fill {
    height: 100%;
    background: var(--linkedin-blue);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--linkedin-gray-200);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
}

.progress-step.active .step-circle {
    background: var(--linkedin-blue);
    color: white;
    box-shadow: var(--shadow-md);
}

.progress-step.completed .step-circle {
    background: var(--success);
    color: white;
}

.progress-step.completed .step-circle::after {
    content: '✓';
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-step.active .step-label {
    color: var(--text-primary);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM CONTAINER
   ═══════════════════════════════════════════════════════════════════════════ */

.form-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.form-step h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: white;
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--linkedin-blue);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: var(--error);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-secondary);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.error-message {
    font-size: 13px;
    color: var(--error);
    margin-top: 6px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--linkedin-blue);
    color: white;
    flex: 1;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--linkedin-blue-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    background: var(--linkedin-gray-200);
    color: var(--text-secondary);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: white;
    color: var(--linkedin-blue);
    border: 2px solid var(--linkedin-blue);
}

.btn-secondary:hover {
    background: var(--linkedin-gray-100);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUCCESS MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.success-modal.show {
    opacity: 1;
}

.success-content {
    background: white;
    border-radius: 16px;
    padding: 48px;
    max-width: 500px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

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

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.success-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.success-actions .btn-primary,
.success-actions .btn-secondary {
    width: 100%;
    text-decoration: none;
    display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .main-container {
        padding: 24px 16px;
    }

    .form-container {
        padding: 24px;
    }

    .progress-container {
        padding: 24px 16px;
    }

    .step-label {
        font-size: 12px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .form-step h2 {
        font-size: 24px;
    }

    .button-group {
        flex-direction: column-reverse;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .nav-right {
        gap: 12px;
    }

    .nav-link {
        font-size: 13px;
        padding: 6px 8px;
    }
}
/* ====================================================================
   DESTINATION SELECTION STYLES (ADD TO END OF brand-profile.css)
   ==================================================================== */

/* Destination Selection List */
.destination-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}

/* Destination Option Card */
.destination-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.destination-option:hover {
    border-color: #6366f1;
    background-color: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.destination-option.active {
    border-color: #6366f1;
    background-color: #eef2ff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Avatar */
.destination-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 16px;
    flex-shrink: 0;
    border: 2px solid #f0f0f0;
}

.destination-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destination-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
}

/* Destination Info */
.destination-info {
    flex: 1;
}

.destination-name {
    font-weight: 600;
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.destination-type {
    font-size: 14px;
    color: #666;
    text-transform: capitalize;
}

/* Radio Button */
.destination-select {
    flex-shrink: 0;
}

.destination-select input[type="radio"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #6366f1;
}

/* Warning Box (No LinkedIn Connected) */
.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    margin: 32px 0;
}

.warning-box h3 {
    color: #856404;
    margin-bottom: 12px;
    font-size: 20px;
}

.warning-box p {
    color: #856404;
    margin-bottom: 24px;
    font-size: 16px;
}

.warning-box .btn-primary {
    background: #ffc107;
    color: #856404;
    border: none;
    font-weight: 600;
}

.warning-box .btn-primary:hover {
    background: #ffb300;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .destination-option {
        padding: 16px;
    }
    
    .destination-avatar {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }
    
    .destination-placeholder {
        font-size: 16px;
    }
    
    .destination-name {
        font-size: 16px;
    }
    
    .destination-type {
        font-size: 13px;
    }
}