/*
Theme Name: Go Argos 365
Description: Blocksy child theme for Go Argos 365 — sports news for the University of West Florida Argonauts.
Template: blocksy
Version: 1.0.0
Text Domain: go-argos-365
*/

/* Global square corners */
:root {
    --b-radius: 0;
    --b-radius-sm: 0;
    --b-radius-md: 0;
    --b-radius-lg: 0;
    --b-radius-xl: 0;
    /* UWF Argonauts athletics palette */
    --argos-primary: #007DC3;        /* Royal Blue */
    --argos-primary-dark: #005F94;   /* Royal Blue, darkened for hover states */
    --argos-secondary: #1f252d;
    --argos-accent: #06B085;         /* Kelly Green */
    --argos-accent-dark: #058A68;    /* Kelly Green, darkened for hover states */
    /* UWF institutional palette (formal university contexts) */
    --uwf-blue: #004C97;
    --uwf-green: #007A33;
    /* Light Royal Blue tints (former powder-blue slots) */
    --argos-powder-blue: #bfe3f5;
    --argos-powder-blue-light: #e8f5fc;
    --argos-page-bg: #EAF4FA;
    --argos-shell-bg: #305DDD;
    --argos-content-bg: #ffffff;
    --argos-content-text: #0f172a;
    --argos-panel: #14253a;
    --argos-panel-soft: #1f3448;
    --argos-border: #d3e2ec;
    --theme-text-color: #0f172a;
    --theme-headings-color: #0b1220;
    --theme-link-color: #1d4ed8;
    --theme-link-hover-color: #1e3a8a;
    --theme-button-background-color: var(--argos-primary);
    --theme-button-background-hover-color: var(--argos-primary-dark);
    --theme-button-text-color: #ffffff;
    --paletteColor1: var(--argos-primary);
    --paletteColor2: var(--argos-accent);
}

html,
body,
#main-container,
#main,
.site-main {
    background: var(--argos-page-bg) !important;
    background-color: var(--argos-page-bg) !important;
}

body {
    color: var(--theme-text-color);
}

/* Titles/meta that sit on the light page canvas */
.hero-section[data-type="type-1"] .page-title,
.hero-section[data-type="type-1"] .entry-title,
.hero-section[data-type="type-1"] .ct-title,
.hero-section[data-type="type-1"] .page-description,
.ct-breadcrumbs,
.ct-breadcrumbs a,
.archive .page-title,
.archive .entry-title,
.search .page-title,
.error404 .page-title {
    color: var(--theme-headings-color);
}

.ct-breadcrumbs a:hover,
.ct-breadcrumbs a:focus {
    color: var(--theme-link-hover-color);
}

/* CPT archive titles on the light canvas */
.game-recap-archive > .title,
.player-profile-archive > .title,
.container.stack > h1.title {
    color: var(--theme-headings-color);
}

/* Pagination on light canvas */
.navigation.pagination .nav-links a,
.navigation.pagination .nav-links .page-numbers,
.player-profile-archive-pagination a,
.game-recap-archive-pagination a {
    color: var(--theme-headings-color);
}

