/*
Theme Name: Unique Creators Group LTD
Theme URI: https://uniquecreatorsgroup.com/
Author: Unique Creators Group LTD
Author URI: https://uniquecreatorsgroup.com/
Description: Premium YouTube multichannel management theme for Unique Creators Group LTD. Responsive, accessible, Elementor-compatible and performance-conscious.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: unique-creators-group
License: GPL-2.0-or-later
*/

/* =========================================================
   UCG DESIGN SYSTEM
   ========================================================= */

:root {
    --ucg-green: #14532D;
    --ucg-accent: #22C55E;
    --ucg-black: #0B0B0B;
    --ucg-white: #FFFFFF;
    --ucg-neutral: #F8FAFC;
    --ucg-text: #1F2937;
    --ucg-muted: #64748B;
    --ucg-red: #FF0000;
    --ucg-border: rgba(15, 23, 42, .08);
    --ucg-shadow: 0 8px 30px rgba(11, 11, 11, .07);
    --ucg-radius: 14px;
    --ucg-container: 1280px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ucg-white);
    color: var(--ucg-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    font-family: Inter, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--ucg-black);
    font-family: Manrope, Arial, sans-serif;
    line-height: 1.15;
    letter-spacing: -.025em;
}

p {
    margin-top: 0;
}

a {
    color: var(--ucg-green);
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

a:hover {
    color: var(--ucg-accent);
}

img {
    max-width: 100%;
    height: auto;
}

button,
input[type="submit"],
input[type="button"] {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--ucg-accent);
    outline-offset: 3px;
}

.ucg-container {
    width: min(calc(100% - 40px), var(--ucg-container));
    margin-inline: auto;
}

.ucg-light-section {
    background: var(--ucg-neutral);
}

.ucg-green {
    color: var(--ucg-accent);
}

.ucg-section-label,
.ucg-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--ucg-green);
    font: 800 11px/1.2 Inter, Arial, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ucg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--ucg-green);
    border-radius: 8px;
    background: var(--ucg-green);
    color: var(--ucg-white);
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 7px 20px rgba(20, 83, 45, .16);
}

.ucg-button:hover {
    transform: translateY(-1px);
    background: var(--ucg-accent);
    border-color: var(--ucg-accent);
    color: var(--ucg-black);
}

.ucg-play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 28px;
    border-radius: 8px;
    background: var(--ucg-red);
    color: var(--ucg-white);
    font-size: 11px;
    line-height: 1;
}

.ucg-feature-card,
.ucg-service-card,
.ucg-process-card,
.ucg-resource-card {
    border: 1px solid var(--ucg-border);
    border-radius: var(--ucg-radius);
    background: var(--ucg-white);
    box-shadow: var(--ucg-shadow);
}

.site-main {
    min-height: 40vh;
}

/* WordPress alignment helpers */
.alignwide {
    width: min(100%, 1400px);
    margin-inline: auto;
}

.alignfull {
    width: 100%;
}

/* Accessible skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 99999;
    padding: 10px 14px;
    background: var(--ucg-black);
    color: var(--ucg-white);
}

.skip-link:focus {
    left: 8px;
}

/* WordPress admin bar + sticky header safety */
.admin-bar .ucg-site-header.is-sticky {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .ucg-site-header.is-sticky {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .admin-bar .ucg-site-header.is-sticky {
        top: 0;
    }

    .ucg-container {
        width: min(calc(100% - 30px), var(--ucg-container));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   STANDARD PAGE TEMPLATE
   ========================================================= */

.ucg-page-shell {
    padding: clamp(70px, 8vw, 120px) 0;
    background: var(--ucg-white);
}

.ucg-page-header {
    max-width: 880px;
    margin: 0 auto 42px;
    text-align: center;
}

.ucg-page-title {
    margin-bottom: 0;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 800;
}

.ucg-page-content {
    max-width: 900px;
    margin: 0 auto;
}

.ucg-page-content > *:last-child {
    margin-bottom: 0;
}

.ucg-page-content img {
    border-radius: var(--ucg-radius);
    box-shadow: var(--ucg-shadow);
}

.ucg-page-content a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

@media (max-width: 767px) {
    .ucg-page-shell {
        padding: 58px 0;
    }

    .ucg-page-title {
        font-size: clamp(2rem, 11vw, 3rem);
    }
}


/* =========================================================
   BLOG, ARCHIVE AND 404 TEMPLATES
   ========================================================= */

.ucg-post-header,
.ucg-archive-header {
    padding: clamp(70px, 9vw, 120px) 0 50px;
    background: var(--ucg-neutral);
}

.ucg-post-header-inner {
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
}

.ucg-post-title,
.ucg-archive-title {
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 5.5vw, 4.8rem);
    font-weight: 800;
}

.ucg-post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--ucg-muted);
    font-size: .9rem;
}

