/* Naijabased/assets/css/main.css */
/* Reset and base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fefefe;
    color: #222;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    justify-content: center;
}

.logo {
    width: 80px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.cta-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

button, select, input, textarea {
    font-size: 1rem;
    border-radius: 8px;
    border: 1.5px solid #ddd;
    padding: 14px 16px;
    width: 100%;
    transition: border-color 0.3s ease;
    font-family: inherit;
    color: #222;
}

button {
    cursor: pointer;
    border: none;
}

button.btn-primary {
    background-color: #008753;
    color: white;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 10px rgb(30 144 255 / 0.4);
    transition: background-color 0.3s ease;
}

button.btn-primary:hover,
button.btn-primary:focus {
    background-color: #176fcb;
    outline: none;
    box-shadow: 0 0 8px #176fcb;
}

button.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1.5px solid #ccc;
    font-weight: 600;
    margin-top: 12px;
}

button.btn-secondary:hover,
button.btn-secondary:focus {
    background-color: #e0e0e0;
    outline: none;
}

.back-button {
    background: none;
    border: none;
    color: #008753;
    font-size: 1rem;
    cursor: pointer;
    align-self: flex-start;
    margin-bottom: 24px;
    font-weight: 600;
}

.back-button:hover,
.back-button:focus {
    text-decoration: underline;
    outline: none;
}

select:focus, input:focus, textarea:focus {
    border-color: #008753;
    outline: none;
    box-shadow: 0 0 5px #008753aa;
}

input[type="search"] {
    font-size: 1rem;
}

.results-list {
    margin-top: 20px;
    width: 100%;
    padding-left: 0;
    list-style: none;
    text-align: left;
    color: #444;
}

.results-list li {
    background: #f3f3f3;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.3;
}

footer {
    font-size: 0.9rem;
    color: #666;
    padding: 16px 10px;
    text-align: center;
    background-color: #f1f1f1;
    width: 100%;
    /* Removed fixed positioning */
    /* position: fixed; */
    /* bottom: 0; */
    /* left: 0; */
}

footer a {
    color: #008753;
    text-decoration: none;
}

footer a:hover,
footer a:focus {
    text-decoration: underline;
    outline: none;
}

/* Hide sections by default */
#exploreSection, #shareSection {
    display: none;
    min-height: calc(100vh - 80px); /* accommodate fixed footer */
    justify-content: flex-start;
    padding-top: 40px;
    text-align: left;
}

/* Show active sections */
#exploreSection.active,
#shareSection.active {
    display: flex;
}

/* Responsive: smaller fonts on small screens */
@media (max-width: 360px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
}
