/* Troy Davies Fitness - Smart Landing Page Styles
 * Version: 1.1.0
 * Author: Sean Shepley
 * Last Updated: August 27, 2025
 * Purpose: Modern responsive landing page with enhanced button visibility and wider desktop layout
 */

/* Reset and base styles */
.tdf-landing-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
}

.tdf-landing-page * {
  box-sizing: border-box;
}

/* Container - Responsive Width Strategy with Theme Override */
.tdf-landing-page .tdf-container {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 1.5rem !important;
  width: 100% !important;
}

/* Wider container for large screens */
@media (min-width: 1440px) {
  .tdf-landing-page .tdf-container {
    max-width: 1600px !important;
    padding: 0 2rem !important;
  }
}

/* Additional theme overrides */
.tdf-landing-page .tdf-hero .tdf-container,
.tdf-landing-page .tdf-tiers .tdf-container,
.tdf-landing-page .tdf-features .tdf-container,
.tdf-landing-page .tdf-testimonials .tdf-container,
.tdf-landing-page .tdf-final-cta .tdf-container {
  max-width: 1400px !important;
}

@media (min-width: 1440px) {
  .tdf-landing-page .tdf-hero .tdf-container,
  .tdf-landing-page .tdf-tiers .tdf-container,
  .tdf-landing-page .tdf-features .tdf-container,
  .tdf-landing-page .tdf-testimonials .tdf-container,
  .tdf-landing-page .tdf-final-cta .tdf-container {
    max-width: 1600px !important;
  }
}

/* Hero Section */
.tdf-hero {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.tdf-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.tdf-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tdf-hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tdf-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem 0;
  line-height: 1.6;
}

.tdf-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tdf-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tdf-hero-placeholder {
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.tdf-hero-placeholder span {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.tdf-hero-placeholder p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-style: italic;
}

/* BUTTONS - The main fix for visibility */
.tdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  min-width: 160px;
  text-align: center;
}

.tdf-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.tdf-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
  color: white !important;
  text-decoration: none;
}

.tdf-btn-secondary {
  background: transparent;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.tdf-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white !important;
  text-decoration: none;
}

.tdf-btn-outline {
  background: transparent;
  color: #2563eb !important;
  border-color: #2563eb;
}

.tdf-btn-outline:hover {
  background: #2563eb;
  color: white !important;
  text-decoration: none;
}

.tdf-btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  min-width: 220px;
}

/* Membership Tiers */
.tdf-tiers {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.tdf-tiers-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tdf-tiers-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem 0;
}

