/*
 Theme Name:   Tré Visio Child Theme
 Theme URI:    https://trevisioproductions.com
 Description:  Child theme for Tré Visio Productions
 Author:       Gemini
 Author URI:   https://gemini.google.com
 Template:     Divi
 Version:      1.2.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   Brand Guidelines
   ========================================================================== */

:root {
  /* Primary */
  --tv-snow: #FFFBFE;           /* Primary background */
  --tv-carbon: #191919;          /* Dark/alternating background */
  
  /* Accent */
  --tv-grape: #675C99;           /* Accent background (purple) */
  --tv-turquoise: #00CFC1;       /* Primary CTA, active states */
  --tv-gold: #FFBC42;            /* Secondary CTA, accents */
  --tv-coral: #FE5F55;           /* Warnings, errors, alerts only */
  
  /* Derived */
  --tv-turquoise-dark: #00A89D;  /* Hover state for turquoise */
  --tv-gold-dark: #E5A835;       /* Hover state for gold */
  --tv-text-dark: #191919;       /* Body text on light backgrounds */
  --tv-text-light: #FFFBFE;      /* Body text on dark backgrounds */
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.tv-btn-primary {
  background: var(--tv-turquoise);
  color: var(--tv-snow);
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.tv-btn-primary:hover {
  background: var(--tv-turquoise-dark);
  color: var(--tv-snow);
}

.tv-btn-secondary {
  background: var(--tv-gold);
  color: var(--tv-carbon);
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.tv-btn-secondary:hover {
    background: var(--tv-gold-dark);
    color: var(--tv-carbon);
}

.tv-btn-outline {
  background: transparent;
  color: var(--tv-turquoise);
  border: 2px solid var(--tv-turquoise);
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.tv-btn-outline:hover {
    background: var(--tv-turquoise);
    color: var(--tv-snow);
}

.tv-btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.tv-btn-shimmer:hover::before {
  left: 100%;
}

/* ==========================================================================
   Gradient Headings
   ========================================================================== */

.tv-gradient-heading {
  background: linear-gradient(90deg, var(--tv-turquoise), var(--tv-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tv-gradient-heading-alt {
  background: linear-gradient(90deg, var(--tv-gold), var(--tv-grape));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tv-gradient-heading-animated {
  background: linear-gradient(
    90deg,
    var(--tv-turquoise),
    var(--tv-gold),
    var(--tv-turquoise)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: tv-gradient-shift 3s ease infinite;
}

 @keyframes tv-gradient-shift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ==========================================================================
   Section Backgrounds
   ========================================================================== */

.tv-section-light {
  background: var(--tv-snow);
  color: var(--tv-text-dark);
}

.tv-section-dark {
  background: var(--tv-carbon);
  color: var(--tv-text-light);
}

.tv-section-grape {
  background: var(--tv-grape);
  color: var(--tv-text-light);
}

/* ==========================================================================
   Podcast Display
   ========================================================================== */

/* Podcast list container */
.tv-podcast-list .et_pb_post {
  display: flex;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(25, 25, 25, 0.1);
}

/* Thumbnail */
.tv-podcast-list .et_pb_post .entry-featured-image-url {
  flex: 0 0 250px;
  border-radius: 4px;
  overflow: hidden;
}

.tv-podcast-list .et_pb_post .entry-featured-image-url img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Content area */
.tv-podcast-list .et_pb_post .post-content-wrapper {
  flex: 1;
}

/* Title */
.tv-podcast-list .et_pb_post h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--tv-carbon);
  margin-bottom: 10px;
}

/* Categories/Tags as pills */
.tv-podcast-list .et_pb_post .post-categories a,
.tv-podcast-list .et_pb_post .post-tags a {
  display: inline-block;
  background: var(--tv-turquoise);
  color: var(--tv-snow);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 8px;
  margin-bottom: 8px;
  text-decoration: none;
}

/* Excerpt */
.tv-podcast-list .et_pb_post .post-content p {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--tv-carbon);
  opacity: 0.85;
}

/* Read more link */
.tv-podcast-list .et_pb_post .more-link {
  color: var(--tv-turquoise);
  font-weight: 600;
  text-decoration: none;
}

.tv-podcast-list .et_pb_post .more-link:hover {
  color: var(--tv-turquoise-dark);
}

/* ==========================================================================
   Contact Form Styling
   ========================================================================== */

.tv-contact-form .et_pb_contact_form {
  max-width: 600px;
}

.tv-contact-form input[type="text"],
.tv-contact-form input[type="email"],
.tv-contact-form textarea {
  background: var(--tv-snow);
  border: 1px solid rgba(25, 25, 25, 0.2);
  border-radius: 6px;
  padding: 14px 18px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.tv-contact-form input:focus,
.tv-contact-form textarea:focus {
  border-color: var(--tv-turquoise);
  outline: none;
}

.tv-contact-form label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--tv-carbon);
}

.tv-contact-form .et_pb_contact_submit {
  /* Inherits .tv-btn-primary styles */
}

/* Podcast Listen Label */
.tv-podcast-listen-links .tv-listen-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--tv-carbon);
    margin-bottom: 15px;
    display: block; /* Added to make margin-bottom effective */
}

/* Footer Styling */
.tv-footer {
  background: var(--tv-carbon);
  color: var(--tv-snow);
  padding: 60px 0 30px;
}

.tv-footer h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--tv-snow);
  margin-bottom: 20px;
}

.tv-footer a {
  color: var(--tv-snow);
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.tv-footer a:hover {
  opacity: 1;
  color: var(--tv-turquoise);
}

.tv-footer-nav li {
  margin-bottom: 10px;
  list-style: none;
}

.tv-footer-nav a {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
}

.tv-footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 251, 254, 0.1);
  margin-right: 10px;
  transition: background 0.3s ease;
}

