/* ComputersPal custom overrides — based on WearsMyMoney layout */

:root {
    --bg: #e8ecf0;
    --fg: #2c3e50;
    --accent: #e3f2fd;
    --link: #1565c0;
}

h1, h2, h3, h4 {
    font-family: "Space Grotesk", Inter, "Helvetica Neue", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#header a.brand {
    width: 280px;
}

@media (min-width: 1024px) {
    #header a.brand {
        width: 340px;
    }
}

@media (min-width: 1280px) {
    #header a.brand {
        width: 400px;
    }
}

#header a.brand svg {
    fill: var(--fg);
    width: 100%;
    height: auto;
}

#header .twitter-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--fg);
}

#header nav#secondary-nav .twitter-icon {
    display: flex;
    align-items: center;
}

.mobile-only {
    display: block;
}

@media (min-width: 1024px) {
    .mobile-only {
        display: none;
    }
}

/* Post cards */
.post-card .thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 656 / 820;
}

.post-card .card-title {
    padding: 1rem;
    border-top: 1px solid currentColor;
    background-color: #fff;
    text-align: center;
}

.post-card .card-title h3 {
    font-size: var(--font-size-p);
    margin: 0 0 0.5rem;
    text-transform: none;
    letter-spacing: 0;
}

.post-card .card-title .article-meta {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Archive pages */
.archive-header,
.page-header {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: #fff;
    border-bottom: 1px solid currentColor;
}

.archive-header h1,
.page-header h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.archive-description,
.page-subtitle {
    max-width: 640px;
    margin: 0 auto;
    font-size: var(--font-size-p);
    line-height: var(--line-height-p);
}

.page-content {
    background-color: var(--bg);
}

/* Single article */
.single-article .featured-image {
    background-color: #fff;
    padding: 1.5rem;
    text-align: center;
}

.single-article .featured-image img {
    max-width: 656px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.single-header {
    text-align: center;
    background-color: #fff;
    border-bottom: 1px solid currentColor;
    padding: 2rem 1.5rem;
}

.single-header .article-category {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.single-header .article-category a {
    color: inherit;
    border-bottom: 1px solid currentColor;
}

.single-header h1 {
    text-transform: none;
    letter-spacing: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.single-content,
.article-content.single-content {
    max-width: 720px;
}

.single-content h3 {
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    font-size: var(--font-size-h3);
    margin: 2rem 0 1rem;
}

.single-content ul,
.single-content ol {
    margin-bottom: 1.6em;
    padding-left: 1.5em;
}

.single-content ul {
    list-style: disc;
}

.single-content ol {
    list-style: decimal;
}

.single-content li {
    margin-bottom: 0.5em;
}

.single-content p {
    margin-bottom: 1.2em;
}

/* Favourites section */
.favourites-grid .favourite-card .cta h4 {
    font-size: 0.95rem;
}

/* Social feed (replaces Instagram) */
.social-feed {
    padding: 3rem 0;
    border-top: 1px solid currentColor;
}

.social-feed h2 {
    margin-top: 0;
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.social-item {
    width: calc(33.333% - 1rem);
    border: 1px solid currentColor;
    overflow: hidden;
    display: block;
}

@media (min-width: 694px) {
    .social-item {
        width: calc(20% - 1.2rem);
    }
}

.social-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.social-item:hover img {
    transform: scale(1.03);
}

.social-follow {
    text-align: center;
    margin-top: 2rem;
}

.social-follow a {
    font-weight: 600;
    border-bottom: 1px solid currentColor;
    color: inherit;
}

/* Footer author */
.footer-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 1.5rem;
    border-top: 1px solid currentColor;
    background-color: #fff;
}

@media (min-width: 694px) {
    .footer-author {
        flex-direction: row;
        max-width: 800px;
        margin: 0 auto;
        text-align: left;
    }
}

.footer-author .portrait img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid currentColor;
}

.footer-author .copy p {
    margin: 0;
}

/* Contact form */
.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.875rem;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid currentColor;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}

.contact-form button {
    align-self: flex-start;
    border: 1px solid currentColor;
    background: var(--fg);
    color: var(--bg);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
}

.form-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Search page */
.search-page-form {
    display: flex;
    gap: 0.5rem;
    max-width: 640px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}

.search-page-form input {
    flex: 1;
    border: 1px solid currentColor;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-page-form button {
    border: 1px solid currentColor;
    background: var(--fg);
    color: var(--bg);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
}

/* Cookie banner uses body.has-active-cookie-banner from app.css */

/* Related posts */
.related-posts {
    border-top: 1px solid currentColor;
    padding-top: 1rem;
}

.category-archive {
    padding-bottom: 2rem;
}

.category-archive .post-grid,
.search-page .post-grid {
    padding-top: 1.5rem;
}

@media (min-width: 694px) {
    .category-archive .post-grid,
    .search-page .post-grid {
        padding-top: 2rem;
    }
}
