@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --bg-base: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #202124;
    --text-dim: #5f6368;
    --accent: #1a73e8;
    --accent-hover: #1557b0;
    --border: #dadce0;
    --r-lg: 24px;
    --r-sm: 8px;
    --shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    --shadow-hover: 0 4px 12px rgba(32, 33, 36, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-base);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* TOPNAV */
.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.topnav-links {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.topnav-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.logo-sm {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.5px;
}

/* SEARCH HERO (INDEX) */
.search-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 50px;
    text-align: center;
}

.hero-logo {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -2px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 0 #ccc;
}

.search-wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 15px 25px 15px 50px;
    font-size: 1.1rem;
    border: 1px solid var(--border);
    border-radius: 30px;
    outline: none;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.search-input:hover,
.search-input:focus {
    box-shadow: 0 2px 8px rgba(32, 33, 36, 0.2);
    border-color: transparent;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-dim);
}

.search-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    background: #f8f9fa;
    border: 1px solid var(--bg-base);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background: #f1f3f4;
    border-color: var(--border);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* CATEGORIES CHIPS */
.cats-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.chip {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-dim);
    background: var(--bg-card);
    transition: 0.2s;
}

.chip:hover {
    border-color: var(--text-dim);
    background: #f1f3f4;
}

.chip.active {
    background: #e8f0fe;
    color: var(--accent);
    border-color: var(--accent);
}

/* MAIN CONTAINER GRID */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px 60px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: transparent;
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #e0e0e0;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 12px 15px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-cat {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* VIEW / SEARCH RESULT PAGE */
.view-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.play-frame-wrap {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.play-frame {
    width: 100%;
    min-height: 600px;
    background: #000;
    position: relative;
}

.play-info {
    padding: 20px 25px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.play-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-main);
}

.play-url {
    font-size: 0.85rem;
    color: #006621;
    margin-top: 5px;
}

/* Google green url styling */

.seo-article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 30px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 40px;
}

.seo-article h2 {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 15px;
}

.seo-article h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 10px;
    margin-top: 20px;
}

/* TAG CLOUD (SEO) */
.tag-cloud-wrap {
    margin: 50px 0 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag-pill {
    background: #f8f9fa;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: 0.2s;
    white-space: nowrap;
}

.tag-pill:hover {
    background: #e8f0fe;
    color: var(--accent);
    border-color: var(--accent);
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border);
    background: #f2f2f2;
    padding: 25px 30px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.foot-links {
    display: flex;
    gap: 20px;
}

.foot-links a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* POPUPS / FUNNEL */
.sticky-btn {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    box-shadow: var(--shadow-hover);
    transition: 0.3s;
}

body:hover .sticky-btn {
    bottom: 30px;
}

.sticky-btn:hover {
    background: #f8f9fa;
}

.idle-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.idle-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.idle-modal {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    text-align: center;
}