.tv-footer .social-icons a:hover {
  background: var(--tv-turquoise);
}

.tv-footer-copyright {
  border-top: 1px solid rgba(255, 251, 254, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  opacity: 0.6;
}

/* ==========================================================================
   SINGLE PODCAST PAGE - Final Polish
   ========================================================================== */

/* 1. Force the page background to be dark */
body.tv-single-podcast-page,
body.tv-single-podcast-page #page-container {
    background-color: var(--tv-carbon, #191919) !important;
}

/* 2. Force main content areas to be transparent */
body.tv-single-podcast-page #main-content,
body.tv-single-podcast-page #et-main-area {
    background-color: transparent !important;
}

/* 3. Aggressively fix top spacing issue */
body.tv-single-podcast-page #et-main-area {
    padding-top: 0px !important;
}

/* Adjust vertical spacing for main content on single podcast pages */
body.tv-single-podcast-page #main-content {
    padding-top: 0px !important;
    padding-bottom: 60px !important;
}

/* 4. Kill the line artifact by hiding pseudo-elements on the container */
body.tv-single-podcast-page .container::before,
body.tv-single-podcast-page .container::after {
    display: none !important;
    content: '' !important;
}

body.tv-single-podcast-page .container {
    max-width: 1080px !important;
}

/* 5. Style our card with correct spacing and width */
.tv-podcast-card {
    background: var(--tv-snow, #FFFBFE);
    border-radius: 12px;
    padding: 48px;
    max-width: 1080px; /* Readability width */
    margin: 0 auto !important;
    box-shadow: 0 20px 55px rgba(0,0,0,0.3);
    border-top: 4px solid var(--tv-grape, #675C99); /* The purple stripe */
}

@media (max-width: 1100px) { /* Adjust media query for new max-width */
    .tv-podcast-card {
        padding: 32px;
        margin: 30px auto;
    }
}

/* 6. Text & Link Colors */
.tv-podcast-card .entry-title {
    margin-bottom: 24px;
    color: var(--tv-text-dark) !important;
}
.tv-podcast-card,
.tv-podcast-card .tv-podcast-meta,
.tv-podcast-card .tv-listen-label,
.tv-podcast-card .entry-content h1,
.tv-podcast-card .entry-content h2,
.tv-podcast-card .entry-content h3,
.tv-podcast-card .entry-content h4 {
    color: var(--tv-text-dark) !important;
}
.tv-podcast-card .entry-content,
.tv-podcast-card .entry-content p {
    color: var(--tv-text-dark) !important;
    opacity: 0.9;
}
.tv-podcast-card a {
    color: var(--tv-turquoise) !important;
    text-decoration: none !important;
}
.tv-podcast-card a:hover {
    color: var(--tv-turquoise-dark) !important;
}

/* 7. Restore button styles (subtle radius) */
.tv-podcast-card .tv-listen-btn {
    color: var(--tv-text-dark) !important;
    border: 1px solid rgba(25, 25, 25, 0.15) !important;
    background: transparent;
    border-radius: 6px !important; /* Subtle radius */
    padding: 10px 20px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all .3s ease;
}
.tv-podcast-card .tv-listen-btn:hover {
    border-color: var(--tv-turquoise) !important;
    background: rgba(0, 207, 193, 0.08) !important;
    color: var(--tv-text-dark) !important;
    transform: translateY(-2px);
}

/* 8. Inner Component Layout & Spacing */
.tv-podcast-card .tv-podcast-player { margin: 32px 0; }
.tv-podcast-card .tv-podcast-player iframe { width: 100%; border-radius: 12px; border: none; min-height: 232px; }
.tv-podcast-card .tv-podcast-meta { border-top: 1px solid rgba(0,0,0,0.08); border-bottom: 1px solid rgba(0,0,0,0.08); padding: 16px 0; margin-bottom: 32px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.tv-podcast-card .tv-podcast-listen-links { margin: 32px 0 48px 0; } /* Increased bottom margin */

/* More Episodes Grid */
.tv-podcast-card .tv-more-episodes { margin-top: 80px; padding-top: 48px; border-top: 1px solid rgba(0,0,0,0.08); }
.tv-podcast-card .tv-more-episodes-heading {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600 !important; /* Semi-bold */
    margin-bottom: 28px !important; /* Spacing below heading */
    color: var(--tv-text-dark) !important; /* Fix visibility */
}
.tv-episodes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 767px) { .tv-episodes-grid { grid-template-columns: 1fr; } }
.tv-episode-card-image { border-radius: 8px; overflow: hidden; margin-bottom: 15px; aspect-ratio: 16/9; }
.tv-episode-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tv-episode-card:hover .tv-episode-card-image img { transform: scale(1.05); }
.tv-episode-card-number { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--tv-grape); margin-bottom: 4px; }
.tv-episode-card-title { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--tv-text-dark) !important; }

/* Podcast Listen Label */
.tv-podcast-listen-links .tv-listen-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--tv-carbon);
    margin-bottom: 15px;
    display: block; /* Added to make margin-bottom effective */
}
