/*
Theme Name: Trust TV
Theme URI: https://trusttv.com
Author: Smart Jayms
Author URI: https://smartjayms.blogspot.com/p/about-me.html
Description: Trust TV Nigeria - Documenting the Nigerian Stories. A dark, modern news and media theme for Trust TV Nigeria.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trust-tv
Tags: news, dark, media, tv, modern, custom-menu, featured-images, post-formats, custom-logo, custom-header, threaded-comments, translation-ready
*/

/* =============================================
   TRUST TV THEME - BASE STYLES
   ============================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --accent-red: #e63946;
    --accent-red-dark: #cc0000;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --border-color: #2a2a2a;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-red);
    color: #fff;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Alignments */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

.alignwide {
    margin-left: -2em;
    margin-right: -2em;
}

.alignfull {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
}

/* WordPress core classes */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1em;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 0.5em 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1em;
    margin-bottom: 1.5em;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Sticky post */
.sticky {
    border-left: 3px solid var(--accent-red);
    padding-left: 1em;
}

/* Post password form */
.post-password-form label {
    display: block;
    margin-bottom: 0.5em;
    color: var(--text-secondary);
}

.post-password-form input[type="password"] {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5em 1em;
    border-radius: 4px;
    margin-right: 0.5em;
}

.post-password-form input[type="submit"] {
    background: var(--accent-red);
    color: #fff;
    padding: 0.5em 1.5em;
    border-radius: 4px;
    cursor: pointer;
}

/* Comments */
.comment-list {
    margin-bottom: 2em;
}

.comment {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5em 0;
}

.comment-author .fn {
    font-weight: 700;
    color: var(--text-primary);
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5em;
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.comment-reply-link {
    font-size: 0.85rem;
    color: var(--accent-red);
    margin-top: 0.5em;
    display: inline-block;
}

.comment-form label {
    display: block;
    margin-bottom: 0.3em;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75em 1em;
    border-radius: 4px;
    margin-bottom: 1em;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-red);
}

.comment-form input[type="submit"] {
    background: var(--accent-red);
    color: #fff;
    padding: 0.75em 2em;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form input[type="submit"]:hover {
    background: var(--accent-red-dark);
}

/* Pagination */
.pagination,
.nav-links {
    display: flex;
    gap: 0.5em;
    justify-content: center;
    margin: 2em 0;
    flex-wrap: wrap;
}

.page-numbers,
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75em;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-numbers:hover,
.nav-links a:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.page-numbers.current {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

/* Widgets */
.widget {
    margin-bottom: 2em;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    border-left: 3px solid var(--accent-red);
    padding-left: 0.75em;
    margin-bottom: 1em;
}

.widget ul li {
    border-bottom: 1px solid var(--border-color);
    padding: 0.5em 0;
}

.widget ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.widget ul li a:hover {
    color: var(--accent-red);
}

/* Search form */
.search-form {
    display: flex;
    gap: 0.5em;
}

.search-form .search-field {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75em 1em;
    border-radius: 4px;
}

.search-form .search-submit {
    background: var(--accent-red);
    color: #fff;
    padding: 0.75em 1.5em;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form .search-submit:hover {
    background: var(--accent-red-dark);
}

/* Utility classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-red);
    margin-bottom: 1.25em;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: var(--accent-red);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.75em 1.5em;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-red {
    background: var(--accent-red);
    color: #fff;
}

.btn-red:hover {
    background: var(--accent-red-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
}

.btn-outline:hover {
    background: var(--accent-red);
    color: #fff;
}

/* Clearfix */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* Responsive images */
.post-thumbnail img,
.wp-post-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Video Embeds */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 1.5em 0;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Make all iframes in entry content responsive */
.entry-content iframe {
    max-width: 100%;
}

/* Wrap oEmbed iframes in single posts */
.entry-content .wp-block-embed__wrapper,
.entry-content .embed-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1.5em 0;
}

.entry-content .wp-block-embed__wrapper iframe,
.entry-content .embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.entry-video {
    margin: 1.5em 0;
}

/* Share Label */
.share-label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 8px;
}
