/**
 * Custom Development Layer - Styles
 * 
 * Add all new custom CSS here instead of modifying style.css
 * This keeps your base theme clean and makes debugging easier.
 */

/* ========================================
   CUSTOM PROJECT STYLES
   Add your new CSS below this line
   ======================================== */

/* Example custom styling - remove this and add your own */
.custom-development-layer {
    /* Your custom styles here */
    background: var(--color-bg-primary);
    padding: 1rem;
    margin: 1rem 0;
}

/* Custom buttons */
.custom-button {
    background: var(--color-primary);
    color: var(--color-text-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Custom form elements */
.custom-form-field {
    margin-bottom: 1rem;
}

.custom-form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.custom-form-field input,
.custom-form-field textarea,
.custom-form-field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 4px;
    font-family: var(--font-body);
}

/* Custom responsive utilities */
@media (max-width: 768px) {
    .custom-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .custom-hide-desktop {
        display: none !important;
    }
}

/* ========================================
   CUSTOM ANIMATIONS
   ======================================== */

.custom-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.custom-fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   CUSTOM UTILITY CLASSES
   ======================================== */

.custom-text-center {
    text-align: center;
}

.custom-text-left {
    text-align: left;
}

.custom-text-right {
    text-align: right;
}

.custom-mb-1 { margin-bottom: 1rem; }
.custom-mb-2 { margin-bottom: 2rem; }
.custom-mb-3 { margin-bottom: 3rem; }

.custom-mt-1 { margin-top: 1rem; }
.custom-mt-2 { margin-top: 2rem; }
.custom-mt-3 { margin-top: 3rem; }

.custom-p-1 { padding: 1rem; }
.custom-p-2 { padding: 2rem; }
.custom-p-3 { padding: 3rem; }

/* ========================================
   Job listings: save toggle, apply modal, applied state, skill tag links
   ======================================== */

.job-card-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.work-arrangement-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: #e0f2fe;
    color: #075985;
}

.applied-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: #dcfce7;
    color: #166534;
}

.applied-state {
    background-color: #16a34a !important;
    border-color: #15803d !important;
    color: #fff !important;
}

.applied-state .check-mark {
    margin-right: 4px;
}

/* Feature #34 — Save toggle is now a .btn-pill. Visual rules live under
   .btn-pill--save in style.css; this file no longer styles the toggle's
   shape or hover state. */

.skill-tag-link {
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.skill-tag-link:hover {
    background-color: #2563eb;
    color: #fff;
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.archive-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-sort-label {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
}

.archive-sort select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

/* Apply modal */
.thm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.thm-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.thm-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
    padding: 4px 8px;
}

.thm-close:hover {
    color: #111827;
}

.thm-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.thm-body {
    margin: 0 0 24px 0;
    color: #4b5563;
    line-height: 1.5;
}

.thm-body .thm-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px;
    border-radius: 6px;
}

.thm-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.thm-actions .btn {
    min-width: 100px;
}

.thm-overlay.is-busy .thm-actions {
    opacity: 0.6;
    pointer-events: none;
}

/* Application row highlight when arrived from "View your application" */
.application-row-highlight {
    border-left: 3px solid #16a34a;
    background: #f0fdf4;
    animation: thm-fade-highlight 2s ease-out;
}

@keyframes thm-fade-highlight {
    0% { background: #d1fae5; }
    100% { background: #f0fdf4; }
}

.application-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 600;
}

/* ========================================
   END CUSTOM STYLES
   ======================================== */