/* ============================================================
   FairDinkum Tech — Stylesheet
   A cleaner, more professional evolution of the original template.
   ============================================================ */

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

:root {
    --navy: #0b2545;
    --navy-light: #13315c;
    --ocean: #1d6fa5;
    --ocean-light: #2f8fd0;
    --sun: #e8871e;
    --sun-dark: #c96f10;
    --bg: #f7f8fa;
    --card: #ffffff;
    --text: #1f2937;
    --text-muted: #64748b;
    --border: #e5e7eb;
    --success: #1e8e5a;
    --radius: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.14);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============ TOP BAR ============ */
.topbar {
    background: var(--navy);
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 0.4rem 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #cbd5e1; text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ============ HEADER & NAV ============ */
header.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    gap: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.logo .mark {
    background: linear-gradient(135deg, var(--ocean), var(--navy));
    color: #fff;
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.logo .accent { color: var(--sun); }

nav.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}
nav.main-nav a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
nav.main-nav a:hover { color: var(--ocean); }

.search-bar { display: flex; gap: 0.5rem; }
.search-bar input {
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 190px;
    font-size: 0.9rem;
}
.search-bar input:focus { outline: 2px solid var(--ocean-light); border-color: var(--ocean); }
.search-bar button {
    padding: 0.55rem 1.1rem;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}
.search-bar button:hover { background: var(--ocean); }

.nav-toggle { display: none; }

/* ============ HERO ============ */
.hero {
    background: radial-gradient(circle at top left, var(--navy-light), var(--navy) 60%);
    color: #fff;
    padding: 4.5rem 2rem;
    text-align: center;
}
.hero-container { max-width: 760px; margin: 0 auto; }
.hero .eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #cfe3ff;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1.25rem;
}
.hero h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.hero p {
    font-size: 1.1rem;
    color: #d6e2f0;
    margin-bottom: 2rem;
}
.cta-button {
    display: inline-block;
    background: var(--sun);
    color: #1a1a1a;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cta-button:hover { background: var(--sun-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cta-button.secondary {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
    margin-left: 0.75rem;
}
.cta-button.secondary:hover { background: rgba(255,255,255,0.1); }

/* ============ SECTION HEADINGS ============ */
.section-heading { margin-bottom: 2rem; }
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.01em;
}
.section-subtitle { color: var(--text-muted); margin-top: 0.35rem; font-size: 0.98rem; }

/* ============ REVIEW CARDS ============ */
.featured-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.review-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.review-card-image {
    width: 100%;
    height: 170px;
    background: linear-gradient(135deg, #eef3f8, #dde8f2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.review-card-image img { width: 100%; height: 100%; object-fit: cover; }

.review-card-content { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.category-pill {
    align-self: flex-start;
    background: #eaf2fb;
    color: var(--ocean);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
}
.review-card-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.review-card-title a { text-decoration: none; color: inherit; }
.review-card-meta { font-size: 0.82rem; color: var(--text-muted); }
.rating { color: #d99400; font-size: 0.92rem; }
.review-card-description { font-size: 0.92rem; color: var(--text-muted); flex: 1; }

.review-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}
.price-tag { font-size: 1.15rem; font-weight: 800; color: var(--success); }
.read-review-btn {
    background: var(--navy);
    color: #fff;
    padding: 0.55rem 1.2rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: background 0.2s ease;
}
.read-review-btn:hover { background: var(--ocean); }

/* ============ COMPARISON TABLE ============ */
.comparison-section {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table thead { background: var(--navy); color: #fff; }
.comparison-table th, .comparison-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.94rem;
}
.comparison-table th:first-child { border-top-left-radius: 6px; }
.comparison-table th:last-child { border-top-right-radius: 6px; }
.comparison-table tbody tr:hover { background: #f9fafc; }
.comparison-table tbody tr:last-child td { border-bottom: none; }

/* ============ AFFILIATE DISCLOSURE ============ */
.affiliate-disclosure {
    background: #fff8ea;
    border-left: 4px solid var(--sun);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 6px;
    font-size: 0.92rem;
}
.affiliate-disclosure strong { color: #8a5a05; display: block; margin-bottom: 0.25rem; }
.affiliate-disclosure p { color: #7a5a1e; margin: 0; }

/* ============ MAIN LAYOUT + SIDEBAR ============ */
.main-content { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }

.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.sidebar-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #eef3f8;
}
.sidebar-list { list-style: none; }
.sidebar-list li { margin-bottom: 0.65rem; }
.sidebar-list a { color: var(--ocean); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.sidebar-list a:hover { text-decoration: underline; }

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}
.newsletter-form button {
    width: 100%;
    padding: 0.7rem;
    background: var(--sun);
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease;
}
.newsletter-form button:hover { background: var(--sun-dark); color: #fff; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.9rem; }
.alert { padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.88rem; margin-bottom: 0.9rem; }
.alert-success { background: #e8f7ef; color: var(--success); border: 1px solid #bfe8d2; }
.alert-error { background: #fdeeee; color: #b3261e; border: 1px solid #f3c8c6; }

/* ============ SINGLE REVIEW PAGE ============ */
.review-hero {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}
.review-hero-top { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.review-hero-icon {
    font-size: 3rem;
    width: 90px; height: 90px;
    background: linear-gradient(135deg, #eef3f8, #dde8f2);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.review-hero h1 { font-size: 1.9rem; color: var(--navy); margin-bottom: 0.4rem; }
.review-body { font-size: 1.02rem; color: var(--text); }
.review-body p { margin-bottom: 1rem; }
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumbs a { color: var(--ocean); text-decoration: none; }

/* ============ FOOTER ============ */
footer.site-footer {
    background: var(--navy);
    color: #cbd5e1;
    padding: 3.5rem 2rem 0;
    margin-top: 3rem;
}
.footer-container {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.footer-section h3 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.55rem; }
.footer-section a { color: #9fb3c8; text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
.footer-section a:hover { color: var(--sun); }
.footer-section p { color: #9fb3c8; font-size: 0.9rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: #7f93a8;
    font-size: 0.85rem;
    max-width: 1180px;
    margin: 0 auto;
}

/* ============ MISC PAGES ============ */
.page-header {
    background: var(--navy);
    color: #fff;
    padding: 2.5rem 2rem;
    text-align: center;
}
.page-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.page-header p { color: #cfe3ff; }

.form-page { max-width: 560px; margin: 3rem auto; background: var(--card); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.form-page label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-page input, .form-page textarea, .form-page select {
    width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: 6px;
    margin-bottom: 1.1rem; font-size: 0.95rem; font-family: inherit;
}
.form-page button {
    background: var(--navy); color: #fff; border: none; padding: 0.8rem 1.6rem;
    border-radius: 6px; font-weight: 700; cursor: pointer; transition: background 0.2s ease;
}
.form-page button:hover { background: var(--ocean); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th, .admin-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.9rem; }
.admin-table th { background: var(--navy); color: #fff; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.btn-small { padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.82rem; text-decoration: none; font-weight: 600; }
.btn-edit { background: #eaf2fb; color: var(--ocean); }
.btn-delete { background: #fdeeee; color: #b3261e; border: none; cursor: pointer; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
    .main-content { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; }
    nav.main-nav ul { flex-wrap: wrap; gap: 1rem; justify-content: center; }
    .search-bar input { width: 140px; }
    .hero h1 { font-size: 2rem; }
    .featured-reviews { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero { padding: 2.5rem 1rem; }
    .section-title { font-size: 1.4rem; }
}
