/*
Theme Name: RealMe Custom
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A custom theme replicating the RealMe design with dynamic header/footer.
Version: 1.0
License: GPL v2 or later
Text Domain: realme-theme
*/

/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==== NEW: sticky footer setup ==== */
html, body {
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ====== HEADER ====== */
.site-header {
    background: #0047AB;
    color: #fff;
    border-bottom: 2px solid #003380;
    flex-shrink: 0;   /* prevent shrinking */
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-header .header-left {
    font-size: 1.5rem;
    font-weight: bold;
}

.site-header .header-left a {
    color: #fff;
    text-decoration: none;
}

.site-header .header-right a {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.site-header .header-right a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ====== MAIN CONTENT ====== */
.site-main {
    flex: 1 0 auto;           /* grow to fill space, don't shrink */
    width: 100%;              /* needed for centering with flex */
    max-width: 1200px;
    padding: 2rem;
    margin: 0 auto 2rem auto; /* top=0, bottom remains 2rem */
    background: #fff;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login_page {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* ====== FOOTER ====== */
.site-footer {
    background: #d63300;        /* dark red */
    color: #fff;
    padding: 1.5rem 0;
    margin-top: 0;              /* sits flush under the main content */
    text-align: left;
    flex-shrink: 0;            /* prevent shrinking */
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-footer .footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 0 1rem 0;
    padding: 0;
}

.site-footer .footer-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.site-footer .footer-menu li a:hover {
    text-decoration: underline;
}

.site-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #fff;
}

.site-footer .footer-bottom .language-switcher a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.3rem;
}

.site-footer .footer-bottom .language-switcher a:hover {
    text-decoration: underline;
}

/* ====== LOGIN PAGE (optional template) ====== */
.login-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.login-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
}

.login-form,
.create-account {
    flex: 1 1 40%;
    min-width: 280px;
}

.login-form h1,
.create-account h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0047AB;
}

.login-form p,
.create-account p {
    margin-bottom: 1.5rem;
    color: #333;
}

.realme-login-form .form-group {
    margin-bottom: 1.5rem;
}

.realme-login-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
}

.realme-login-form input[type="text"],
.realme-login-form input[type="password"] {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-actions {
    margin-top: 1.5rem;
}

.login-btn {
    background: #0047AB;
    color: #fff;
    border: none;
    padding: 0.6rem 2.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #003380;
}

.forgot-links {
    margin-top: 0.8rem;
}

.forgot-links a {
    color: #0047AB;
    text-decoration: none;
}

.forgot-links a:hover {
    text-decoration: underline;
}

.create-btn {
    display: inline-block;
    background: #7A1A1A;
    color: #fff;
    padding: 0.6rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.3s;
}

.create-btn:hover {
    background: #5c1313;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    .login-form,
    .create-account {
        flex: 1 1 100%;
    }
}

@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.5rem;
    }
    .site-footer .footer-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .site-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .site-footer .footer-bottom .language-switcher {
        align-self: flex-start;
    }
}