/* ==========================================
   PREVIEW DASHBOARD - ACTIVE NETWORKING
   ========================================== */

/* Global Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #64748b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   LIVE ACTIVITY BAR
   ========================================== */
.live-activity-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}

.activity-items {
    display: flex;
    gap: 40px;
    animation: slideLeft 30s linear infinite;
    white-space: nowrap;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.activity-item .fa-circle {
    font-size: 8px;
    color: var(--success-color);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes slideLeft {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ==========================================
   PREVIEW HEADER
   ========================================== */
.preview-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.logo .tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.login-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.primary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* ==========================================
   PREVIEW DASHBOARD
   ========================================== */
.preview-dashboard {
    padding: 40px 0;
    background: white;
}

/* Value Proposition */
.value-proposition {
    text-align: center;
    margin-bottom: 40px;
}

.value-proposition h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.value-proposition p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.stats-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
    padding: 24px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat .number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat .label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Widget Base Styles */
.widget {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.widget:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-gray);
}

.widget-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-header i {
    color: var(--primary-color);
}

.widget-indicator {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.widget-content {
    padding: 20px;
}

/* Preview Widget Overlay */
.preview-widget {
    position: relative;
    filter: blur(1px);
}

.preview-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
}

.widget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.preview-widget:hover .widget-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    padding: 32px;
    max-width: 280px;
}

.overlay-content i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.overlay-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.overlay-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ==========================================
   WIDGET SPECIFIC STYLES
   ========================================== */

/* Matches Widget */
.match-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.match-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.match-card:last-child {
    margin-bottom: 0;
}

.match-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.match-info {
    flex: 1;
}

.match-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.match-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    background: var(--light-gray);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.match-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--success-color);
}

/* Projects Widget */
.project-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.project-card:last-child {
    margin-bottom: 0;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.project-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.project-type {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.project-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.project-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.project-stats span {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-skills {
    display: flex;
    gap: 6px;
}

.skill {
    background: var(--light-gray);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Opportunities Widget */
.opportunity {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.opportunity:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.opportunity:last-child {
    margin-bottom: 0;
}

.opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.opportunity-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.urgency {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.urgency.high {
    background: var(--danger-color);
}

.urgency.medium {
    background: var(--warning-color);
}

.urgency.low {
    background: var(--success-color);
}

.opportunity p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.opportunity-offer {
    display: flex;
    gap: 16px;
}

.salary, .equity, .duration {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.salary {
    color: var(--success-color);
}

/* Activity Widget */
.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--light-gray);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Demo Widget */
.demo-widget {
    grid-column: span 2;
}

.demo-section {
    margin-bottom: 24px;
}

.demo-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.demo-section p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.demo-input {
    position: relative;
}

.demo-input input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.demo-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.demo-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
}

.demo-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.demo-suggestion:hover {
    background: var(--light-gray);
}

.demo-results {
    margin-top: 16px;
}

.demo-cta {
    text-align: center;
    padding: 24px;
    background: var(--light-gray);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.demo-cta p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ==========================================
   TRUST INDICATORS
   ========================================== */
.trust-indicators {
    background: var(--light-gray);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.trust-indicators h3 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.trust-item {
    text-align: center;
    padding: 32px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.trust-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.trust-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.trust-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.trust-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   MODAL STYLES
   ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--light-gray);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: var(--light-gray);
}

.social-login {
    margin-bottom: 24px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.social-button:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.google-button {
    color: #4285f4;
    border-color: #4285f4;
}

.google-button:hover {
    background: #4285f4;
    color: white;
}

.linkedin-button {
    color: #0077b5;
    border-color: #0077b5;
}

.linkedin-button:hover {
    background: #0077b5;
    color: white;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.terms-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 16px;
}

.terms-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

.login-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .value-proposition h2 {
        font-size: 28px;
    }

    .value-proposition p {
        font-size: 16px;
    }

    .stats-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .demo-widget {
        grid-column: span 1;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .activity-items {
        gap: 20px;
    }

    .activity-item {
        font-size: 12px;
    }

    .match-card {
        padding: 12px;
    }

    .match-avatar img {
        width: 40px;
        height: 40px;
    }

    .project-card {
        padding: 12px;
    }

    .opportunity {
        padding: 12px;
    }

    .overlay-content {
        padding: 24px;
    }

    .overlay-content i {
        font-size: 36px;
    }

    .overlay-content h4 {
        font-size: 16px;
    }

    .overlay-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .stats-preview {
        grid-template-columns: 1fr;
    }

    .stat .number {
        font-size: 24px;
    }

    .trust-indicators h3 {
        font-size: 24px;
    }

    .trust-item {
        padding: 24px;
    }

    .trust-item i {
        font-size: 36px;
    }

    .project-stats {
        flex-direction: column;
        gap: 8px;
    }

    .opportunity-offer {
        flex-direction: column;
        gap: 8px;
    }

    .tags {
        gap: 4px;
    }

    .tag {
        font-size: 11px;
    }

    .skill {
        font-size: 11px;
    }
}

/* ==========================================
   DARK MODE SUPPORT
   ========================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --light-gray: #1e293b;
        --medium-gray: #334155;
        --dark-gray: #94a3b8;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --border-color: #334155;
    }

    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }

    .preview-dashboard {
        background: #0f172a;
    }

    .widget {
        background: #1e293b;
        border-color: #334155;
    }

    .widget-header {
        background: #334155;
    }

    .trust-indicators {
        background: #1e293b;
    }

    .trust-item {
        background: #334155;
    }

    .modal-content {
        background: #1e293b;
    }

    .modal-footer {
        background: #334155;
    }

    .form-group input {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }

    .form-group input:focus {
        border-color: var(--primary-color);
    }

    .demo-suggestions {
        background: #1e293b;
        border-color: #334155;
    }

    .demo-suggestion:hover {
        background: #334155;
    }

    .demo-cta {
        background: #334155;
        border-color: #475569;
    }

    .activity-item:hover {
        background: #334155;
    }

    .social-button {
        background: #334155;
        border-color: #475569;
    }

    .social-button:hover {
        background: var(--primary-color);
        color: white;
    }
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .widget-overlay {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .preview-widget {
        filter: blur(2px);
    }
    
    .overlay-content {
        border: 2px solid var(--primary-color);
        border-radius: 8px;
    }
} 