/**
 * LongevityTortoise - Shared Styles
 * Common CSS for all pages: navigation, buttons, tables, mobile responsive
 * Created: 2026-08-11
 */

/* ===== Base Styles ===== */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    background: #0f1f17;
    color: #f0f7f2;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: rgba(18, 42, 32, 0.8);
    padding: 40px 20px;
    text-align: center;
}

.header h1 {
    color: #c4e456;
    margin: 0;
    font-size: 2em;
}

/* ===== Navigation ===== */
.navbar {
    background: rgba(18, 42, 32, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(196, 228, 86, 0.2);
}

.navbar-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.navbar-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c4e456;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
}

.navbar-logo .nav-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c4e456;
    vertical-align: middle;
    flex-shrink: 0;
}

.navbar-logo:hover {
    color: #ffd93d;
}

.navbar-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.navbar-links a {
    color: #e8f4f8;
    text-decoration: none;
    transition: color 0.2s;
}

.navbar-links a:hover {
    color: #c4e456;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #c4e456;
    font-size: 1.5em;
    cursor: pointer;
}

/* ===== Skip link ===== */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 1001;
    background: #c4e456;
    color: #0f1f17;
    padding: 8px 16px;
    border-radius: 0 0 8px 0;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
}

/* ===== Search ===== */
.search-wrapper {
    text-align: center;
    padding: 15px 0;
    background: rgba(18, 42, 32, 0.5);
    border-bottom: 1px solid rgba(196, 228, 86, 0.1);
}

.search-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid rgba(196, 228, 86, 0.3);
    border-radius: 50px;
    background: rgba(15, 31, 23, 0.8);
    color: #f0f7f2;
    outline: none;
}

.search-button {
    padding: 10px 20px;
    background: #c4e456;
    color: #0f1f17;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.search-button:hover {
    background: #b5d94d;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #c4e456;
    color: #0f1f17;
    text-decoration: none;
    border-radius: 50px;
    margin: 10px 5px;
    font-weight: bold;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #b5d94d;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 10px 22px;
    background: transparent;
    color: #c4e456;
    text-decoration: none;
    border-radius: 50px;
    margin: 10px 5px;
    font-weight: bold;
    border: 2px solid #c4e456;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(196, 228, 86, 0.1);
}

.btn-amazon {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(196, 228, 86, 0.12);
    color: #ffd93d;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    border: 1px solid rgba(196, 228, 86, 0.35);
    transition: all 0.2s;
}

.btn-amazon:hover {
    background: rgba(196, 228, 86, 0.22);
    color: #ffffff;
}

/* ===== Hero ===== */
.hero {
    background: rgba(18, 42, 32, 0.8);
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero img,
.hero .hero-logo {
    max-width: min(280px, 70vw);
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    color: #c4e456;
    margin: 0 0 15px;
    font-size: 2.4em;
}

.hero p {
    color: #d4e5d9;
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 25px;
}

/* ===== Article / Section cards ===== */
.article-section {
    background: rgba(18, 42, 32, 0.7);
    border: 1px solid rgba(196, 228, 86, 0.2);
    border-radius: 16px;
    padding: 30px;
    margin: 25px 0;
}

.article-section h2 {
    color: #c4e456;
    border-bottom: 2px solid rgba(196, 228, 86, 0.2);
    padding-bottom: 12px;
    margin-top: 0;
}

.article-section h3 {
    color: #ffd93d;
    margin-top: 25px;
}

.article-section p {
    color: #d4e5d9;
}

.article-section ul, .article-section ol {
    color: #d4e5d9;
}

.article-section li {
    margin-bottom: 8px;
}

.article-section a {
    color: #c4e456;
}

.article-section a:hover {
    text-decoration: underline;
}

/* ===== Product cards ===== */
.product-card {
    background: rgba(18, 42, 32, 0.8);
    border: 1px solid rgba(196, 228, 86, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
}

.product-card h3 {
    color: #c4e456;
    margin-top: 0;
}

/* ===== Tables ===== */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
}

.specs-table th {
    background: rgba(196, 228, 86, 0.1);
    color: #c4e456;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid rgba(196, 228, 86, 0.3);
}

.specs-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(196, 228, 86, 0.15);
    color: #d4e5d9;
}

.specs-table tr:hover td {
    background: rgba(196, 228, 86, 0.05);
}

.specs-table a {
    color: #c4e456;
}

/* ===== Highlights ===== */
.highlight-box {
    background: rgba(196, 228, 86, 0.08);
    border: 1px solid rgba(196, 228, 86, 0.25);
    border-radius: 12px;
    padding: 22px;
    margin: 0 0 22px 0;
}

.highlight-box p {
    margin: 0;
}

