/*
Theme Name: Sleep Calculator
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: A custom WordPress theme for Sleep Calculator with dynamic pages
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sleep-calculator
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2c3e50;
  background: #f5f5f5;
  min-height: 100vh;
}

/* Header Styles */
header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 50px;
  height: 50px;
}

.logo-text h1 {
  font-size: 1.5rem;
  color: #00bcd4;
  font-weight: 600;
}

/* Desktop Navigation */
nav.desktop-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
nav.desktop-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.desktop-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.desktop-nav a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

nav.desktop-nav a:hover {
  color: #00bcd4;
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #00bcd4;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
nav.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  padding: 20px;
  gap: 15px;
}

nav.mobile-nav.active {
  display: flex;
}

nav.mobile-nav a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.3s ease;
  cursor: pointer;
}

nav.mobile-nav a:hover {
  background: #e0f7fa;
  color: #00bcd4;
}

/* Main Content */
main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Calculator Box */
.calculator-box {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
  border: 3px solid #00bcd4;
}

h2 {
  color: #00bcd4;
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

/* Time Picker */
.time-picker {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px auto;
  background: #e0f7fa;
  border-radius: 16px;
  border: 3px solid #00bcd4;
  padding: 20px 15px;
  max-width: 400px;
  position: relative;
}

.picker-column {
  width: 100px;
  height: 180px;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: thin;
  position: relative;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
}

.picker-column::-webkit-scrollbar {
  width: 6px;
}

.picker-column::-webkit-scrollbar-track {
  background: #b2ebf2;
  border-radius: 10px;
}

.picker-column::-webkit-scrollbar-thumb {
  background: #00bcd4;
  border-radius: 10px;
}

.picker-wrapper {
  padding: 60px 0;
}

.picker-item {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #90a4ae;
  user-select: none;
  transition: all 0.3s ease;
  cursor: pointer;
  scroll-snap-align: center;
}

.picker-item.selected {
  color: #00bcd4;
  font-weight: bold;
  font-size: 1.8rem;
  text-shadow: 0 2px 10px rgba(0, 188, 212, 0.3);
}

.picker-item.near {
  color: #546e7a;
  font-size: 1.3rem;
}

#ampm {
  width: 80px;
}

.time-picker::before {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  top: 50%;
  height: 60px;
  transform: translateY(-50%);
  background: rgba(0, 188, 212, 0.1);
  border-radius: 10px;
  pointer-events: none;
  z-index: 0;
  border: 2px solid rgba(0, 188, 212, 0.3);
}

.picker-column {
  z-index: 1;
}

/* Button Container */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

/* Buttons */
button.calculate-btn {
  background: #00bcd4;
  color: #fff;
  font-size: 1.1rem;
  padding: 16px 40px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  max-width: 400px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3);
}

button.calculate-btn:hover {
  background: #0097a7;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 188, 212, 0.4);
}

button.calculate-btn.secondary {
  background: #00897b;
}

button.calculate-btn.secondary:hover {
  background: #00695c;
}

/* Results */
.results {
  margin-top: 30px;
  text-align: center;
}

.results h3 {
  color: #00bcd4;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.results .subtitle {
  color: #546e7a;
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.result-times {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 25px 0;
}

.result-item {
  background: #00bcd4;
  padding: 18px 30px;
  border-radius: 12px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  min-width: 130px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3);
  transition: transform 0.2s ease;
}

.result-item:hover {
  transform: translateY(-3px);
}

.result-item.suggested {
  background: #ff6f00;
  border: 3px solid #ffb300;
  box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
  transform: scale(1.05);
}

.result-item .badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ffb300;
  color: #fff;
  font-size: 0.65rem;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(255, 179, 0, 0.5);
}

.results .info-text {
  color: #546e7a;
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 25px;
}

