/*
Theme Name: GLG Modern Theme
Description: A modern responsive theme for the GLG platform with a green and white colour scheme. Provides a streamlined header, improved footer and better typography.
Version: 1.0
Author: GLG Development Team
License: GPL2
*/

/* Base styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

a {
    /* Primary link colour set to primary green */
    color: #009245;
}

a:hover {
    color: #007a40;
}

header.site-header {
    background-color: #009245; /* primary green header */
    color: #fff;
    padding: 20px;
}

header.site-header h1 {
    margin: 0;
    font-size: 24px;
}

nav.site-navigation {
    margin-top: 10px;
}

nav.site-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

nav.site-navigation li {
    margin: 0;
}

nav.site-navigation a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav.site-navigation a:hover {
    text-decoration: underline;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

footer.site-footer {
    /* the basic footer style will be overridden by modern theme styles below */
    background-color: #009245;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

/* Marketplace listings */
.glg-market-search input[type="text"] {
    padding: 8px;
    width: 70%;
    max-width: 300px;
    margin-right: 10px;
}
.glg-market-search button {
    padding: 8px 12px;
    background-color: #009245; /* primary green search button */
    color: #fff;
    border: none;
    cursor: pointer;
}
.glg-listings {
    list-style: none;
    margin: 0;
    padding: 0;
}
.glg-listing-item {
    border: 1px solid #e3e3e3;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
    background-color: #fafafa;
}
.glg-listing-item h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #009245; /* primary green listing title */
}
.glg-listing-item p {
    margin: 5px 0;
}

/* Listing form */
.glg-listing-form label,
.glg-fleet-form label,
.glg-registration-form label {
    font-weight: bold;
}
.glg-listing-form input[type="text"],
.glg-listing-form textarea,
.glg-fleet-form input[type="text"],
.glg-fleet-form input[type="datetime-local"],
.glg-registration-form input[type="text"],
.glg-registration-form input[type="email"],
.glg-registration-form input[type="password"] {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.glg-listing-form textarea {
    height: 120px;
}
.glg-listing-form button,
.glg-fleet-form button,
.glg-registration-form button {
    padding: 10px 20px;
    background-color: #009245; /* primary green buttons */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.glg-listing-form button:hover,
.glg-fleet-form button:hover,
.glg-registration-form button:hover {
    background-color: #007a40; /* darker green on hover */
}

/* HQ dashboard table */
.glg-hq-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin-top: 20px;
}
.glg-hq-table th,
.glg-hq-table td {
    padding: 8px;
    border-bottom: 1px solid #e3e3e3;
}
.glg-hq-table th {
    background-color: #009245; /* primary green table header */
    color: #fff;
}

/* Custom logo styling */
.site-logo img {
    max-height: 60px;
    height: auto;
    width: auto;
}

/* Ensure the built‑in logo file displays at a reasonable height */
.custom-logo-file {
    max-height: 60px;
    height: auto;
    width: auto;
}

/* Branding wrapper */
.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    color: #fff;
}

/* Wallet styling */
.glg-wallet {
    margin-top: 20px;
}

/*
 * Modern theme overrides
 * These styles redefine the header, navigation, footer and layout to
 * produce a responsive, elegant green/white design. They override
 * previous definitions but retain existing component styles (e.g.
 * Marketplace listings, forms, and tables) from the original GLG theme.
 */

/* General link styling */
a {
    color: #009245;
    text-decoration: none;
}
a:hover {
    color: #007a40;
    text-decoration: underline;
}

/* Header */
header.site-header {
    background-color: #ffffff;
    border-bottom: 3px solid #009245;
    padding: 10px 0;
}
.header-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.site-logo img {
    max-height: 50px;
    width: auto;
}
.main-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    flex: 1;
    padding: 10px 0;
}
.main-menu a {
    color: #009245;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.2s;
}
.main-menu a:hover {
    color: #007a40;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-actions .btn-login,
.header-actions .btn-register {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}
.header-actions .btn-login {
    background-color: transparent;
    border: 2px solid #009245;
    color: #009245;
}
.header-actions .btn-login:hover {
    background-color: #009245;
    color: #fff;
}
.header-actions .btn-register {
    background-color: #009245;
    border: 2px solid #009245;
    color: #fff;
}
.header-actions .btn-register:hover {
    background-color: #007a40;
    border-color: #007a40;
}
.lang-switch {
    font-size: 12px;
}
.lang-switch a {
    color: #009245;
    margin: 0 3px;
}
.lang-switch a:hover {
    color: #007a40;
}

/* Main container override */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

/* Footer */
footer.site-footer {
    background-color: #e8f5e9;
    color: #004d28;
    margin-top: 20px;
    font-size: 14px;
}
.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}
.footer-column {
    flex: 1 1 220px;
}
.footer-column h4 {
    margin-bottom: 10px;
    color: #009245;
    font-size: 18px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 5px;
}
.footer-column ul li a {
    color: #004d28;
}
.footer-column ul li a:hover {
    text-decoration: underline;
}
.social-links a {
    display: inline-block;
    margin-right: 10px;
    color: #009245;
}
.social-links a:hover {
    color: #007a40;
}
.footer-bottom {
    background-color: #d0ecd6;
    text-align: center;
    padding: 15px 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-menu {
        justify-content: flex-start;
        margin-top: 10px;
    }
    .header-actions {
        margin-top: 10px;
    }
    .footer-container {
        flex-direction: column;
    }
    .footer-column {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
}