.tdf-tiers-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tdf-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.tdf-tier-card {
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  padding: 2rem;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tdf-tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Free Tier - Clean White with Green Accent */
.tdf-tier-free {
  background: white;
  border-color: #22c55e;
  border-width: 2px;
}

.tdf-tier-free .tdf-price {
  color: #16a34a;
}

/* Silver Tier - Keep existing blue styling but improve contrast */
.tdf-tier-silver {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  color: white;
  border-color: #2563eb;
}

.tdf-tier-silver .tdf-tier-header h3,
.tdf-tier-silver .tdf-tier-features li,
.tdf-tier-silver .tdf-period {
  color: white;
}

.tdf-tier-silver .tdf-price {
  color: white;
}

.tdf-tier-silver .tdf-tier-features li {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.tdf-tier-silver .tdf-tier-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Gold Tier - Dark Green Background with White Text */
.tdf-tier-gold {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  color: white;
  border-color: #059669;
}

.tdf-tier-gold .tdf-tier-header h3,
.tdf-tier-gold .tdf-tier-features li,
.tdf-tier-gold .tdf-period {
  color: white;
}

.tdf-tier-gold .tdf-price {
  color: #34d399;
}

.tdf-tier-gold .tdf-tier-features li {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.tdf-tier-gold .tdf-tier-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.tdf-tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.tdf-tier-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.tdf-tier-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 1rem 0;
}

.tdf-tier-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.tdf-price {
  font-size: 3rem;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
}

.tdf-period {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
}

.tdf-tier-features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.tdf-tier-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  color: #374151;
}

.tdf-tier-features li:last-child {
  border-bottom: none;
}

.tdf-tier-cta {
  text-align: center;
}

/* Button fixes for tier cards - Dark Grey Buttons */
.tdf-tier-free .tdf-btn-outline {
  background: #374151 !important;
  color: white !important;
  border: 2px solid #374151 !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

.tdf-tier-free .tdf-btn-outline:hover {
  background: #10b981 !important;
  color: white !important;
  border-color: #10b981 !important;
  text-decoration: none;
  text-shadow: none !important;
}

.tdf-tier-silver .tdf-btn-primary {
  background: #374151 !important;
  color: white !important;
  border: 2px solid #374151 !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

.tdf-tier-silver .tdf-btn-primary:hover {
  background: #4b5563 !important;
  color: white !important;
  text-decoration: none;
  text-shadow: none !important;
}

.tdf-tier-gold .tdf-btn-gold {
  background: #374151 !important;
  color: white !important;
  border: 2px solid #374151 !important;
  font-weight: 600 !important;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  text-shadow: none !important;
}

.tdf-tier-gold .tdf-btn-gold:hover {
  background: #10b981 !important;
  color: white !important;
  border-color: #10b981 !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
  text-shadow: none !important;
}

/* Features Section */
.tdf-features {
  padding: 5rem 0;
  background: white;
}

.tdf-features-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tdf-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tdf-feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.tdf-feature-card:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.tdf-feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.tdf-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 1rem 0;
}

.tdf-feature-card p {
  color: #64748b;
  margin: 0;
}

/* Testimonials */
.tdf-testimonials {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
}

.tdf-testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tdf-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.tdf-testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tdf-testimonial-card p {
  font-style: italic;
  margin: 0 0 1.5rem 0;
  font-size: 1.125rem;
  line-height: 1.6;
}

.tdf-testimonial-author strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.tdf-testimonial-author span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Final CTA */
.tdf-final-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  text-align: center;
}

.tdf-cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.tdf-cta-content p {
  font-size: 1.125rem;
  margin: 0 0 2rem 0;
  color: rgba(255, 255, 255, 0.9);
}

.tdf-cta-note {
  margin-top: 1rem !important;
  font-size: 0.875rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Dashboard Styles */
.tdf-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.tdf-dashboard h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 2rem 0;
  text-align: center;
}

.tdf-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tdf-dashboard-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tdf-dashboard-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 1rem 0;
}

.tdf-dashboard-card p {
  color: #64748b;
  margin: 0 0 1.5rem 0;
}

.tdf-dashboard-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.tdf-dashboard-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
  font-size: 0.875rem;
}

.tdf-dashboard-card li:last-child {
  border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tdf-hero {
    padding: 3rem 0;
  }
  
  .tdf-hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .tdf-hero-title {
    font-size: 2.25rem;
  }
  
  .tdf-hero-cta {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  
  .tdf-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .tdf-tiers-grid {
    grid-template-columns: 1fr;
  }
  
  .tdf-tier-popular {
    transform: none;
  }
  
  .tdf-features-grid {
    grid-template-columns: 1fr;
  }
  
  .tdf-testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .tdf-dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .tdf-cta-content h2 {
    font-size: 2rem;
  }
  
  .tdf-hero-placeholder {
    padding: 2rem;
  }
  
  .tdf-hero-placeholder span {
    font-size: 3rem;
  }
}

/* Accessibility */
.tdf-btn:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tdf-hero-content,
.tdf-feature-card,
.tdf-testimonial-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Link color fixes for WordPress themes */
.tdf-landing-page a {
  color: inherit;
  text-decoration: none;
}

.tdf-btn {
  color: white !important;
}

.tdf-btn:visited {
  color: white !important;
}

/* Force button visibility */
.tdf-btn-primary,
.tdf-btn-primary:visited,
.tdf-btn-primary:hover,
.tdf-btn-primary:active {
  color: white !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

.tdf-btn-secondary,
.tdf-btn-secondary:visited,
.tdf-btn-secondary:hover,
.tdf-btn-secondary:active {
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
}