/*
Theme Name: Kinetic Fitness
Theme URI: https://kineticfitness.example
Author: Kinetic Fitness
Author URI: https://kineticfitness.example
Description: High-energy dark-mode fitness blog theme with Anton & Inter typography, electric lime accents, and full support for WordPress posts, categories, search, sidebar, and comments.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kinetic-fitness
Tags: blog, dark, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Custom styles for the Kinetic Fitness theme
   (Colors/typography are powered by Tailwind config; this file holds
   utility rules that are awkward to express as Tailwind classes.)
   ========================================================================== */

.kinetic-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}
.kinetic-icon svg {
    display: block;
}

/* Fixed header height offset (two-row on desktop, single row on mobile) */
body {
    --kinetic-header-h: 64px;
    padding-top: var(--kinetic-header-h);
}
@media (min-width: 768px) {
    body {
        --kinetic-header-h: 104px;
    }
}
/* Account for the WordPress admin bar */
.admin-bar {
    padding-top: calc(var(--kinetic-header-h) + 32px);
}
.admin-bar .site-header {
    top: 32px;
}
@media (max-width: 781px) {
    .admin-bar {
        padding-top: calc(var(--kinetic-header-h) + 46px);
    }
    .admin-bar .site-header {
        top: 46px;
    }
}

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(195, 244, 0, 0.2);
}

.glow-hover:hover {
    box-shadow: 0 0 15px rgba(195, 244, 0, 0.2);
}

.hover-glow:hover {
    box-shadow: 0 0 20px 0 rgba(195, 244, 0, 0.2);
    transform: scale(1.02);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 20, 20, 0.9) 0%, rgba(18, 20, 20, 0.2) 100%);
    z-index: 10;
}

/* Make sure generated paragraphs/headings inside the post content inherit
   the dark palette even when they don't carry Tailwind classes. */
.entry-content > *:not(:last-child) {
    margin-bottom: 1.5rem;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #ffffff;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 3rem 0 1rem;
    border-bottom: 1px solid #333535;
    padding-bottom: 0.5rem;
}
.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content p {
    color: #c4c9ac;
    line-height: 1.75;
    font-size: 1.125rem;
}
.entry-content ul,
.entry-content ol {
    color: #c4c9ac;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}
.entry-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}
.entry-content a {
    color: #c3f400;
    text-decoration: underline;
}
.entry-content blockquote {
    border-left: 4px solid #c3f400;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #121414;
    color: #c4c9ac;
    border-radius: 0 0.5rem 0.5rem 0;
}
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid #333535;
}
.entry-content figure {
    margin: 2rem 0;
}
.entry-content figcaption {
    color: #8e9379;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.5rem;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    color: #c4c9ac;
}
.entry-content th,
.entry-content td {
    border: 1px solid #333535;
    padding: 0.75rem 1rem;
    text-align: left;
}
.entry-content th {
    background: #1e2020;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* Comments */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.comment-list .children {
    list-style: none;
    margin-left: 2rem;
    padding-left: 1.5rem;
    border-left: 1px solid #333535;
}
.comment-body {
    background: #1a1c1c;
    border: 1px solid #333535;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.comment-meta .fn {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
}
.comment-meta .comment-metadata a {
    color: #8e9379;
    font-size: 0.75rem;
    text-decoration: none;
}
.comment-content p {
    color: #e2e2e2;
    line-height: 1.6;
    margin: 0;
}
.comment-reply-link,
.comment-edit-link {
    color: #c3f400;
    font-size: 0.8125rem;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
}
.reply {
    margin-top: 0.5rem;
}

/* Comment form */
.comment-form label {
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.35rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: #1e2020;
    border: 1px solid #333535;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #e2e2e2;
    margin-bottom: 1rem;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #c3f400;
    box-shadow: 0 0 0 1px #c3f400;
}
.comment-form .submit {
    background: transparent;
    border: 2px solid #c3f400;
    color: #c3f400;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.comment-form .submit:hover {
    background: #c3f400;
    color: #161e00;
    box-shadow: 0 0 15px rgba(195, 244, 0, 0.2);
}

/* Search & archive */
.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 !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}
.pagination .page-numbers {
    background: #1e2020;
    border: 1px solid #333535;
    color: #c4c9ac;
    padding: 0.5rem 0.9rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.15s ease;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #c3f400;
    color: #161e00;
    border-color: #c3f400;
}

/* Cookie consent banner */
#kinetic-cookie-banner {
    animation: kineticFadeUp 0.4s ease;
}
@keyframes kineticFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
