/* ==========================================
   LRAL Website - Nolikumi (Contest Rules) Pages
   Shared styles for /nolikumi/ and every page under it:
   hub, HF 80m nolikums + rajonu apakšlapas, VUSHF čempionāts,
   UĪV proklamēšana (+ N1MM konfigurācija), YLAC, atskaišu paraugs.
   Previously each page carried its own near-identical <style> block;
   consolidated here so they stay visually consistent by construction.
   ========================================== */

/* ---- Hero band ----
   Matches the maroon-gradient hero used on the other Sacensības-family
   pages (sacensibu-rezultati, dx-sasniegumu-aptauja) — white text on a
   gradient band, not plain dark text on white. */
.nolikums-hero-section {
    background: linear-gradient(135deg, #73281E 0%, #994d3f 50%, #b85450 100%);
    padding: 100px 0 80px 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.nolikums-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    animation: nolikumsHeroPattern 20s linear infinite;
}
@keyframes nolikumsHeroPattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}
.nolikums-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.nolikums-hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    color: #ffffff !important;
}
.nolikums-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}
.nolikums-hero-content .nolikums-pdf-btn {
    margin-top: 24px;
}
/* .btn-secondary is maroon-on-transparent — invisible on this same-colour
   hero, so invert it to white-on-transparent here specifically.
   !important because the members plugin's frontend.css loads site-wide
   and pins .btn-secondary's colour with !important too; matching that is
   the only way a higher-specificity rule here actually wins. */
.nolikums-hero-content .btn-secondary {
    color: #ffffff !important;
    border-color: #ffffff !important;
}
.nolikums-hero-content .btn-secondary:hover {
    background-color: #ffffff !important;
    color: #73281E !important;
}
@media (max-width: 768px) {
    .nolikums-hero-section { padding: 70px 0 50px 0; }
    .nolikums-hero-title { font-size: 2.3rem; }
    .nolikums-hero-subtitle { font-size: 1.05rem; }
}

/* ---- Shared content typography ---- */
.nolikums-content {
    max-width: 900px;
    margin: 0 auto;
}
.nolikums-content p,
.nolikums-content li {
    line-height: 1.65;
    color: #374151;
}
.nolikums-content p:first-child {
    margin-top: 0;
}
.nolikums-content ul,
.nolikums-content ol {
    margin: 8px 0;
    padding-left: 20px;
}
.nolikums-content h2 {
    margin-top: 46px;
    color: #1f2937;
}
.nolikums-content h3 {
    margin-top: 28px;
    color: #1f2937;
}
.nolikums-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ---- Definition-style table (label column + content) ----
   Used by hf-80m-nolikums, vushf-championship, uiv-proklamesana,
   vhf-uhf-aktivitates (YLAC). */
.nolikums-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.nolikums-table th,
.nolikums-table td {
    text-align: left;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    vertical-align: top;
}
.nolikums-table th {
    width: 220px;
    background: #f8fafc;
    color: #73281E;
}
.nolikums-table tbody tr:nth-child(even) {
    background: #fafafa;
}

@media (max-width: 600px) {
    .nolikums-table th {
        width: auto;
        display: block;
    }
    .nolikums-table td {
        display: block;
    }
    .nolikums-table tr {
        display: block;
        margin-bottom: 6px;
    }
}

/* ---- Rajona data table (hf-80m-rajons): plain columns, no label width ---- */
.nolikums-rajons-table-wrap {
    overflow-x: auto;
}
.nolikums-rajons-table-wrap .nolikums-table th {
    width: auto;
    white-space: nowrap;
}

/* ---- PDF download button spacing (hero area) ---- */
.nolikums-pdf-btn {
    margin-top: 20px;
}

/* ---- "Back to nolikums" link (rajona / atskaišu paraugs / N1MM konfigurācija) ---- */
.nolikums-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #73281E;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
}
.nolikums-back-link:hover {
    text-decoration: underline;
}

/* ---- 6-tūru grafiks (hf-80m-nolikums) ---- */
.nolikums-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 20px 0 30px;
}
.nolikums-schedule {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
}
.nolikums-schedule h3 {
    margin-top: 0;
    font-size: 1.05rem;
}
.nolikums-schedule ol {
    margin: 0;
    padding-left: 20px;
}

/* ---- Rajonu saraksts grid (hf-80m-nolikums) ---- */
.nolikums-rajoni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin: 16px 0 30px;
}
.nolikums-rajons {
    display: block;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}
.nolikums-rajons:hover {
    border-color: #73281E;
    color: #73281E;
    box-shadow: 0 2px 10px rgba(115, 40, 30, 0.1);
}
.nolikums-rajons strong {
    color: #73281E;
}

/* ---- Rajona karte (hf-80m-rajons) ---- */
.nolikums-rajons-map {
    text-align: center;
    margin: 0 0 30px;
}
.nolikums-rajons-map img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ---- Atskaites paraugs (hf-atskaisu-paraugs) ---- */
.nolikums-code {
    background: #1f2937;
    color: #e5e7eb;
    padding: 18px 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ---- Brīdinājuma paziņojums (uiv-n1mm-konfiguracija) ---- */
.nolikums-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0 30px;
}
.nolikums-notice p {
    margin: 0;
    color: #92400e;
    font-size: 0.92rem;
}
.nolikums-steps {
    padding-left: 22px;
}
.nolikums-steps li {
    margin-bottom: 10px;
}

/* ---- Nolikumi hub (template-nolikumi.php) ---- */
.nolikumi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.nolikumi-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}
a.nolikumi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #73281E;
}
.nolikumi-card h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    color: #1f2937;
}
.nolikumi-card p {
    margin: 0 0 14px;
    color: #6b7280;
    line-height: 1.55;
    font-size: 0.95rem;
}
.nolikumi-card-link {
    color: #73281E;
    font-weight: 600;
    font-size: 0.92rem;
}
.nolikumi-card-external {
    background: #f8fafc;
}
.nolikumi-external-links {
    margin: 0;
    padding-left: 20px;
}
.nolikumi-external-links li {
    margin-bottom: 6px;
}
.nolikumi-external-links a {
    color: #73281E;
    font-weight: 600;
    font-size: 0.92rem;
}
