
/* =========================================
   MOCHANGE - GLOBAL STYLESHEET
   Brand identity and responsive design
========================================= */

/* 1. BRAND COLORS */
:root {
    --primary: #FFA500;
    --primary-hover: #E69500;

    --background: #1F2937;
    --header: #111827;
    --card: #374151;

    --text: #FFFFFF;
    --text-secondary: #D1D5DB;
    --border: #4B5563;

    --radius: 10px;
    --transition: 0.3s ease;
}

/* 2. GENERAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* 3. HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 8%;
    background: var(--header);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    color: var(--primary);
    font-size: 28px;
    font-weight: bold;
}

/* 4. NAVIGATION */
nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: var(--text);
    font-weight: 600;
    transition: color var(--transition);
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

/* 5. PAGE CONTAINER */
.container {
    width: 84%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
}

/* 6. HERO SECTION */
.hero {
    text-align: center;
    padding: 110px 20px 90px;
    background: var(--background);
}

.hero h1 {
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.2;
    margin-bottom: 22px;
    color: var(--text);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    max-width: 650px;
    margin: 0 auto 32px;
    font-size: 18px;
    color: var(--text-secondary);
}

/* 7. BUTTONS */
.buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #172033;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--primary);
    color: #172033;
}

/* 8. CARDS AND FEATURES */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 75px 8%;
}

.feature,
.card {
    background: var(--card);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform var(--transition);
}

.feature:hover,
.card:hover {
    transform: translateY(-5px);
}

.feature h3,
.card h3 {
    color: var(--primary);
    margin-bottom: 12px;
}

.feature p,
.card p {
    color: var(--text-secondary);
}

/* 9. FORMS */
.form-container {
    width: 100%;
    max-width: 650px;
    margin: 40px auto;
    padding: 35px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9CA3AF;
}

/* 10. PAGE TITLES */
.page-title {
    text-align: center;
    margin-bottom: 35px;
}

.page-title h1 {
    font-size: clamp(30px, 5vw, 42px);
}

.page-title span {
    color: var(--primary);
}

.page-title p {
    color: var(--text-secondary);
    margin-top: 10px;
}

/* 11. FOOTER */
footer {
    text-align: center;
    padding: 25px;
    background: var(--header);
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* 12. ALERT MESSAGES */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #064E3B;
    color: #D1FAE5;
}

.alert-error {
    background: #7F1D1D;
    color: #FEE2E2;
}

/* 13. MOBILE RESPONSIVE DESIGN */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 18px;
        padding: 20px;
    }

    nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 75px 20px;
    }

    .hero p {
        font-size: 16px;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 45px 6%;
    }

    .container {
        width: 90%;
        padding: 35px 0;
    }

    .form-container {
        padding: 22px;
    }
}

@media (max-width: 400px) {

    nav {
        gap: 12px;
    }

    nav a {
        font-size: 14px;
    }

    .btn {
        width: 100%;
        max-width: 260px;
    }
}

/* MOCHANGE - LANGUAGE TABLE FORM */

.language-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 12px;
}

.language-options label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-secondary);
    font-weight: normal;
    cursor: pointer;
}

.language-options input[type="checkbox"] {
    width: auto;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-hint {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 9px;
}

.participant-info {
    background: var(--background);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 16px;
}

.participant-info strong {
    color: var(--primary);
    font-size: 20px;
    display: block;
}

.participant-info p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

@media (max-width: 400px) {
    .language-options {
        grid-template-columns: 1fr;
    }
}

.trial-notice {
    background: #374151;
    border: 1px solid #FFA500;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.trial-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

.trial-notice h3 {
    color: #FFA500;
    margin: 0 0 10px;
}

.trial-notice p {
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 12px;
}

.trial-notice strong {
    display: block;
    color: #FFA500;
    margin-bottom: 10px;
}

.trial-notice small {
    display: block;
    color: #D1D5DB;
    line-height: 1.5;
}

/* =====================================
   MOCHANGE - CREATE MEETUP PAGE
===================================== */

main.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 25px;
    color: #FFFFFF;
}

main.container h1 {
    color: #FFA500;
    font-size: 32px;
    margin-bottom: 12px;
    text-align: center;
}

main.container > p {
    color: #D1D5DB;
    text-align: center;
    margin-bottom: 35px;
    line-height: 1.7;
}

main.container .card {
    background: #374151;
    border: 1px solid #4B5563;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

main.container form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

main.container form label {
    display: block;
    color: #FFA500;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 3px;
}

main.container input,
main.container select,
main.container textarea {
    width: 100%;
    box-sizing: border-box;
    background: #1F2937;
    color: #FFFFFF;
    border: 1px solid #6B7280;
    border-radius: 8px;
    padding: 13px 15px;
    font-size: 15px;
    font-family: inherit;
    margin: 0;
}

main.container input:focus,
main.container select:focus,
main.container textarea:focus {
    outline: none;
    border-color: #FFA500;
    box-shadow: 0 0 0 2px rgba(255,165,0,0.2);
}

main.container input::placeholder,
main.container textarea::placeholder {
    color: #9CA3AF;
}

main.container textarea {
    resize: vertical;
    min-height: 110px;
}

main.container form hr {
    width: 100%;
    border: 0;
    border-top: 1px solid #4B5563;
    margin: 25px 0 15px;
}

main.container form h2 {
    color: #FFA500;
    font-size: 22px;
    margin: 5px 0 12px;
}

main.container .form-hint {
    color: #D1D5DB;
    background: #1F2937;
    border-left: 3px solid #FFA500;
    padding: 12px 15px;
    border-radius: 5px;
    line-height: 1.6;
    margin: 15px 0;
}

main.container form button {
    background: #FFA500;
    color: #111827;
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s ease;
}

main.container form button:hover {
    background: #E69500;
}

main.container .alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

@media (max-width: 600px) {
    main.container {
        margin: 20px auto;
        padding: 15px;
    }

    main.container .card {
        padding: 20px;
    }

    main.container h1 {
        font-size: 25px;
    }
}



.city-field {
    position: relative;
}

.city-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    width: 100%;
    margin: 0;
    padding: 5px 0;
    list-style: none;
    background: #374151;
    border: 1px solid #FFA500;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.city-suggestions.show {
    display: block;
}

.city-option {
    display: block;
    padding: 10px 14px;
    color: #FFFFFF;
    font-size: 15px;
    cursor: pointer;
    border-bottom: 1px solid #4B5563;
}

.city-option:last-child {
    border-bottom: none;
}

.city-option:hover,
.city-option:focus {
    background: #4B5563;
    outline: none;
}

/* MoChange City Dropdown - Final Fix */

.city-field {
    position: relative;
}

.city-field ul#city-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 !important;
    padding: 5px 0 !important;
    list-style: none !important;
    background: #374151;
    border: 1px solid #FFA500;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.city-field ul#city-suggestions.show {
    display: block;
}

