/* style.css - FOOTER VISIBILITY FIXED */

/* 1. GLOBAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #1a202c;
    line-height: 1.6;
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 2. NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a202c;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    background: #4a5568;
    color: #ffffff;
}

/* 3. MAIN CONTAINER */
.container {
    max-width: 850px;
    margin: 20px auto 40px auto;
    width: 95%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    flex: 1;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.subtitle { color: #e2e8f0 !important; }

main { padding: 30px; }

/* 4. TOOL STYLES */
.generator-section {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

select {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1a202c;
    font-size: 16px;
    font-weight: 600;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 180px;
}

button:hover { transform: translateY(-2px); }

.result {
    background: #ffffff;
    border: 2px dashed #cbd5e0;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.generated-name {
    font-size: 2.5rem;
    color: #2b6cb0;
    font-weight: 800;
    margin-bottom: 10px;
    word-break: break-word;
}

.copy-btn {
    width: auto;
    background: #48bb78;
    margin-top: 15px;
    font-size: 14px;
}

/* 5. HISTORY SECTION */
.history {
    margin-top: 20px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.history h3 { margin-top: 0; border: none; padding: 0; font-size: 1.1rem; }

.history-item {
    border-left: 3px solid #667eea;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #f7fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 6. TEXT & LIST STYLES */
h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    border-left: 6px solid #667eea;
    padding-left: 15px;
    padding-bottom: 10px;
}

h3 { margin-top: 25px; margin-bottom: 10px; color: #4a5568; }

/* General paragraph style (Dark Gray) */
p, li { color: #2d3748; font-size: 1.05rem; margin-bottom: 15px; }

ol {
    list-style: none;
    counter-reset: my-counter;
    padding-left: 0;
}
ol li {
    counter-increment: my-counter;
    position: relative;
    padding-left: 50px;
    margin-bottom: 15px;
}
ol li::before {
    content: counter(my-counter);
    background: #667eea;
    color: white;
    font-weight: bold;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    position: absolute;
    left: 0;
    top: -2px;
}

ul { list-style: none; padding-left: 0; }
ul li { position: relative; padding-left: 30px; margin-bottom: 10px; }
ul li::before {
    content: "➤";
    color: #764ba2;
    position: absolute;
    left: 0;
}

/* 7. ADVERTISEMENT SPOTS */
.ad-container {
    width: 100%;
    background: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.ad-label { color: #718096; font-size: 0.7rem; text-transform: uppercase; }

/* Ad Sizes */
.ad-header { max-width: 850px; margin: 20px auto; min-height: 90px; }
.ad-result { min-height: 250px; margin-top: 30px; background: #edf2f7; }
.ad-content { min-height: 150px; }

/* 8. FOOTER (THE FIX IS HERE) */
footer {
    background-color: #1a202c !important;
    text-align: center;
    padding: 40px 0;
    margin-top: 20px;
    width: 100%;
}

/* Force paragraph text inside footer to be WHITE */
footer p {
    color: #ffffff !important;
    opacity: 0.9;
}

.footer-links a {
    color: #63b3ed !important;
    text-decoration: none;
    margin: 0 10px;
}

/* 9. MOBILE RESPONSIVE */
.menu-toggle { display: none; }

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }
    .menu-toggle span { width: 25px; height: 3px; background: white; margin: 3px 0; }
    
    .nav-menu { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: #1a202c; flex-direction: column; padding: 20px; }
    .nav-menu.active { display: flex; }

    .controls { flex-direction: column; }
    button { width: 100%; }
}