/* --- Google Fonts: Poppins --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #FF0000; /* YouTube Red */
    --secondary-color: #282828; /* YouTube Dark Gray */
    --background-color: #f9f9f9;
    --text-color: #030303;
    --container-bg: #ffffff;
    --border-color: #ddd;
    --success-color: #28a745;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    padding-top: 80px; /* Space for fixed navbar */
}

/* --- Navigation Bar --- */
.navbar {
    background-color: var(--container-bg);
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.nav-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-menu li { margin-left: 35px; }
.nav-menu a { text-decoration: none; color: var(--secondary-color); font-weight: 600; transition: color 0.3s; }
.nav-menu a:hover { color: var(--primary-color); }

.nav-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 5px;
}

/* --- Main Content & Form --- */
.container {
    max-width: 900px;
    margin: 40px auto;
    background: var(--container-bg);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
    margin-bottom: 35px;
}

header h1 { margin: 0; color: var(--primary-color); font-weight: 700; font-size: 2.5rem; }
header p { font-size: 1.1rem; color: #555; }
h2 { font-weight: 600; color: var(--secondary-color); margin-top: 30px; margin-bottom: 20px; }

.input-group { margin-bottom: 25px; }
label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 1rem; }

input[type=text], select {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus, select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2); }

button#generate-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    background: linear-gradient(90deg, var(--primary-color), #c00);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    margin-top: 10px;
}
button#generate-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4); }

/* --- Results Section --- */
#results-container { margin-top: 40px; }
#results-list { list-style: none; padding: 0; }
#results-list li {
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s;
}
#results-list li:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.title-text { flex-grow: 1; margin-right: 15px; font-size: 1.05rem; }

.copy-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.3s;
}
.copy-btn:hover { background: #000; }
.copy-btn.copied { background: var(--success-color); }

/* --- Ads & Static Pages --- */
.ad-placeholder-container { margin: 40px auto; text-align: center; }
.ad-label { display: block; font-size: 0.8rem; color: #6c757d; margin-bottom: 10px; font-weight: 600; text-transform: uppercase; }
.ad-box { display: inline-flex; align-items: center; justify-content: center; background-color: #e9ecef; border-radius: 4px; margin: auto; border: 1px dashed var(--border-color); }
.static-page-content h1 { font-size: 2.2rem; color: var(--secondary-color); }
.static-page-content h2 { font-size: 1.5rem; margin-top: 40px; }
.static-page-content p, .static-page-content li { font-size: 1rem; color: #444; }

/* --- Footer --- */
footer { text-align: center; margin-top: 40px; padding: 25px 0; border-top: 1px solid var(--border-color); }
.footer-nav { margin-bottom: 20px; }
.footer-nav a { color: #555; text-decoration: none; margin: 0 15px; font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; color: var(--primary-color); }
footer p { font-size: 0.9rem; color: #777; margin: 0; }

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    body { padding-top: 70px; }
    .nav-brand { font-size: 1.3rem; white-space: nowrap; }
    .nav-menu { display: none; position: absolute; top: 70px; left: 0; width: 100%; background-color: #fff; flex-direction: column; text-align: center; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
    .nav-menu.active { display: flex; }
    .nav-menu li { margin: 0; width: 100%; }
    .nav-menu a { display: block; padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
    .nav-toggle { display: block; }
    .container { padding: 20px; }
    header h1 { font-size: 2rem; }
    #results-list li { flex-direction: column; align-items: flex-start; }
    .title-text { margin-bottom: 10px; }
}

/* Ad Box Responsive */
.ad-placeholder-container.top-ad .ad-box,
.ad-placeholder-container.content-ad .ad-box { max-width: 300px; min-height: 250px; width: 100%; }

@media (min-width: 768px) {
    .ad-placeholder-container.top-ad .ad-box { max-width: 728px; min-height: 90px; }
    .ad-placeholder-container.content-ad .ad-box { max-width: 336px; min-height: 280px; }
}