.go-back-btn {
  background: #ffb300;
  color: #fff;
  font-size: 1rem;
  padding: 12px 30px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.go-back-btn:hover {
  background: #ff6f00;
  transform: translateY(-2px);
}

/* Why Use Section */
.why-use-section {
  margin-top: 50px;
  text-align: center;
}

.why-use-section h3 {
  color: #00bcd4;
  font-size: 2rem;
  margin-bottom: 30px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.benefit-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #00bcd4;
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.benefit-card h4 {
  color: #00bcd4;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.benefit-card p {
  color: #546e7a;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Content Pages */
.content-page {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid #00bcd4;
}

.content-page h2 {
  color: #00bcd4;
  margin-bottom: 30px;
}

.content-page ul {
  list-style: none;
  padding: 0;
}

.content-page ul li {
  background: #e0f7fa;
  padding: 20px;
  margin: 15px 0;
  border-radius: 12px;
  border-left: 4px solid #00bcd4;
  transition: transform 0.2s ease;
}

.content-page ul li:hover {
  transform: translateX(5px);
}

.content-page ul li strong {
  color: #00bcd4;
  font-size: 1.1rem;
}

.content-page p {
  color: #546e7a;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* WordPress Content Styling */
.wp-content {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid #00bcd4;
}

.wp-content h2 {
  color: #00bcd4;
  margin-bottom: 20px;
}

.wp-content h3 {
  color: #00bcd4;
  margin-top: 30px;
  margin-bottom: 15px;
}

.wp-content p {
  color: #546e7a;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.wp-content ul, .wp-content ol {
  margin-left: 30px;
  margin-bottom: 20px;
  color: #546e7a;
}

.wp-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.wp-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
}

/* Footer */
footer {
  margin-top: 60px;
  padding: 20px;
  color: #546e7a;
  text-align: center;
  font-size: 0.9rem;
  background: #fff;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

  .logo-text h1 {
    font-size: 1.2rem;
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  h2 {
    font-size: 1.6rem;
  }

  .calculator-box {
    padding: 30px 20px;
  }

  .time-picker {
    padding: 15px 10px;
  }

  .picker-column {
    width: 80px;
  }

  #ampm {
    width: 65px;
  }

  .picker-item {
    font-size: 1rem;
  }

  .picker-item.selected {
    font-size: 1.6rem;
  }

  .picker-item.near {
    font-size: 1.2rem;
  }

  button.calculate-btn {
    font-size: 1rem;
    padding: 14px 30px;
    max-width: 100%;
  }

  .result-item {
    font-size: 1.1rem;
    padding: 15px 20px;
    min-width: 110px;
  }

  .result-item.suggested {
    font-size: 1.25rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .why-use-section h3 {
    font-size: 1.6rem;
  }

  .content-page, .wp-content {
    padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 12px 15px;
  }

  .logo {
    width: 35px;
    height: 35px;
  }

  .logo-text h1 {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .picker-column {
    width: 70px;
    height: 160px;
  }

  #ampm {
    width: 55px;
  }

  .picker-item {
    font-size: 0.9rem;
    height: 50px;
  }

  .picker-item.selected {
    font-size: 1.4rem;
  }

  .picker-item.near {
    font-size: 1.1rem;
  }

  .time-picker::before {
    height: 50px;
  }

  .result-item {
    font-size: 1rem;
    padding: 12px 18px;
  }

  .benefit-card {
    padding: 25px 15px;
  }

  button.calculate-btn {
    font-size: 0.95rem;
    padding: 12px 25px;
  }
}

/* ===== CONTACT PAGE STYLES ===== */
/* ===== CONTACT PAGE STYLES ===== */
.contact-page-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
}

.contact-box {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  color: #666666;
  font-size: 1rem;
  margin-bottom: 30px;
}

.contact-form {
  margin: 30px 0;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  color: #17a2b8;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #17a2b8;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  margin-top: 20px;
  width: 100%;
  max-width: 300px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Contact Info Section */
.contact-info-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid #e9ecef;
}

.contact-info-section h3 {
  color: #17a2b8;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.contact-info-item {
  text-align: center;
  padding: 30px 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px solid #17a2b8;
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(23, 162, 184, 0.2);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.contact-info-item h4 {
  color: #17a2b8;
  margin: 10px 0;
  font-size: 1.2rem;
}

.contact-info-item p {
  color: #666666;
  font-size: 1rem;
  margin: 5px 0;
  padding: 0;
}

.contact-info-item a {
  color: #17a2b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-item a:hover {
  color: #0d7c8f;
}

/* Responsive Contact Page */
@media (max-width: 768px) {
  .contact-page-wrapper {
    padding: 30px 15px;
  }
  
  .contact-box {
    padding: 30px 20px;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-icon {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .contact-box {
    padding: 25px 15px;
  }
  
  .contact-info-section h3 {
    font-size: 1.3rem;
  }
  
  .contact-icon {
    font-size: 2rem;
  }
}
/* ===== ENHANCED FOOTER STYLES ===== */
.site-footer {
  background: linear-gradient(135deg, #0d1b2a 0%, #17a2b8 100%);
  color: #ffffff;
  padding: 50px 20px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: #f5a623;
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(245, 166, 35, 0.3);
}

.footer-column p {
  color: #e9ecef;
  line-height: 1.8;
  font-size: 0.95rem;
  padding: 0;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 12px;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.footer-menu li a {
  color: #e9ecef;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding-left: 15px;
  position: relative;
}

.footer-menu li a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-menu li a:hover {
  color: #f5a623;
  padding-left: 25px;
}

.footer-menu li a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  color: #e9ecef;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.social-icon {
  font-size: 1.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-icon:hover {
  transform: scale(1.2) rotate(5deg);
}

.footer-tagline {
  color: #f5a623;
  font-style: italic;
  margin-top: 15px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #e9ecef;
  margin: 5px 0;
  font-size: 0.9rem;
  padding: 0;
}

.footer-credit {
  color: #f5a623;
  font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .site-footer {
    padding: 40px 15px 15px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-column {
    text-align: center;
  }
  
  .footer-menu li a {
    padding-left: 0;
  }
  
  .footer-menu li a:hover {
    padding-left: 0;
  }
  
  .footer-menu li a::before {
    display: none;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}
/* Custom Logo Styling */
.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .custom-logo {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .custom-logo {
        width: 35px;
        height: 35px;
    }
}
/* Footer Logo Styling */
.footer-logo-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo-column .custom-logo-link,
.footer-logo-column .footer-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.footer-logo-column .custom-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .footer-logo-column .custom-logo-link,
    .footer-logo-column .footer-logo,
    .footer-logo-column .custom-logo {
        width: 60px;
        height: 60px;
    }
}