/* Site styles for nerd-farm.com, moved out of main.php so crawlers get a leaner page. */

iron-pages>.Data_Editor_Container:not(.iron-selected) {
    display: none !important;
}

.Data_Editor_Container {
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Inter', sans-serif !important;
}

h1,
h2,
h3,
.Entry_Header,
.Page_Header {
    font-family: 'Roboto', sans-serif !important;
}

.glass-card {
    background: rgba(30, 21, 45, 0.40);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(121, 86, 202, 0.2);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(121, 86, 202, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #7956ca 0%, #543d8a 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8a65db 0%, #684bb5 100%);
    box-shadow: 0 4px 15px rgba(121, 86, 202, 0.8);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* The trademark glyph already sits raised and small, so it only needs a nudge */
.tm {
    font-size: 0.8em;
    vertical-align: 0.15em;
    line-height: 0;
}

.btn-secondary {
    background: rgba(121, 86, 202, 0.1);
    color: #cfbcfc;
    border: 1px solid #7956ca;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(121, 86, 202, 0.6);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.hero-section {
    text-align: center;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 800;
    background: linear-gradient(to right, #cfbcfc, #8a65db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25em;
    color: #bfaee3;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    padding: 20px;
}

.product-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(121, 86, 202, 0.3);
    padding-bottom: 15px;
}

.product-logo {
    width: 60px;
    margin-right: 20px;
}

.product-name {
    font-size: 1.8em;
    margin: 0;
    color: #fff;
}

.product-tagline {
    font-weight: 600;
    color: #bfaee3;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.product-body {
    text-align: left;
    margin-bottom: 30px;
    color: #d1c5ea;
    line-height: 1.6;
    font-size: 1.05em;
}

.product-body p {
    margin-bottom: 15px;
}

.product-footer {
    text-align: left;
}

.section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(121, 86, 202, 0.4);
    padding-bottom: 10px;
    display: inline-block;
}

.job-title {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.6em;
    margin: 10px 0 15px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0 0 25px;
    padding: 0;
}

.job-meta li {
    color: #cfbcfc;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(121, 86, 202, 0.15);
    border: 1px solid rgba(121, 86, 202, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
}

.job-subtitle {
    color: #bfaee3;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    margin: -8px 0 18px;
}

/* Long-form listing body. Left-aligned so it reads like a brief, not a banner */
.job-details {
    text-align: left;
    margin-bottom: 30px;
}

.job-details::after {
    content: "";
    display: block;
    clear: both;
}

.job-details .section-body {
    margin-bottom: 20px;
}

.job-details h4 {
    clear: both;
    color: #cfbcfc;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25em;
    margin: 30px 0 10px;
}

.job-details ul {
    color: #d1c5ea;
    font-size: 1.1em;
    line-height: 1.7;
    margin: 0 0 20px;
    padding-left: 22px;
}

.job-details ul ul {
    font-size: 1em;
    margin: 0;
}

.job-details strong {
    color: #fff;
}

/* Character reference that sits beside the intro copy */
.character-feature {
    float: right;
    width: 220px;
    margin: 0 0 20px 30px;
    text-align: center;
}

.character-feature img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 24px rgba(121, 86, 202, 0.45));
}

.character-feature figcaption {
    font-family: 'Outfit', sans-serif;
    color: #bfaee3;
    font-size: 0.95em;
    margin-top: 12px;
}

.character-feature figcaption strong {
    display: block;
    color: #fff;
    font-size: 1.35em;
    margin-top: 4px;
}

.job-callout {
    background: rgba(121, 86, 202, 0.12);
    border: 1px solid rgba(121, 86, 202, 0.35);
    border-radius: 8px;
    padding: 14px 18px;
    color: #e4dafa;
    line-height: 1.6;
    margin: 0 0 25px;
}

@media (max-width: 600px) {
    .character-feature {
        float: none;
        width: 180px;
        margin: 0 auto 25px;
    }
}

/* Collapsible card, built on the native details element so it works without JS */
.collapse-card {
    padding: 0;
}

.collapse-card>summary {
    list-style: none;
    cursor: pointer;
    padding: 30px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.collapse-card>summary::-webkit-details-marker {
    display: none;
}

.collapse-card>summary>.section-title {
    border-bottom: none;
    margin-bottom: 0;
}

.collapse-card>summary>paper-icon-button {
    color: #cfbcfc;
    flex: none;
    align-self: center;
    /* Overrides paper-icon-button's own 40px :host sizing. It is
       border-box, so padding sets how much of the 60px the glyph fills. */
    width: 60px;
    height: 60px;
    padding: 12px;
    --paper-icon-button-ink-color: #cfbcfc;
}

.collapse-card>summary:hover>paper-icon-button {
    color: #fff;
}

/* Only one chevron shows at a time, driven by the open state */
.collapse-card:not([open])>summary>.collapse-icon-less,
.collapse-card[open]>summary>.collapse-icon-more {
    display: none;
}

.collapse-body {
    padding: 0 30px 30px;
    text-align: left;
}

.collapse-body h3 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5em;
    margin: 35px 0 10px;
}

.collapse-body h4 {
    color: #cfbcfc;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15em;
    margin: 25px 0 8px;
}

.collapse-body ul {
    color: #d1c5ea;
    font-size: 1.1em;
    line-height: 1.7;
    margin: 0 0 20px;
    padding-left: 22px;
}

.collapse-body .section-body {
    margin-bottom: 20px;
}

.collapse-body strong {
    color: #fff;
}

.collapse-body hr {
    border: none;
    border-top: 1px solid rgba(121, 86, 202, 0.25);
    margin: 30px 0;
}

.text-center {
    text-align: center;
    display: block;
    border-bottom: none;
}

.section-body {
    font-size: 1.1em;
    color: #d1c5ea;
    line-height: 1.7;
    margin-bottom: 30px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.team-member-card {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-picture {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 4px solid #7956ca;
    box-shadow: 0 0 20px rgba(121, 86, 202, 0.5);
}

.team-name {
    font-size: 1.6em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.team-title {
    font-size: 1.1em;
    color: #8a65db;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-text {
    font-size: 1em;
    color: #bfaee3;
    line-height: 1.6;
    text-align: left;
    hyphens: auto;
}

@media (max-width: 629px) {

    .collapse-card>summary {
        padding: 20px;
        gap: 12px;
        /* Let the heading wrap its own lines rather than pushing the button down */
        flex-wrap: nowrap;
    }

    .collapse-card>summary>.section-title {
        font-size: 1.5em;
        min-width: 0;
    }
}

@media (max-width: 768px) {

    .products-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.2em;
    }
}

@media (max-width: 450px) {
    .products-grid {
        padding: 0;
        width: 100%;
        gap: 20px;
    }

    .product-card {
        padding: 20px;
    }

    .hero-section {
        padding-left: 4px;
        padding-right: 4px;
    }
}

@media (max-width: 400px) {
    .products-grid {
        padding: 0;
        width: 100%;
        gap: 20px;
    }

    .product-card {
        padding: 20px;
    }

    .hero-section {
        padding-left: 4px;
        padding-right: 4px;
    }
}
