/**
 * Modal Styles for Settings and Developer modals
 * Brutalist/Neubrutalism design matching the app theme
 */

/* Modal Overlay */
/* Modal Overlay - Fixed Centering */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-scrim-strong);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-overlay.visible {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

/* Modal Container - Fixed Centering */
.modal-container {
    background: var(--bg-card);
    border: 4px solid var(--text-primary);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    box-shadow: 8px 8px 0 var(--brutal-shadow);
    margin: auto;
    position: relative;
}

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

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

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 4px solid var(--text-primary);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.modal-title .highlight {
    color: var(--accent-pink-deep);
}

.modal-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--text-primary);
    background: var(--bg-cream);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    border-color: var(--accent-pink-deep);
    background: var(--accent-pink-deep);
    color: white;
}

/* Modal Body */
.modal-body {
    padding: 1.5rem;
}

/* Modal Content */
.modal-content {
    padding: 1.5rem;
}

/* Form Group */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-label .required {
    color: var(--error);
}

.form-input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--text-primary);
    background: var(--bg-cream);
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-green-deep);
    box-shadow: 0 0 0 3px var(--accent-green);
}

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

.form-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-help a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
}

.form-help a:hover {
    text-decoration: underline;
}

/* Error Message */
.error-message {
    padding: 0.75rem;
    background: var(--msg-error-bg);
    border: 2px solid var(--error);
    color: var(--error);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: none;
}

.error-message.visible {
    display: block;
}

/* Success Message */
.success-message {
    padding: 0.75rem;
    background: var(--msg-success-bg);
    border: 2px solid var(--success);
    color: var(--success);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: none;
}

.success-message.visible {
    display: block;
}

/* Modal Footer */
.modal-footer {
    padding: 1.5rem;
    border-top: 4px solid var(--text-primary);
    background: var(--bg-warm);
    display: flex;
    gap: 0.75rem;
}

.modal-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--text-primary);
    background: var(--text-primary);
    color: var(--on-accent);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn:hover:not(:disabled) {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--brutal-shadow);
}

.modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-btn-secondary {
    background: transparent;
    color: var(--text-primary);
}

.modal-btn-danger {
    border-color: var(--error);
    background: var(--error);
}

/* Settings Modal Specific Styles */
.modal-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group-modal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-modal label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.form-group-modal input,
.form-group-modal textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 3px solid var(--text-primary);
    background: var(--bg-cream);
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.form-group-modal input:focus,
.form-group-modal textarea:focus {
    outline: none;
    border-color: var(--accent-green-deep);
    background: var(--input-bg-focus);
}

.form-link {
    font-size: 0.75rem;
    color: var(--accent-pink-deep);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.form-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.settings-error {
    padding: 0.75rem;
    background: var(--msg-error-bg);
    border: 3px solid var(--error);
    color: var(--error);
    font-size: 0.875rem;
    font-weight: 600;
    display: none;
}

.settings-error.visible {
    display: block;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.modal-btn-primary {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: 3px solid var(--text-primary);
    background: var(--text-primary);
    color: var(--on-accent);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--brutal-shadow);
    background: var(--accent-green-deep);
    border-color: var(--accent-green-deep);
}

.modal-btn-secondary {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: 3px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-secondary:hover {
    background: var(--bg-cream);
}

/* Developer Modal Specific Styles */
.developer-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.developer-avatar {
    width: 4rem;
    height: 4rem;
    border: 4px solid var(--accent-pink-deep);
    background: var(--accent-pink-deep);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

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

.developer-info h3 {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.developer-info p {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.developer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.developer-description {
    padding-top: 1.5rem;
    border-top: 3px solid var(--text-primary);
}

.developer-description h4 {
    font-size: 0.875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.developer-description p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* Legacy styles for compatibility */
.dev-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dev-avatar {
    width: 5rem;
    height: 5rem;
    border: 4px solid var(--accent-pink-deep);
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.dev-info h3 {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--text-primary);
}

.dev-info p {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 2px solid var(--text-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--brutal-shadow);
}

.social-link svg {
    width: 1rem;
    height: 1rem;
}

/* Social link colors */
.social-github {
    background: #1A1A1A;
    color: white;
    border-color: #1A1A1A;
}

.social-linkedin {
    background: #0A66C2;
    color: white;
    border-color: #0A66C2;
}

.social-twitter {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.social-website {
    background: #81C784;
    color: white;
    border-color: #81C784;
}

.social-email {
    background: #F06292;
    color: white;
    border-color: #F06292;
}

.social-calendar {
    background: #BA68C8;
    color: white;
    border-color: #BA68C8;
}

.social-portfolio {
    background: #1A1A1A;
    color: white;
}

.social-resume {
    background: #4B0082;
    color: white;
}

.social-youtube {
    background: #8B0000;
    color: white;
}

.social-huggingface {
    background: #FFD21E;
    color: black;
}

.social-scholar {
    background: #4285F4;
    color: white;
}

.project-info {
    padding-top: 1rem;
    border-top: 2px solid var(--text-primary);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.project-info p {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.project-info .highlight {
    color: var(--accent-pink-deep);
    font-weight: 700;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.project-actions a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 2px solid;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.project-actions a svg {
    width: 1rem;
    height: 1rem;
}

.github-link {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: var(--on-accent);
}

.bug-link {
    border-color: var(--error);
    background: transparent;
    color: var(--error);
}

.bug-link:hover {
    background: var(--error);
    color: white;
}

.license-text {
    font-size: 0.625rem;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}
