/* shared.css - Common styles for getaiminute.com
   Colors use CSS custom properties defined in each page's :root.
   Pages must define: --orange, --bg-primary, --text-primary, --text-secondary,
   --text-muted, --border-subtle, --bg-card */

/* ── Reset ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Body base ── */
body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ── Anchor reset ── */
a {
    color: inherit;
    text-decoration: none;
}

/* ── Skip-nav link ── */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--orange, #ff6b35);
    color: var(--bg-primary, #0a0a0a);
    padding: 0.5rem 1rem;
    z-index: 200;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-nav:focus {
    top: 0;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange, #ff6b35);
}

.nav-links a.nav-cta {
    background: var(--orange, #ff6b35);
    color: #0a0a0a;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-links a.nav-cta:hover {
    opacity: 0.9;
}

/* ── Hamburger menu ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ── Mobile nav drawer ── */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0a0a0a;
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 2rem 1.5rem;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
}

/* ── Announcement banner ── */
.announce-banner {
    background: var(--orange);
    color: #000;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.announce-banner a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.announce-banner a:hover {
    opacity: 0.8;
}

/* ── Footer ── */
footer {
    padding: 3rem 2rem;
    border-top: 3px solid #333;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-brand img {
    height: 32px;
    width: 32px;
    border-radius: 6px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ── Subscribe form base ── */
.subscribe-form {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
    margin: 0 auto 1rem;
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.subscribe-form input[type="email"]::placeholder {
    color: #999;
}

.subscribe-form input[type="email"]:focus {
    border-color: var(--orange, #ff6b35);
}

.subscribe-form button {
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    border: none;
    background: var(--orange, #ff6b35);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s;
}

.subscribe-form button:hover {
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .subscribe-form {
        flex-direction: column;
    }
}

/* ── Button base ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--orange, #ff6b35);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--orange-glow, rgba(255, 107, 53, 0.3));
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--orange-glow, rgba(255, 107, 53, 0.3));
}

/* ── Focus-visible for keyboard navigation ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--orange, #ff6b35);
    outline-offset: 2px;
}

/* ── Footer social icons ── */
.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-icon:hover {
    border-color: var(--orange, #ff6b35);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: #a0a0a0;
    transition: fill 0.25s ease;
}

.social-icon:hover svg {
    fill: var(--orange, #ff6b35);
}

/* ── Responsive footer ── */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
}

/* ── Issue Archive Pages ── */
.issue-hero {
    padding: 7rem 2rem 2rem;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.issue-hero .back-link {
    display: inline-block;
    color: var(--orange, #F97316);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.issue-hero .back-link:hover {
    text-decoration: underline;
}

.issue-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 1rem;
}

.issue-label {
    color: var(--orange, #F97316);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.issue-read-time {
    color: var(--orange, #F97316);
    font-weight: 600;
}

.issue-divider {
    color: var(--text-muted, #999);
}

.issue-hero h1 {
    font-family: 'Syne', 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0;
}

.issue-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.issue-content {
    background: var(--bg-card, #1a1a1a);
    border: 1px solid var(--border-subtle, #2a2a2a);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.issue-hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.issue-summary {
    color: var(--text-secondary, #a0a0a0);
    font-family: 'DM Sans', 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.issue-content .card-category {
    display: inline-block;
    background: rgba(249, 115, 22, 0.08);
    color: var(--orange, #F97316);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-family: 'DM Sans', sans-serif;
}

.issue-cta {
    display: inline-flex;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.issue-subscribe {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    text-align: center;
}

.issue-subscribe h2 {
    font-family: 'Syne', 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.issue-subscribe > p {
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.issue-subscribe-proof {
    color: var(--text-muted, #999);
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

/* ── Issues Landing Page ── */
.issues-landing {
    padding: 7rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.issues-header {
    text-align: center;
    margin-bottom: 3rem;
}

.issues-header h1 {
    font-family: 'Syne', 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.issues-header p {
    color: var(--text-secondary, #a0a0a0);
    font-size: 1.1rem;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.issues-grid .post-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card, #1a1a1a);
    border: 1px solid var(--border-subtle, #2a2a2a);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.25s ease;
}

.issues-grid .post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--orange, #F97316);
}

.issues-grid .post-card img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.issues-grid .post-card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.issues-grid .post-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted, #999);
    margin-bottom: 0.5rem;
}

.issues-grid .post-card-meta .read-time {
    color: var(--orange, #F97316);
    font-weight: 600;
}

.issues-grid .post-card h3 {
    font-family: 'Syne', 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.issues-grid .post-card p {
    color: var(--text-secondary, #a0a0a0);
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: 'DM Sans', 'Space Grotesk', sans-serif;
    flex: 1;
}

.issues-grid .post-card .card-category {
    display: inline-block;
    background: rgba(249, 115, 22, 0.08);
    color: var(--orange, #F97316);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-top: 0.75rem;
    font-family: 'DM Sans', sans-serif;
    align-self: flex-start;
}

.issues-grid .post-card.bonus-issue {
    border-color: rgba(249, 115, 22, 0.3);
}

@media (max-width: 768px) {
    .issue-hero h1 {
        font-size: 1.75rem;
    }
    .issues-header h1 {
        font-size: 2rem;
    }
    .issues-grid {
        grid-template-columns: 1fr;
    }
}
