/**
 * Theme Name:     Norrsken Child
 * Author:         Anders Norén
 * Template:       norrsken
 * Text Domain:	   norrsken-child
 * Description:    Norrsken is a simple block theme for blogs, with a stylish design inspired by the aurora borealis. Demo: https://norrsken.andersnoren.se
 */

/* Hide featured image on single job listings */
.single-job_listing .wp-post-image {
    display: none !important;
}

.job_filters .search_jobs div.search_remote_position {
  display: flex;
  align-items: center;   /* centers checkbox + text vertically */
  gap: 0.4em;            /* space between box and text */
}

.job_filters .search_jobs div.search_remote_position #remote_position {
  width: 1.5em;
  height: 1.5em;
}



/* Uniform spacing for all form fields to keep layout clean after removal */
.job-manager-form fieldset .form-row {
    margin-bottom: 1.5em; /* Adjust this value (e.g., 1em or 2em) if you want more/less space */
}

/* Company name block */
.single-job_listing .company-name {
    text-align: center;
    margin: 1.5em 0;
    padding: 1em;
    background: #e6f2fa; /* light blue background */
    border-radius: 0;    /* sharp edges */
}

/* Company name text */
.single-job_listing .company-name h2 {
    font-weight: 700;
    font-size: 1.8em;
    margin: 0 0 0.5em;
    color: #333;
    line-height: 1.3;
}

/* Website link styling */
.single-job_listing .company-name .company-website a {
    font-size: 0.95em;
    color: #0073aa; /* WordPress blue */
    text-decoration: none;
    font-weight: 500;
}

.single-job_listing .company-name .company-website a:hover {
    text-decoration: underline;
    color: #005177; /* darker blue on hover */
}


/* Remove any reserved space for logos in job listings */
.job_listing .company_logo {
    display: none !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 0 !important;
}

/* Reset the anchor wrapper that was reserving space for the logo */
.job_listing a {
    padding-left: 1.5rem !important; /* adjust to taste */
    display: block;                  /* ensures hover covers full row */
    transition: background-color 0.2s ease;
}

/* Reset the position block */
.job_listing .position {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.job_filters .search_jobs input,
.job_filters .search_jobs select {
    box-sizing: border-box;
    width: 100%;
    transition: background-color 0.2s ease; /* smooth fade */
}

/* Light blue tint on hover */
.job_filters .search_jobs input:hover,
.job_filters .search_jobs select:hover {
    background-color: rgba(230, 242, 250, 0.6);
}

/* Soft tint on hover for job listing rows */
.rp4wp-related-job_listing > ul li.job_listing a:hover,
.rp4wp-related-job_listing > ul li.no_job_listings_found a:hover,
ul.job_listings li.job_listing a:hover,
ul.job_listings li.no_job_listings_found a:hover {
    background-color: rgba(230, 242, 250, 0.5); /* light blue tint */
    transition: background-color 0.2s ease;
}


/* ================================
   ARCHIVE LISTINGS (job board page)
   ================================ */

/* Truncate long job titles and company names with ellipsis */
ul.job_listings .job_listing .position h3,
ul.job_listings .job_listing .company strong {
    display: block;
    white-space: nowrap;        /* keep on one line */
    overflow: hidden;           /* hide overflow */
    text-overflow: ellipsis;    /* add "…" */
    max-width: 100%;
}


/* ================================
   SINGLE JOB VIEW
   ================================ */

/* Allow full wrapping on single job page */
.single-job_listing .job_listing .position h3,
.single-job_listing .job_listing .company strong {
    white-space: normal;
    word-wrap: break-word;
    hyphens: auto;
    overflow: visible;
    text-overflow: unset;
    cursor: default;
}



/* Style the dashboard search input */
.jm-dashboard__filters input[type="search"] {
    border-radius: 0 !important;              /* sharp edges */
    transition: background-color 0.2s ease,
                box-shadow 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

/* Soft tint on hover */
.jm-dashboard__filters input[type="search"]:hover {
    background-color: rgba(230, 242, 250, 0.6); /* light blue tint */
}


/* Force Add Job button to have sharp edges only */
/* Make JM UI buttons sharp and flat (no border radius) */
.jm-ui-button,
.jm-ui-button--icon,
.jm-ui-button--link,
.jm-ui-button--outline {
    border-radius: 0 !important; /* Flat edges, overrides the 4px radius */
}


/* Make JM UI notices sharp and flat (no border radius) */
.jm-notice,
.jm-notice.type-dialog {
    border-radius: 0 !important; /* Flat edges, overrides the variable radius */
}

/* Light blue tint on hover for application buttons */
.job-manager-application-wrapper .application .application_button:hover,
.single_job_listing .application .application_button:hover {
    background-color: rgba(230, 242, 250, 0.7); /* soft light blue */
    transition: background-color 0.2s ease;
    border-radius: 0; /* optional: keep sharp edges if you want consistency */
}

/* Style Preview and Submit buttons */
input[type="submit"],
button[type="submit"] {
    background-color: var(--wp--preset--color--base);
    border: 1px solid var(--wp--preset--color--contrast-4);
    border-radius: 0; /* optional: keep sharp edges */
    padding: 0.9em 2em;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Light blue tint on hover */
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: rgba(230, 242, 250, 0.7); /* soft light blue */
}

/* Light blue tint + subtle glow on focus (keyboard users) */
input[type="submit"]:focus,
button[type="submit"]:focus {
    background-color: rgba(230, 242, 250, 0.85);
    outline: none;
    box-shadow: 0 0 4px rgba(0, 120, 200, 0.3);
}


/* Base style for checkboxes and radios */
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    width: 1.5em;
    height: 1.5em;
    border: 1px solid var(--wp--preset--color--contrast-4);
    border-radius: 0; /* sharp edges */
    background-color: var(--wp--preset--color--base);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover tint */
input[type="checkbox"]:hover,
input[type="radio"]:hover {
    background-color: rgba(230, 242, 250, 0.6); /* light blue tint */
}

/* Checked state */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: rgba(0, 120, 200, 0.8); /* stronger blue when selected */
    border-color: rgba(0, 120, 200, 0.8);
}

/* Focus state (keyboard users) */
input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 4px rgba(0, 120, 200, 0.4);
}



/* Hide (optional) for specific fields */
.job-manager-form fieldset.fieldset-job_email label small,
.job-manager-form fieldset.fieldset-create_account_email label small,
.job-manager-form fieldset.fieldset-create_account_username label small,
.job-manager-form fieldset.fieldset-job_location label small,
.job-manager-form fieldset.fieldset-job_salary label small,
.job-manager-form fieldset.fieldset-job_salary_currency label small,
.job-manager-form fieldset.fieldset-job_salary_unit label small,
.job-manager-form fieldset.fieldset-company_website label small {
    display: none !important;
}

/* Make the checkbox + label sit side by side and vertically centered */
.job-manager-form .full-line-checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5em; /* space between box and text */
}

.job_filters .search_submit input[type="submit"] {
  background-color: #FFD700; /* bright yellow (golden) */
}

/* Hover + focus state */
.job_filters .search_submit input[type="submit"]:hover,
.job_filters .search_submit input[type="submit"]:focus {
  background-color: #87CEFA; /* light sky blue */
}


/* Optional: keep the tint when focused (clicked into) */
.job_filters .search_jobs input:focus,
.job_filters .search_jobs select:focus {
    background-color: rgba(230, 242, 250, 0.8);
    outline: none; /* remove default browser outline */
}

.single_job_listing .meta .salary:before {
  content: "💰";       /* example: emoji instead of briefcase */
  margin-right: 6px;   /* space between icon and amount */
}

