/*
 Theme Name:   Kadence Child - Garner Legacy
 Theme URI:    https://garner-legacy.garnerlegacy.cloud
 Description:  Kadence child theme for Garner Legacy LLC
 Author:       Garner Legacy LLC
 Template:     kadence
 Version:      1.0.0
*/

/* ===== Brand Colors ===== */
:root {
    --gl-red: #C41E24;
    --gl-black: #0A0A0A;
    --gl-offwhite: #F5F5F5;
}

/* ===== Global Overrides ===== */
body {
    background-color: var(--gl-offwhite);
    color: var(--gl-black);
}

a {
    color: var(--gl-red);
}

a:hover {
    color: #9B181D;
}

/* ===== Buttons ===== */
.wp-block-button__link,
.kb-button,
button.kb-button,
input[type="submit"] {
    background-color: var(--gl-red) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-block-button__link:hover,
.kb-button:hover,
button.kb-button:hover,
input[type="submit"]:hover {
    background-color: #9B181D !important;
}

/* ===== Header ===== */
.site-header {
    background-color: var(--gl-black) !important;
}

#main-header .site-branding .site-title {
    color: #FFFFFF;
}

/* ===== Navigation ===== */
.header-navigation .menu > li > a {
    color: #FFFFFF !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.header-navigation .menu > li > a:hover {
    color: var(--gl-red) !important;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--gl-black) !important;
    color: #FFFFFF;
}

.site-footer a {
    color: var(--gl-offwhite);
}

.site-footer a:hover {
    color: var(--gl-red);
}

/* ===== Uniform Column Images ===== */
.wp-block-column .wp-block-image img.uniform-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .wp-block-column .wp-block-image img.uniform-img {
        height: 220px;
    }
}

/* ===== ALPHA Podcast Player (ported from thealphasports.com) ===== */
.alpha-page-player {
    max-width: 700px;
    margin: 0 auto;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.alpha-pp-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid #2A2A2A;
}

.alpha-pp-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.alpha-pp-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alpha-pp-subtitle {
    color: #999;
    font-size: 0.85rem;
    margin-top: 2px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

/* Episode list */
.alpha-pp-list {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 #1A1A1A;
}

.alpha-pp-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 24px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(42,42,42,0.5);
}

.alpha-pp-item:last-child {
    border-bottom: none;
}

.alpha-pp-item:hover {
    background: rgba(255,255,255,0.03);
}

/* Active episode — strong visual distinction */
.alpha-pp-item.active {
    background: rgba(196, 30, 36, 0.12);
    border-left: 3px solid #C41E24;
    padding-left: 21px;
}

.alpha-pp-item-play {
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin-top: 2px;
    border-radius: 50%;
    background: #2A2A2A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    transition: background 0.2s;
}

.alpha-pp-item:hover .alpha-pp-item-play,
.alpha-pp-item.active .alpha-pp-item-play {
    background: #C41E24;
}

.alpha-pp-item-info {
    flex: 1;
    min-width: 0;
}

.alpha-pp-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.alpha-pp-item.active .alpha-pp-item-title {
    font-weight: 700;
}

.alpha-pp-item-meta {
    font-size: 12px;
    color: #999;
}

/* Inline seek bar on active episode */
.alpha-pp-seek-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(196, 30, 36, 0.2);
}

.alpha-pp-time {
    font-size: 12px;
    color: #ccc;
    min-width: 36px;
    font-variant-numeric: tabular-nums;
}

.alpha-pp-time:last-child {
    text-align: right;
}

.alpha-pp-seek {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 6px;
    background: rgba(196, 30, 36, 0.2);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin: 0;
}

.alpha-pp-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #C41E24;
    cursor: pointer;
    border: none;
    margin-top: -4px;
}

.alpha-pp-seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #C41E24;
    cursor: pointer;
    border: none;
}

.alpha-pp-seek::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
}

.alpha-pp-seek::-moz-range-track {
    height: 6px;
    background: rgba(196, 30, 36, 0.2);
    border-radius: 3px;
}

.alpha-pp-badge {
    display: inline-block;
    background: #C41E24;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 6px;
    letter-spacing: 0.5px;
}

/* Scrollbar */
.alpha-pp-list::-webkit-scrollbar { width: 6px; }
.alpha-pp-list::-webkit-scrollbar-track { background: transparent; }
.alpha-pp-list::-webkit-scrollbar-thumb { background: #2A2A2A; border-radius: 3px; }

/* Responsive */
@media (max-width: 600px) {
    .alpha-pp-header { padding: 16px; }
    .alpha-pp-item { padding: 12px 16px; }
    .alpha-pp-item.active { padding-left: 13px; }
}