.city-field ul#city-suggestions li.city-option {
    display: block;
    list-style: none !important;
    margin: 0 !important;
    padding: 11px 15px !important;
    color: #FFFFFF;
    font-size: 15px;
    border: none;
    border-bottom: 1px solid #4B5563;
    cursor: pointer;
}

.city-field ul#city-suggestions li.city-option:hover {
    background: #4B5563;
}

.city-field ul#city-suggestions li.city-option:last-child {
    border-bottom: none;
}
/* Google café autocomplete suggestions */
.form-group {
    position: relative;
}

ul#cafe-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 !important;
    padding: 5px 0 !important;
    list-style: none !important;
    background: #374151;
    border: 1px solid #FFA500;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 6px 15px rgba(0,0,0,.3);
}

ul#cafe-suggestions.show {
    display: block;
}

ul#cafe-suggestions li {
    display: block;
    list-style: none !important;
    margin: 0 !important;
    padding: 12px 15px !important;
    color: #FFFFFF;
    font-size: 14px;
    border-bottom: 1px solid #4B5563;
    cursor: pointer;
}

ul#cafe-suggestions li:hover {
    background: #4B5563;
}

ul#cafe-suggestions li:last-child {
    border-bottom: none;
}

/* =================================
   MY TABLES PAGE
================================= */

.my-tables-page {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
}

.my-tables-page h1 {
    color: #FFFFFF;
    margin-bottom: 10px;
}

.my-tables-page .page-subtitle {
    color: #D1D5DB;
    margin-bottom: 35px;
}

.my-tables-section {
    margin-bottom: 45px;
}

.my-tables-section h2 {
    color: #FFA500;
    font-size: 28px;
    margin-bottom: 25px;
    border-bottom: 1px solid #4B5563;
    padding-bottom: 12px;
}

.my-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.my-table-card {
    background: #374151;
    border: 1px solid #4B5563;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.my-table-card:hover {
    transform: translateY(-4px);
    border-color: #FFA500;
}

.my-table-card h3 {
    color: #FFFFFF;
    font-size: 21px;
    margin: 0 0 18px;
}

.my-table-card p {
    color: #D1D5DB;
    font-size: 15px;
    margin: 12px 0;
    line-height: 1.6;
}

.my-table-card strong {
    color: #FFFFFF;
}

.my-table-card .btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 22px;
    background: #FFA500;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 7px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.my-table-card .btn:hover {
    background: #E69500;
}

.my-tables-section > p {
    color: #D1D5DB;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .my-tables-page {
        width: 92%;
        margin: 30px auto;
    }

    .my-tables-page h1 {
        font-size: 30px;
    }

    .my-tables-section h2 {
        font-size: 23px;
    }

    .my-tables-grid {
        grid-template-columns: 1fr;
    }

    .my-table-card {
        padding: 20px;
    }
}

/* My Tables filters */

.table-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.table-filters .filter-btn {
    padding: 10px 24px;
    border: 1px solid #FFA500;
    border-radius: 7px;
    background: transparent;
    color: #FFFFFF;
    cursor: pointer;
    font-weight: 600;
}

.table-filters .filter-btn.active,
.table-filters .filter-btn:hover {
    background: #FFA500;
    color: #FFFFFF;
}

.my-table-card.hidden {
    display: none;
}
/* PUBLIC MEMBER PROFILE */

.member-profile-card {
    max-width: 800px;
    margin: 40px auto;
    padding: 35px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    text-align: center;
}

.member-profile-card > img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary);
    margin-bottom: 15px;
}

.member-profile-card h1 {
    color: var(--primary);
    margin-bottom: 8px;
}

.member-profile-card h2 {
    color: var(--primary);
    margin-top: 28px;
    margin-bottom: 12px;
}

.member-profile-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.member-profile-card strong {
    color: var(--text);
}

@media (max-width: 480px) {
    .member-profile-card {
        margin: 20px 10px;
        padding: 22px 15px;
    }

    .member-profile-card > img {
        width: 125px;
        height: 125px;
    }
}

}
/* WIDER DESKTOP MESSAGING PAGE */
@media (min-width: 769px) {
    main.container.inbox-page {
        width: 84%;
        max-width: 1600px;
        margin: 30px auto;
        padding: 30px 0;
    }
}
/* MOCHANGE - CHAT NAVIGATION ICON */

nav a.nav-chat {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFA500;
    width: 32px;
    height: 32px;
}

nav a.nav-chat svg {
    display: block;
    width: 23px;
    height: 23px;
    stroke: currentColor;
}

nav a.nav-chat:hover {
    color: #E69500;
}

.nav-chat {
    position: relative;
}


