/* Kairos Coach - App-Like Trial Experience Styles */

.trial-section {
    padding-top: 100px; /* Space for fixed nav */
    padding-bottom: 40px;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.app-container {
    max-width: 428px; /* iPhone Pro Max width */
    margin: 0 auto;
    background: #000;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-height: 800px;
}

.app-screen {
    background: linear-gradient(180deg, #ffffff 0%, #f4f5f8 100%);
    min-height: 800px;
    position: relative;
}

/* Screens */
.screen {
    display: none;
    min-height: 800px;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

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

/* Welcome Screen */
.screen-welcome {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    justify-content: center;
    padding: 40px;
}

.app-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.app-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    text-align: center;
}

.welcome-features {
    margin: 40px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 16px;
}

.feature-icon {
    font-size: 24px;
}

/* App Buttons */
.app-button {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.app-button.primary {
    background: white;
    color: var(--primary);
}

.app-button.primary:hover {
    transform: scale(1.02);
}

.app-button.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.privacy-note {
    text-align: center;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 20px;
}

/* Screen Headers */
.screen-header {
    padding: 30px 20px 20px;
    background: white;
    border-bottom: 1px solid var(--border);
}

.screen-header h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 5px;
}

.screen-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.screen-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Coach Selection */
.coaches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.coach-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.coach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.coach-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.coach-initial {
    color: white;
}

.coach-name {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.coach-style {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.coach-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Active Coach Header */
.active-coach {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(74, 105, 189, 0.1) 0%, rgba(94, 132, 224, 0.1) 100%);
    border-radius: 12px;
}

.coach-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.coach-info h3 {
    margin-bottom: 5px;
    color: var(--text-primary);
}

.coach-info p {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Check-in Questions */
.question-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.question-progress {
    margin-bottom: 30px;
}

.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.question-text {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.options-grid {
    display: grid;
    gap: 10px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-btn:hover {
    border-color: var(--primary);
    background: rgba(74, 105, 189, 0.05);
}

.option-emoji {
    font-size: 28px;
}

.option-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Loading Screen */
.screen-loading {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.loading-animation {
    margin-bottom: 30px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading-status {
    font-size: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.loading-step.active {
    opacity: 0.7;
    animation: pulse 2s infinite;
}

.loading-step.completed {
    opacity: 1;
}

.step-icon {
    font-size: 24px;
}

/* Results Screen */
.results-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.weather-summary,
.checkin-summary,
.coach-advice,
.trial-features {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.weather-summary h4,
.checkin-summary h4,
.coach-advice h4,
.trial-features h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.weather-details {
    display: flex;
    gap: 20px;
    font-size: 16px;
}

.checkin-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.checkin-item span {
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 80px;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: var(--primary);
}

.advice-text {
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 15px;
}

.advice-text strong {
    color: var(--primary);
    font-weight: 600;
}

.advice-text ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.advice-text li {
    padding: 8px 0 8px 24px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.advice-text li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 8px;
}

.advice-text li:last-child {
    border-bottom: none;
}

.trial-features ul {
    list-style: none;
    padding: 0;
}

.trial-features li {
    padding: 8px 0;
    font-size: 16px;
    color: var(--text-primary);
}

/* App Download Section */
.app-download-section {
    padding: 30px 20px;
    text-align: center;
}

.app-download-section h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.app-download-section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.app-buttons-compact {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.download-btn {
    flex: 1;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.download-btn:hover {
    transform: translateY(-2px);
}

.download-btn.android {
    background: var(--success);
}

/* Responsive */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

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