/* ===== Blog grid ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-grid.two-column {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.blog-grid.compact {
    gap: 20px;
    margin-top: 20px;
}

.blog-card {
    background: rgba(18, 42, 32, 0.7);
    border: 1px solid rgba(196, 228, 86, 0.2);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(196, 228, 86, 0.1);
}

.blog-card h2 {
    color: #c4e456;
    margin-top: 0;
    font-size: 1.4em;
}

.blog-card p {
    color: #d4e5d9;
    margin-bottom: 20px;
}

.blog-card .date {
    color: #ffd93d;
    font-size: 0.9em;
    margin-bottom: 10px;
    display: block;
}

.blog-card .read-more {
    color: #c4e456;
    text-decoration: none;
    font-weight: bold;
}

.blog-card .read-more:hover {
    color: #ffd93d;
}

.blog-card .tags {
    margin-top: 15px;
}

.tag {
    display: inline-block;
    background: rgba(196, 228, 86, 0.1);
    color: #c4e456;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    margin: 3px;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 40px;
    color: #8fb3a0;
    border-top: 2px solid rgba(196, 228, 86, 0.2);
    margin-top: 40px;
}

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

.footer a:hover {
    text-decoration: underline;
}

/* ===== Breadcrumbs ===== */
.breadcrumb-nav {
    max-width: 1000px;
    margin: 10px auto 0;
    padding: 0 20px;
    color: #8fb3a0;
    font-size: 0.9em;
}

.breadcrumb-nav ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: #c4e456;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

/* ===== Publication cards ===== */
.publication-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    margin: 20px 0;
}

.publication-card {
    background: rgba(18, 42, 32, 0.8);
    border: 1px solid rgba(196, 228, 86, 0.2);
    border-radius: 16px;
    padding: 24px;
}

.publication-card h3 {
    color: #c4e456;
    margin-top: 0;
}

.publication-card p {
    color: #d4e5d9;
}

.publication-card a {
    color: #c4e456;
}

.keyword-tag {
    display: inline-block;
    background: rgba(196, 228, 86, 0.1);
    color: #c4e456;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    margin: 4px 4px 0 0;
}

/* ===== FAQ details ===== */
details {
    background: rgba(18, 42, 32, 0.6);
    border: 1px solid rgba(196, 228, 86, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
}

summary {
    color: #c4e456;
    font-weight: bold;
    cursor: pointer;
}

details p {
    color: #d4e5d9;
    margin: 12px 0 0;
}

/* ===== Affiliate disclosure banner ===== */
.affiliate-banner {
    background: rgba(196, 228, 86, 0.1);
    border: 1px solid rgba(196, 228, 86, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.9em;
    color: #d4e5d9;
}

.affiliate-banner a {
    color: #c4e456;
}

/* ===== Tortoise Wisdom + Warning Boxes ===== */
.tortoise-wisdom {
    background: rgba(196, 228, 86, 0.08);
    border-left: 4px solid #c4e456;
    padding: 18px 22px;
    margin: 25px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #f0f7f2;
}

.tortoise-wisdom strong {
    display: block;
    color: #ffd93d;
    margin-bottom: 6px;
    font-style: normal;
}

.warning-box {
    background: rgba(255, 89, 89, 0.08);
    border-left: 4px solid #ff5959;
    padding: 18px 22px;
    margin: 25px 0;
    border-radius: 0 12px 12px 0;
    color: #f0f7f2;
}

.warning-box strong {
    color: #ff5959;
}

/* ===== Supplement product links ===== */
.supplement-links {
    margin-top: 15px;
}

.supplement-links p {
    margin: 6px 0;
    font-size: 0.95em;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar-container {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .navbar-logo {
        font-size: 1.1em;
        max-width: calc(100% - 50px);
    }

    .navbar-logo .nav-logo-img {
        width: 28px;
        height: 28px;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(18, 42, 32, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 2px solid rgba(196, 228, 86, 0.3);
        z-index: 1000;
    }

    .navbar-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        padding: 6px 10px;
    }

    .container {
        padding: 15px;
    }

    .article-section {
        padding: 20px;
        border-radius: 12px;
        margin: 18px 0;
    }

    .header h1 {
        font-size: 1.7em;
    }

    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1.05em;
    }

    .specs-table {
        display: block;
        overflow-x: auto;
        font-size: 0.85em;
    }

    .btn, .btn-outline {
        display: inline-block;
        width: auto;
        min-width: 140px;
        margin: 8px 4px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .hero {
        padding: 40px 12px;
    }

    .hero h1 {
        font-size: 1.5em;
        line-height: 1.25;
    }

    .hero p {
        font-size: 1em;
        max-width: 100%;
    }

    .hero img,
    .hero .hero-logo {
        max-width: min(220px, 60vw);
        margin-bottom: 16px;
    }

    .blog-grid {
        padding: 0 12px;
        gap: 20px;
    }

    .blog-card {
        padding: 18px;
    }

    .blog-card h2 {
        font-size: 1.2em;
    }

    .publication-card-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 30px 15px;
    }

    .footer p {
        margin: 8px 0;
        font-size: 0.9em;
    }

    .specs-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 375px) {
    .navbar-logo {
        font-size: 1em;
        gap: 6px;
    }

    .navbar-logo .nav-logo-img {
        width: 26px;
        height: 26px;
    }

    .hero h1 {
        font-size: 1.35em;
    }

    .hero p {
        font-size: 0.95em;
    }

    .btn, .btn-outline {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 0.95em;
    }

    .article-section {
        padding: 16px;
    }
}
