
/* STAGE 01 - COLOUR VARIABLES */

:root {
    --navy: #132B49;
    --gold: #D6AD44;
    --white: #FFFFFF;
    --light-grey: #F4F6F8;
    --success: #267344;
    --error: #B91C1C;
}

/* STAGE 02 - GENERAL STYLING */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--light-grey);
    color: var(--navy);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* STAGE 03 - HEADER */

.site-header {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 35px 20px;
    border-bottom: 5px solid var(--gold);
}

.site-header h1 {
    margin: 0;
}

.site-header p {
    color: var(--gold);
    margin: 5px 0;
}

/* STAGE 04 - MAIN CONTENT */

.container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
}

.club-notices h2 {
    margin-top: 0;
}

#notice-status {
    font-size: 0.9rem;
}

#notice-status.success {
    color: var(--success);
}

#notice-status.error {
    color: var(--error);
}

/* STAGE 05 - NOTICE CARDS */

#notices-container {
    display: grid;
    gap: 15px;
}

.notice-card {
    background: var(--white);
    border-left: 5px solid var(--gold);
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.notice-card h3 {
    margin: 0 0 8px;
}

.notice-card p {
    margin: 0;
    overflow-wrap: anywhere;
}

/* STAGE 06 - BUTTON */

#refresh-notices {
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    margin-top: 25px;
    font-size: 1rem;
    cursor: pointer;
}

#refresh-notices:hover {
    background: var(--gold);
    color: var(--navy);
}

#refresh-notices:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* STAGE 07 - FOOTER */

.site-footer {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 15px;
    font-size: 0.85rem;
}

/* STAGE 08 - MOBILE */

@media (max-width: 600px) {

    .site-header h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 20px 15px;
    }

    #refresh-notices {
        width: 100%;
    }

}
