/**
 * Gigvia Gig Hire Modal Styles
 * Modern, responsive modal for gig purchase confirmation
 */

/* Modal Overlay */
.gv-hire-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 26, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    animation: gv-fadeIn 0.2s ease-out;
}

.gv-hire-modal-overlay[hidden] {
    display: none;
}

@keyframes gv-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Container */
.gv-hire-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: gv-slideUp 0.3s ease-out;
}

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

/* Modal Header */
.gv-hire-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.gv-hire-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gv-hire-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    padding: 0;
}

.gv-hire-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.gv-hire-modal-close svg {
    width: 20px;
    height: 20px;
}

/* Modal Body */
.gv-hire-modal-body {
    padding: 24px;
}

/* Modal Icon */
.gv-hire-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.gv-hire-icon-success {
    background: #d1fae5;
    color: #059669;
}

.gv-hire-icon-warning {
    background: #fef3c7;
    color: #d97706;
}

.gv-hire-icon-error {
    background: #fee2e2;
    color: #dc2626;
}

.gv-hire-icon svg {
    width: 28px;
    height: 28px;
}

/* Modal Heading */
.gv-hire-modal-heading {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Modal Text */
.gv-hire-modal-text {
    margin: 0 0 24px;
    font-size: 15px;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Summary Section */
.gv-hire-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.gv-hire-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.gv-hire-summary-row:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.gv-hire-summary-label {
    color: #6b7280;
    font-weight: 500;
}

.gv-hire-summary-value {
    color: #111827;
    font-weight: 600;
}

.gv-hire-summary-total .gv-hire-summary-label,
.gv-hire-summary-total .gv-hire-summary-value {
    color: #059669;
}

.gv-hire-summary-shortfall .gv-hire-summary-label,
.gv-hire-summary-shortfall .gv-hire-summary-value {
    color: #dc2626;
}

/* Modal Actions */
.gv-hire-modal-actions {
    display: flex;
    gap: 12px;
}

.gv-hire-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none;
    flex: 1;
}

.gv-hire-btn svg {
    width: 18px;
    height: 18px;
}

.gv-hire-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gv-hire-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
}

.gv-hire-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.gv-hire-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.gv-hire-btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

/* Button Loader */
.gv-button-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gv-spinner {
    animation: gv-spin 1s linear infinite;
}

@keyframes gv-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.gv-spinner-small {
    width: 16px;
    height: 16px;
}

/* Responsive Styles */
@media (max-width: 640px) {
    .gv-hire-modal {
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }

    .gv-hire-modal-overlay {
        align-items: flex-end;
        padding: 0;
        background: rgba(15, 15, 26, 0.5);
    }

    .gv-hire-modal-header {
        padding: 20px;
    }

    .gv-hire-modal-body {
        padding: 20px;
    }

    .gv-hire-modal-actions {
        flex-direction: column;
    }

    .gv-hire-btn {
        width: 100%;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .gv-hire-modal {
        background: #1f2937;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }

    .gv-hire-modal-header {
        border-bottom-color: #374151;
    }

    .gv-hire-modal-title {
        color: #f9fafb;
    }

    .gv-hire-modal-close {
        color: #9ca3af;
    }

    .gv-hire-modal-close:hover {
        background: #374151;
        color: #f9fafb;
    }

    .gv-hire-modal-heading {
        color: #f9fafb;
    }

    .gv-hire-modal-text {
        color: #d1d5db;
    }

    .gv-hire-summary {
        background: #374151;
    }

    .gv-hire-summary-row:not(:last-child) {
        border-bottom-color: #4b5563;
    }

    .gv-hire-summary-label {
        color: #9ca3af;
    }

    .gv-hire-summary-value {
        color: #f9fafb;
    }

    .gv-hire-btn-secondary {
        background: #374151;
        color: #e5e7eb;
    }

    .gv-hire-btn-secondary:hover:not(:disabled) {
        background: #4b5563;
    }
}

/* Gig Not Found UI */
.sg-gig__not-found {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sg-gig__not-found-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sg-gig__not-found-icon {
    font-size: 80px;
    color: #ef4444;
    margin-bottom: 24px;
}

.sg-gig__not-found-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sg-gig__not-found-text {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Admin Status Bar */
.sg-admin-status-bar {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-bottom: 1px solid #d97706;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sg-admin-status-bar__content {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.sg-admin-status-bar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 20px;
    color: #ffffff;
}

.sg-admin-status-bar__info {
    flex: 1;
}

.sg-admin-status-bar__title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sg-admin-status-bar__message {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sg-admin-status-bar__badge {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 6px 16px;
}

.sg-admin-status-bar__badge-text {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Owner Status Bar */
.sg-owner-status-bar {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-bottom: 1px solid #4f46e5;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.sg-owner-status-bar__content {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.sg-owner-status-bar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 20px;
    color: #ffffff;
}

.sg-owner-status-bar__info {
    flex: 1;
}

.sg-owner-status-bar__title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sg-owner-status-bar__message {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Responsive Styles for Status Bars */
@media (max-width: 640px) {
    .sg-gig__not-found-content {
        padding: 40px 24px;
    }

    .sg-gig__not-found-icon {
        font-size: 60px;
    }

    .sg-gig__not-found-title {
        font-size: 22px;
    }

    .sg-admin-status-bar__content,
    .sg-owner-status-bar__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sg-admin-status-bar__badge {
        align-self: flex-start;
    }
}

/* Dark Mode Support for Status Bars */
@media (prefers-color-scheme: dark) {
    .sg-gig__not-found-content {
        background: #1f2937;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    .sg-gig__not-found-title {
        color: #f9fafb;
    }

    .sg-gig__not-found-text {
        color: #d1d5db;
    }
}
