/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


/* COLORFUL BLOG & BUTTON STYLES
  - Uses CSS variables for easy theme management.
  - Includes a light theme (Daylight) and an automatic dark theme (Midnight).
  - Provides unique, accessible styles for 6 distinct buttons.

  The theme automatically switches to dark mode based on your operating system's settings.
*/


/* GLOBAL COLOR VARIABLES */


/* ---------------------------
    Light-mode variables (defaults)
--------------------------- */

:root {
    /* org theme */
    /* my theme */
    --site-bg: #EEF4FA;
    /* Main Site Background Colour */
    --content-bg: #fff;
    /* Important Box Background Colour */
    --brand: #0f6fff;
    --brand-2: #3aa1ff;
    --extra-color: #D81B60;
    --acent: #3AA1FF;
    --text: #0e1726;
    --muted: #6b7280;
    --border: rgba(13, 34, 51, 0.08);
    --shadow-strong: rgba(10, 25, 45, 0.08);
    --shadow-soft: rgba(10, 25, 45, 0.05);
    --sidebar-bg: #F4F8FF;
    --footer-bg: #F0F3F7;
    /* Buttons (light defaults) */
    --btn-primary: #0F6FFF;
    --btn-primary-hover: #0d5be6;
    --btn-secondary-border: rgba(15, 111, 255, 0.12);
    --btn-accent: #3AA1FF;
    --btn-success: #16A34A;
    --btn-warning: #F59E0B;
    --btn-danger: #EF4444;
    --site-max-width: 1200px;
    /* Spacing scale */
    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 10px;
    --space-lg: 24px;
    --space-xl: 40px;
    /* Typography — fluid using clamp()
     formula: clamp(min, preferred, max)
     preferred can use viewport units for fluid scaling */
    --fs-xs: clamp(0.75rem, 0.7vw + 0.45rem, 0.85rem);
    /* ~12-14px */
    --fs-sm: clamp(0.9rem, 0.9vw + 0.2rem, 1rem);
    /* ~14-16px */
    --fs-base: clamp(1rem, 1.0vw + 0.25rem, 1.125rem);
    /* ~16-18px */
    --fs-lg: clamp(1.125rem, 1.6vw + 0.2rem, 1.375rem);
    /* ~18-22px */
    --fs-xl: clamp(1.5rem, 2.4vw + 0.3rem, 2rem);
    /* ~24-32px */
    --radius: 10px;
    --header-height: 72px;
    /* Responsive font sizes */
    --fs-p: clamp(15px, 1.5vw, 18px);
    /* 18px on laptop */
    --fs-h6: clamp(17px, 1.6vw, 21px);
    /* 21px on laptop */
    --fs-h5: clamp(20px, 1.8vw, 24px);
    /* 24px on laptop */
    --fs-h4: clamp(22px, 2vw, 27px);
    /* 27px on laptop */
    --fs-h3: clamp(24px, 2.2vw, 30px);
    /* 30px on laptop */
    --fs-h2: clamp(26px, 2.4vw, 33px);
    /* 33px on laptop */
    --fs-h1: clamp(28px, 2.6vw, 36px);
    /* 36px on laptop */
}


/* ---------------------------
    Dark-mode: stronger contrast
--------------------------- */

@media (prefers-color-scheme: dark) {
     :root {
        --site-bg: #030617;
        /* Main Site Background Colour */
        /* Brighter brand for emphasis */
        --brand: #58a6ff;
        /* lighter / vivid blue */
        --brand-2: #2b8cff;
        /* Dark surfaces with strong contrast */
        --bg: #041025;
        /* primary surface for UI elements */
        --page-bg: #02040a;
        /* page background - near black */
        --text: #d8d8d8;
        /* very bright text for strong contrast */
        --muted: #9fb7cf;
        /* readable muted text */
        --border: rgba(255, 255, 255, 0.08);
        /* firmer border */
        --shadow-strong: rgba(2, 6, 23, 0.7);
        --shadow-soft: rgba(0, 0, 0, 0.5);
        --content-bg: #0A1A33;
        /* Important Box Background Colour */
        --sidebar-bg: #0A1A33;
        --footer-bg: #02060d;
        --btn-primary: #58A6FF;
        --btn-primary-hover: #2B8CFF;
        --btn-secondary-border: rgba(255, 255, 255, 0.06);
        --btn-accent: #7FC3FF;
        --btn-success: #34D399;
        --btn-warning: #FBBF24;
        --btn-danger: #FF6B6B;
    }
}


/* Good global defaults */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    /* background: var(--site-bg) !important; */
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: clamp(16px, calc(14px + 0.3vw), 18px);
    line-height: 1.7;
    background: var(--site-bg);
}