.ucg-post-featured {
    padding: 32px 0 0;
    background: var(--ucg-neutral);
}

.ucg-post-featured img {
    display: block;
    width: 100%;
    max-height: 650px;
    object-fit: cover;
    border-radius: var(--ucg-radius);
    box-shadow: var(--ucg-shadow);
}

.ucg-post-body {
    padding: clamp(60px, 8vw, 100px) 0;
}

.ucg-post-content {
    max-width: 850px;
    margin-inline: auto;
}

.ucg-post-content > * {
    max-width: 100%;
}

.ucg-post-content img {
    border-radius: var(--ucg-radius);
    box-shadow: var(--ucg-shadow);
}

.ucg-post-footer {
    padding: 32px 0 70px;
}

.ucg-post-tags {
    margin-bottom: 28px;
    color: var(--ucg-muted);
}

.ucg-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ucg-post-navigation a {
    display: block;
    padding: 18px;
    border: 1px solid var(--ucg-border);
    border-radius: var(--ucg-radius);
    background: var(--ucg-white);
    box-shadow: var(--ucg-shadow);
}

.ucg-post-next {
    text-align: right;
}

.ucg-archive-header {
    text-align: center;
}

.ucg-archive-intro {
    max-width: 720px;
    margin: 0 auto;
    color: var(--ucg-muted);
}

.ucg-archive-grid-section {
    padding: clamp(60px, 8vw, 100px) 0;
}

.ucg-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.ucg-resource-card {
    overflow: hidden;
}

.ucg-resource-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ucg-resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.ucg-resource-card:hover .ucg-resource-image img {
    transform: scale(1.03);
}

.ucg-resource-content {
    padding: 26px;
}

.ucg-resource-date {
    color: var(--ucg-muted);
    font-size: .82rem;
    font-weight: 700;
}

.ucg-resource-title {
    margin: 10px 0 12px;
    font-size: 1.35rem;
}

.ucg-resource-excerpt {
    color: var(--ucg-muted);
}

.ucg-resource-excerpt p:last-child {
    margin-bottom: 0;
}

.ucg-text-link {
    display: inline-block;
    margin-top: 18px;
    font-weight: 800;
}

.ucg-pagination {
    margin-top: 42px;
    text-align: center;
}

.ucg-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ucg-pagination a,
.ucg-pagination span {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid var(--ucg-border);
    border-radius: 8px;
    background: var(--ucg-white);
}

.ucg-pagination .current {
    background: var(--ucg-green);
    color: var(--ucg-white);
}

.ucg-empty-state {
    max-width: 700px;
    margin-inline: auto;
    padding: 60px 30px;
    border: 1px solid var(--ucg-border);
    border-radius: var(--ucg-radius);
    text-align: center;
    box-shadow: var(--ucg-shadow);
}

.ucg-404-section {
    display: grid;
    min-height: 65vh;
    place-items: center;
    padding: 90px 0;
    text-align: center;
}

.ucg-404-section .ucg-play-button {
    margin-bottom: 18px;
}

.ucg-404-title {
    max-width: 800px;
    margin-inline: auto;
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.ucg-404-copy {
    max-width: 650px;
    margin: 0 auto 30px;
    color: var(--ucg-muted);
}

.ucg-404-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ucg-button-secondary {
    background: transparent;
    color: var(--ucg-green);
    box-shadow: none;
}

.ucg-button-secondary:hover {
    color: var(--ucg-black);
}

@media (max-width: 980px) {
    .ucg-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .ucg-post-grid {
        grid-template-columns: 1fr;
    }

    .ucg-post-navigation {
        grid-template-columns: 1fr;
    }

    .ucg-post-next {
        text-align: left;
    }

    .ucg-resource-content {
        padding: 22px;
    }
}
