/* Minimal site styles for tracker integration */
body { font-family: 'Helvetica Neue', Arial, sans-serif; background: #fff; color: #333; margin: 0; padding: 0; }
.container { max-width: 900px; margin: 0 auto; padding: 20px; }
header { text-align: center; padding: 40px 20px 12px; position: relative; }
.subtitle { color: #666; font-size: 1.05rem; margin-top: 6px; }

/* Primary site button used for calls-to-action */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ff6f9a;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
}
.btn:hover { background: #e65f86; }

/* Buttons specific to the tracker UI */
.btn-primary { background: #fff; color: #667eea; border-radius: 50px; padding: 14px 32px; font-weight: 600; border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.12); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-back { background: #ecf0f1; color: #2c3e50; padding: 10px 18px; border-radius: 8px; border: none; }

/* Home button in header (site-specific small variant) */
.site-home-btn { position: absolute; left: 12px; top: 12px; padding: 8px 14px; font-size: 0.95rem; border-radius: 6px; }

/* Basic tracker sections (kept minimal so site styles don't clash) */
.welcome-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 36px; border-radius: 12px; text-align: center; }
.suggestion-card { background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%); color: #fff; padding: 20px; border-radius: 10px; margin-top: 18px; }
.chart-section { background: #f8f9fa; padding: 20px; border-radius: 10px; margin-top: 18px; }

/* Make sure canvas doesn't overflow on small screens */
#wellnessChart { max-width: 100%; height: auto; }

@media (max-width: 700px) {
  .container { padding: 12px; }
  .welcome-card { padding: 22px; }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f8 100%);
    min-height: 100vh;
    padding: 20px;
    font-size: 18px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e8f0f8;
}

h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #7f8c8d;
    font-weight: 300;
}

h2 {
    font-size: 2em;
    color: #34495e;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.welcome-card h2 {
    color: white;
    font-size: 2.2em;
    margin-bottom: 15px;
}

.welcome-card p {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Buttons */
.btn-primary {
    background: white;
    color: #667eea;
    border: none;
    padding: 20px 50px;
    font-size: 1.4em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-back {
    background: #ecf0f1;
    color: #2c3e50;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.btn-back:hover {
    background: #d5dbdb;
}

/* Suggestion Card */
.suggestion-card {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.3);
}

.suggestion-card h3 {
    color: white;
    font-size: 1.6em;
    margin-bottom: 15px;
}

.suggestion-card p {
    font-size: 1.2em;
    line-height: 1.7;
}

/* Chart Section */
.chart-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

#wellnessChart {
    max-height: 400px;
}

/* Form Styles */
.form-group {
    margin-bottom: 30px;
}

label {
    display: block;
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

select, textarea {
    width: 100%;
    padding: 18px;
    font-size: 1.2em;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    color: #2c3e50;
    transition: border-color 0.3s ease;
}

select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 50px;
}

textarea {
    resize: vertical;
    font-family: inherit;
}

/* Footer */
footer {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 2px solid #e8f0f8;
}

.disclaimer {
    font-size: 0.95em;
    color: #7f8c8d;
    text-align: center;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 16px;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.3em;
    }

    .welcome-card {
        padding: 30px 20px;
    }

    .welcome-card h2 {
        font-size: 1.8em;
    }

    .welcome-card p {
        font-size: 1.1em;
    }

    .btn-primary {
        padding: 18px 40px;
        font-size: 1.2em;
        width: 100%;
    }

    label {
        font-size: 1.1em;
    }

    select, textarea {
        font-size: 1.1em;
        padding: 15px;
    }

    .chart-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.7em;
    }

    .welcome-card h2 {
        font-size: 1.5em;
    }

    .btn-primary {
        font-size: 1.1em;
        padding: 16px 30px;
    }
}

/* Animation */
.view {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Course Page Shared Styles --- */
.player {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}
.thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.play-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.description {
    margin-top: 18px;
}
.center {
    text-align: center;
}