/* =========================
   CONTAINER
========================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* ========================
   Base Typography
======================== */

p {
    line-height: 1.6;
    font-size: clamp(15px, 1vw + 14px, 18px);
    cursor: default;
    margin-bottom: 1em;
    color: var(--text);
}


/* ========================
   Headings
======================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin: 0.8em 0 0.5em;
    cursor: default;
    color: var(--text);
    font-family: inherit;
    font-weight: 500;
}


/* Headings */

h1 {
    font-weight: 600;
    font-size: clamp(1.875rem, 1.2rem + 2vw, 2.25rem);
}

h2 {
    font-size: clamp(1.688rem, 1rem + 1.5vw, 2.063rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.5rem, 0.9rem + 1vw, 1.875rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.375rem, 0.8rem + 0.8vw, 1.688rem);
    font-weight: 500;
}

h5 {
    font-size: clamp(1.25rem, 0.7rem + 0.6vw, 1.5rem);
    font-weight: 500;
}

h6 {
    font-size: clamp(1.125rem, 0.6rem + 0.4vw, 1.313rem);
    font-weight: 500;
}

section h1,
article h1,
aside h1,
nav h1 {
    font-size: clamp(1.875rem, 1.2rem + 2vw, 2.25rem);
}


/* ========================
   Lists & Blockquotes
======================== */

a {
    text-decoration: none !important;
}


/* ---------- Responsive typography for headings ---------- */


/* ===============================
=============================== */


/* ==== Golobale Veriyable Class ========= */

.decoration-n {
    text-decoration: none;
}

.padding-20 {
    padding: 20px;
}

.padding-10 {
    padding: 10px;
}

.padding-5 {
    padding: 5px;
}

.padding-0 {
    padding: 0px !important;
}

.border {
    border: 1px solid var(--border);
}

.text-black {
    color: #000;
}

.text-white {
    color: #fff;
}

.shadow-strong {
    box-shadow: 0 6px 16px var(--shadow-strong);
}

.shadow-strong-border {
    box-shadow: 0 6px 16px var(--shadow-strong);
    border: 1px solid var(--border);
}

.shadow-soft {
    box-shadow: 0 10px 24px var(--shadow-soft);
}

.shadow-soft-border {
    box-shadow: 0 10px 24px var(--shadow-soft);
    border: 1px solid var(--border);
}

.box {
    background: var(--content-bg);
    box-shadow: 0 6px 16px var(--shadow-strong);
    border: 1px solid var(--border);
}

.sidebar-box {
    background: var(--sidebar-bg);
    box-shadow: 0 10px 24px var(--shadow-soft);
    border: 1px solid var(--border);
}


/* ===============================
=============================== */


/* * ========== LAYOUTS (Content + Sidebar) ========== */

*/
/* Two-column layout: sidebar + main content (flex only) */


/* Skip link */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    background: #000;
    color: #fff;
    padding: 10px;
    z-index: 1000;
    border-radius: 6px;
}


/* Small devices (portrait tablets and large phones, 600px and up) */

@media only screen and (min-width: 600px) {
    /* body {
        background: #ff0000;
    } */
}


/* Medium devices (landscape tablets, 768px and up) */

@media only screen and (min-width: 768px) {
    /* body {
        background: #efff10;
    } */
}


/* Large devices (laptops/desktops, 992px and up) */

@media only screen and (min-width: 992px) {
    /* body {
        background: #15ff00;
    } */
}


/* Extra large devices (large laptops and desktops, 1200px and up) */

@media only screen and (min-width: 1200px) {
    /* body {
        background: #4400ff;
    } */
}


/* ==============================================
   1. Default Mobile Styles (content and sidebar are 100% width)
============================================== */

main#pt-post {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}


/* By default, show the first price table and hide the second one */

.price-table {
    display: block;
    /* Or 'flex', 'grid', etc., depending on its structure */
}

.price-table-2 {
    display: none;
}


/* ==============================================
   2. Desktop Styles (for screens 768px and wider)
============================================== */

@media (min-width: 768px) {
    /* When the two-column layout is active, hide the first price table... */
    .price-table {
        display: none;
    }
    /* ...and show the second price table. */
    .price-table-2 {
        display: block;
        /* Or 'flex', 'grid', etc. */
    }
}

.pp-popular-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pp-popular-categories a {
    --tw-text-opacity: 1;
    color: rgb(55 48 163 / var(--tw-text-opacity, 1));
    font-weight: 600;
    line-height: 1rem;
    font-size: 0.75rem;
    padding: 0.125rem 0.625rem;
    --tw-bg-opacity: 1;
    border-radius: 100px;
    text-decoration: none;
    background-color: rgb(224 231 255 / var(--tw-bg-opacity, 1));
}