/* Harbour Assist - Frontend Styles */

/* Login Form */
.hamr-login-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 20px;
}

.hamr-login-box,
.hamr-account-box,
.hamr-gdpr-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hamr-login-box h2,
.hamr-account-box h3,
.hamr-gdpr-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2271b1;
    text-align: center;
}

.hamr-login-error {
    background: #f8d7da;
    border: 1px solid #dc3545;
    border-left: 4px solid #dc3545;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hamr-form-field {
    margin-bottom: 20px;
}

.hamr-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.hamr-form-field input[type="text"],
.hamr-form-field input[type="password"],
.hamr-form-field input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.hamr-form-field input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.hamr-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.hamr-button-primary {
    background: #2271b1;
    color: #fff;
    width: 100%;
}

.hamr-button-primary:hover {
    background: #135e96;
    color: #fff;
}

.hamr-button-secondary {
    background: #f0f0f1;
    color: #2271b1;
    border: 1px solid #2271b1;
}

.hamr-button-secondary:hover {
    background: #2271b1;
    color: #fff;
}

.hamr-login-note {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

/* Account Info */
.hamr-account-info {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
}

.hamr-account-details {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.hamr-account-details p {
    margin: 10px 0;
}

.hamr-account-box .hamr-button {
    display: block;
    width: 100%;
    margin-top: 20px;
}

/* GDPR Consent */
.hamr-gdpr-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.hamr-gdpr-content {
    margin: 20px 0;
}

.hamr-gdpr-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.hamr-gdpr-content li {
    margin: 8px 0;
}

.hamr-gdpr-form {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.hamr-gdpr-form label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    cursor: pointer;
}

.hamr-gdpr-form input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
}

/* Directory Notice */
.hamr-directory-notice,
.hamr-directory-error {
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.hamr-directory-notice {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.hamr-directory-error {
    background: #f8d7da;
    border: 1px solid #dc3545;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .hamr-login-container,
    .hamr-account-info,
    .hamr-gdpr-container {
        padding: 10px;
    }
    
    .hamr-login-box,
    .hamr-account-box,
    .hamr-gdpr-box {
        padding: 20px 15px;
    }
}

/* Member Navigation Bar [ha_member_nav] */
.hamr-member-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 1.4;
}

.hamr-member-nav__greeting {
    font-weight: 600;
    color: #333;
}

.hamr-member-nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hamr-member-nav__link {
    color: #2271b1;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}

.hamr-member-nav__link:hover {
    background: #f0f0f1;
    color: #135e96;
    text-decoration: none;
}

.hamr-member-nav__links .hamr-member-nav__link + .hamr-member-nav__link::before {
    content: "";
    display: inline-block;
}

.hamr-member-nav__link--logout {
    color: #a00;
}

.hamr-member-nav__link--logout:hover {
    background: #f8d7da;
    color: #721c24;
}

.hamr-member-nav__link--login {
    font-weight: 600;
}

@media screen and (max-width: 600px) {
    .hamr-member-nav {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Order Confirmation Messages */
.hamr-order-confirmation {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 4px;
}

.hamr-order-success {
    background: #edfaef;
    border: 1px solid #46b450;
    color: #1e4620;
}

.hamr-order-error {
    background: #fcf0f1;
    border: 1px solid #d63638;
    color: #8b1a1d;
}

.hamr-order-confirmation p {
    margin: 4px 0;
}

.hamr-order-confirmation code {
    background: rgba(0,0,0,0.06);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}