/* Readable content panels for posts, pages, and archives */
body.single .argos-single-card,
body.page:not(.home) .entry-content,
body.archive .entries > article,
body.search .entries > article,
body.blog .entries > article,
body.error404 .ct-container,
.argos-content-panel {
    background: var(--argos-content-bg);
    color: var(--argos-content-text);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

body.page:not(.home) .entry-content,
body.archive .entries > article,
body.search .entries > article,
body.blog .entries > article,
.argos-content-panel {
    padding: clamp(1.25rem, 3vw, 2rem);
}

body.page:not(.home) .entry-content,
body.page:not(.home) .entry-content p,
body.page:not(.home) .entry-content li,
body.archive .entries > article,
body.archive .entries > article .entry-excerpt,
body.search .entries > article,
body.blog .entries > article {
    color: var(--argos-content-text);
}

body.page:not(.home) .entry-content h1,
body.page:not(.home) .entry-content h2,
body.page:not(.home) .entry-content h3,
body.page:not(.home) .entry-content h4,
body.archive .entries > article .entry-title,
body.archive .entries > article .entry-title a,
body.search .entries > article .entry-title,
body.search .entries > article .entry-title a,
body.blog .entries > article .entry-title,
body.blog .entries > article .entry-title a {
    color: var(--theme-headings-color);
}

body.archive .entries > article + article,
body.search .entries > article + article,
body.blog .entries > article + article {
    margin-top: 1.25rem;
}

/* White surfaces keep dark text even when body text is light on the blue canvas */
.card,
.argos-card,
.argos-scoreboard,
.sport-news-card,
.sport-standings__group,
.sport-nav,
body.single .argos-single-card,
body.page:not(.home) .entry-content,
body.archive .entries > article,
body.search .entries > article,
body.blog .entries > article,
.argos-content-panel,
.ct-sidebar .ct-widget,
.ct-sidebar .widget {
    color: var(--argos-content-text);
}

.card .title,
.card .meta,
.card h1,
.card h2,
.card h3,
.card a {
    color: inherit;
}

.card .meta {
    color: #64748b;
}

.ct-sidebar .ct-widget,
.ct-sidebar .widget {
    background: var(--argos-content-bg);
    padding: 1rem 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.navigation.pagination .nav-links .current {
    color: #0b1220;
    background: #ffffff;
}

button,
input,
select,
textarea,
.button,
.wp-block-button__link,
.ct-button,
.ct-button-ghost {
    border-radius: 0 !important;
}

/* Standard single posts use a 2/3 content + 1/3 ad sidebar layout */
body.single .argos-single-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: clamp(1.5rem, 2vw, 2.5rem);
    align-items: start;
    width: 100%;
}

body.single .argos-single-main {
    min-width: 0;
    width: 100%;
}

body.single .argos-single-ads-sidebar {
    float: none !important;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-self: start;
}

body.single .argos-single-ads-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

body.single .argos-single-ads-inner .ct-widget {
    width: 100%;
}

@media (max-width: 900px) {
    body.single .argos-single-layout {
        grid-template-columns: 1fr;
    }
}

/* Readability card for single content */
body.single .argos-single-card {
    background: var(--argos-content-bg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    padding: clamp(1.25rem, 3vw, 2.25rem);
    width: 100%;
    color: var(--argos-content-text);
}

body.single .argos-single-card .entry-header,
body.single .argos-single-card .entry-meta,
body.single .argos-single-card .entry-meta a,
body.single .argos-single-card .ct-meta-element,
body.single .argos-single-card .ct-meta-element a {
    color: #334155;
}

body.single .argos-single-card .entry-title,
body.single .argos-single-card .page-title,
body.single .argos-single-card .ct-title {
    color: var(--theme-headings-color);
}

body.single .argos-single-card .entry-content,
body.single .argos-single-card .ct-author-box,
body.single .argos-single-card .post-tags {
    font-size: 1.06rem;
    line-height: 1.7;
    color: var(--argos-content-text);
}

body.single .argos-single-card .entry-content p {
    margin-bottom: 1.2em;
}

body.single .argos-single-card .entry-content h1,
body.single .argos-single-card .entry-content h2,
body.single .argos-single-card .entry-content h3 {
    color: var(--theme-headings-color);
    line-height: 1.3;
    margin: 1em 0 0.5em;
}

body.single .argos-single-card .entry-content a {
    color: #1d4ed8;
}

body.single .argos-single-card .entry-content figure,
body.single .argos-single-card .entry-content img,
body.single .argos-single-card .entry-content iframe {
    max-width: 100%;
}

@media (max-width: 640px) {
    body.single .argos-single-card {
        padding: 1rem;
    }
}

@supports not (display: grid) {
    body.single .argos-single-layout {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
    }
    body.single .argos-single-main {
        flex: 0 0 65%;
    }
    body.single .argos-single-ads-sidebar {
        flex: 0 0 35%;
    }
    @media (max-width: 900px) {
        body.single .argos-single-layout {
            flex-direction: column;
        }
        body.single .argos-single-main,
        body.single .argos-single-ads-sidebar {
            flex: 0 0 100%;
        }
    }
}
