/*
Theme Name: SaleTides
Theme URI: https://saletides.com
Author: SaleTides
Description: Custom WordPress theme matching the SaleTides brand.
Version: 1.0.0
License: Proprietary
Text Domain: saletides
*/

@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Titillium Web', sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    color: #1f2937;
}

/* ── Nav ── */
.nav-primary {
    background-color: #2284A6;
}

/* ── Typography ── */
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { color: #2284A6; }

/* ── Post card ── */
.post-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.post-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.10); }
.post-card img { width: 100%; height: 220px; object-fit: cover; }
.post-card-body { padding: 1.5rem; }
.post-card-meta { font-size: 0.78rem; color: #6b7280; margin-bottom: 0.5rem; }
.post-card-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.75rem; line-height: 1.4; }
.post-card-excerpt { font-size: 0.9rem; color: #4b5563; line-height: 1.6; }
.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #2284A6;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}
.read-more:hover { color: #1A5F6F; }

/* ── Single post ── */
.post-hero-image { width: 100%; max-height: 480px; object-fit: cover; border-radius: 12px; margin-bottom: 2rem; }

.entry-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #1f2937;
}
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #111827;
}
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content a { color: #2284A6; }
.entry-content a:hover { color: #1A5F6F; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content blockquote {
    border-left: 4px solid #2284A6;
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    background: #f0f9ff;
    color: #1e3a5f;
    border-radius: 0 8px 8px 0;
}
.entry-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
.entry-content img { max-width: 100%; border-radius: 8px; }

/* ── Category badge ── */
.cat-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #2284A6;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

/* ── Pagination ── */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin: 2.5rem 0; }
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.15s;
}
.pagination a:hover { background: #2284A6; color: #fff; border-color: #2284A6; }
.pagination .current { background: #2284A6; color: #fff; border-color: #2284A6; }

/* ── Btn ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #7c3aed, #22d3ee);
    color: #fff;
    border-radius: 9999px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.15s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; color: #fff; }

/* ── Footer ── */
footer a { text-decoration: none; }

/* ── Utility ── */
.container-blog {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.wp-block-image img { border-radius: 8px; }
