/*
================================================================================
File: assets/help.css
Function: Responsive styling for the GMA Help Center
Author: Mario H. Fietz, DL4MFM + Assist
Version: 0.1
Timestamp: 2nd May 21:38 EEST
History:
- 0.1 Initial responsive stylesheet for help pages
================================================================================
*/

:root {
    --gma-blue: #00ADEF;
    --text: #1f2933;
    --muted: #5f6b7a;
    --bg: #f4f8fb;
    --card: #ffffff;
    --border: #d8e3ea;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

.help-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px;
}

.help-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.help-kicker {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

h1 {
    margin: 0;
    font-size: 2rem;
}

h2 {
    margin-top: 28px;
    color: #17324d;
}

.help-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(15, 35, 55, 0.08);
}

.summary-box {
    background: var(--gma-blue);
    color: #ffffff;
    padding: 16px;
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 22px;
}

.language-switch {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.language-switch a {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--gma-blue);
    background: #ffffff;
    border: 1px solid var(--gma-blue);
    font-weight: bold;
}

.language-switch a.active {
    color: #ffffff;
    background: var(--gma-blue);
}

.topic-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.topic-list a {
    display: block;
    padding: 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
}

.topic-list a:hover {
    border-color: var(--gma-blue);
}

.help-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.back-button,
.help-home {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.back-button {
    background: var(--gma-blue);
    color: #ffffff;
}

.help-home {
    background: #ffffff;
    color: var(--gma-blue);
    border: 1px solid var(--gma-blue);
}

@media (max-width: 700px) {
    .help-page {
        padding: 12px;
    }

    .help-header {
        flex-direction: column;
    }

    h1 {
        font-size: 1.55rem;
    }

    .topic-list {
        grid-template-columns: 1fr;
    }
}


/* Additional diagram styling for references.php */

.info-diagram {
    margin: 22px 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f9fcfe;
}

.diagram-title {
    font-weight: bold;
    color: #17324d;
    margin-bottom: 12px;
}

.diagram-main {
    background: var(--gma-blue);
    color: #ffffff;
    font-weight: bold;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    text-align: center;
}

.diagram-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.diagram-row.diagram-small {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.diagram-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    font-weight: bold;
}

.diagram-box span {
    display: block;
    color: var(--muted);
    font-weight: normal;
    font-size: 0.9rem;
    margin-top: 4px;
}

@media (max-width: 700px) {
    .diagram-row,
    .diagram-row.diagram-small {
        grid-template-columns: 1fr;
    }
}

/* Styling for frequencies.php */

.warning-box {
    background: #fff2bf;
    color: #222222;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin: 18px 0 26px 0;
}

.small-muted {
    color: var(--muted);
    font-size: 0.9rem;
}

.freq-table {
    width: 100%;
    margin-top: 12px;
}

.freq-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #eeeeee;
    font-weight: bold;
    text-align: center;
}

.freq-head div {
    padding: 14px;
}

.band-title {
    background: #005394;
    color: #ffffff;
    padding: 10px 18px;
    font-size: 1.15rem;
    margin-top: 16px;
}

.freq-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 12px 14px;
}

.freq-item {
    padding: 4px 0;
    border-bottom: 1px solid #edf0f2;
}

.gma-red {
    color: #ff0000;
    font-weight: bold;
}

.ukw-title {
    margin-top: 26px;
}

.ukw-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.ukw-head {
    display: contents;
    font-weight: bold;
}

.ukw-head div,
.ukw-cell,
.ukw-band {
    padding: 12px 14px;
    border-bottom: 1px solid #dfe5ea;
}

.ukw-band {
    font-weight: bold;
}

.freq-note {
    margin-top: 22px;
    text-align: center;
    font-style: italic;
}

@media (max-width: 700px) {
    .freq-head,
    .freq-row {
        grid-template-columns: 1fr;
    }

    .freq-head div:nth-child(2) {
        display: none;
    }

    .freq-row {
        gap: 6px;
        padding: 10px 8px;
    }

    .freq-col + .freq-col {
        margin-top: 10px;
    }

    .freq-col + .freq-col:before {
        content: "SSB";
        display: block;
        font-weight: bold;
        background: #eeeeee;
        padding: 8px;
        margin-bottom: 6px;
        text-align: center;
    }

    .freq-col:first-child:before {
        content: "CW";
        display: block;
        font-weight: bold;
        background: #eeeeee;
        padding: 8px;
        margin-bottom: 6px;
        text-align: center;
    }

    .ukw-table {
        grid-template-columns: 1fr;
    }

    .ukw-head {
        display: none;
    }

    .ukw-band:nth-child(2n) {
        display: none;
    }

    .ukw-cell:nth-child(2n) {
        color: var(--muted);
        padding-top: 0;
    }
}

/* Styling for rules.php */

.rules-intro {
    margin-bottom: 20px;
    line-height: 1.5;
    color: var(--text);
}

.download-list {
    margin-top: 20px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #dde5ea;
}

.download-item:hover {
    background: #f9fcfe;
}

.rule-title {
    flex: 1;
    font-weight: bold;
    color: var(--text);
}

.flag-icon {
    border: 1px solid #cccccc;
    margin-right: 8px;
    vertical-align: -3px;
}

.btn-download,
.btn-link {
    display: inline-block;
    min-width: 92px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    box-sizing: border-box;
}

.btn-download {
    background: #005394;
}

.btn-download:hover {
    background: #006ebf;
}

.btn-link {
    background: #009b2f;
    min-width: 74px;
    margin: 4px 6px 4px 0;
}

.btn-link:hover {
    background: #00b83a;
}

.link-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.section-divider {
    margin: 30px 0 8px 0;
    font-weight: bold;
    color: #666666;
    border-bottom: 3px solid #005394;
    padding-bottom: 6px;
}

.rules-note {
    margin-top: 22px;
    color: var(--muted);
    font-style: italic;
}

@media (max-width: 700px) {
    .download-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .link-group {
        justify-content: flex-start;
    }

    .btn-download,
    .btn-link {
        margin-top: 4px;
    }
}


/* Styling for gmac.php */

.gmac-highlight {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #222222;
    padding: 15px;
    margin: 18px 0 24px 0;
    border-radius: 6px;
    text-align: center;
}

.btn-download-inline {
    display: inline-block;
    background: #005394;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: bold;
}

.btn-download-inline:hover {
    background: #006ebf;
}
