/* flask_mmc/static/css/start.css */

/* ==========================================================================
   Global Styles & Animations (Specific to Start Page if needed)
   ========================================================================== */

:root {
    --app-card-border-radius: 0.5rem; /* Consistent card border radius */
    --app-section-padding-y: 4rem; /* Consistent vertical padding for sections */
    --app-transition-fast: 0.2s ease-out;
    --app-transition-medium: 0.3s ease-out;
    --app-transition-slow: 0.5s ease-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Hero Section (Logged Out)
   ========================================================================== */
.hero-logged-out {
    color: var(--app-light-text, #FFFFFF);
    padding: 0; /* Padding handled by inner container */
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensures pseudo-elements don't bleed */
    min-height: 100dvh; /* Ensure it takes up most of the viewport height */
    display: flex; /* For vertical centering of content */
    align-items: center; /* For vertical centering of content */
}

/* Mobile styles for hero section */
@media (max-width: 767.98px) {
    .hero-logged-out h1 {
        font-size: 2rem !important; /* Smaller heading on mobile */
        margin-bottom: 1rem !important;
    }

    .hero-logged-out .lead {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
        padding: 0 0.5rem !important;
    }

    .hero-logged-out .img-fluid {
        max-height: 120px !important; /* Smaller logo on mobile */
        margin-bottom: 1.5rem !important;
    }

    .hero-logged-out .btn-lg {
        padding: 0.75rem 1.75rem !important;
        font-size: 1rem !important; 
        display: block;
        width: 100% !important;
        margin-bottom: 1rem !important; /* Full width buttons on mobile */
    }

    .hero-logged-out .d-sm-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-logged-out .container {
        padding: calc(var(--app-section-padding-y) * 0.75) 1rem !important; /* Reduced padding */
    }
}

.hero-logged-out::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://images.pexels.com/photos/1552252/pexels-photo-1552252.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    filter: blur(4px); /* Slightly less blur can sometimes look sharper */
    transform: scale(1.1);
    z-index: 1;
}

.hero-logged-out::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Enhanced gradient overlay */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 2;
}

.hero-logged-out .container {
    position: relative;
    z-index: 3;
    padding: var(--app-section-padding-y) 1rem; /* Use variable */
    animation: fadeIn 1s var(--app-transition-slow);
}

.hero-logged-out .img-fluid { /* Logo */
    max-height: 160px; /* Slightly larger */
    border-radius: 50%;
    margin-bottom: 2rem !important; /* More space below logo */
    box-shadow: 0 5px 25px rgb(0, 0, 0) inset;
    transition: transform var(--app-transition-medium), box-shadow var(--app-transition-medium);
    animation: fadeInUp 0.8s var(--app-transition-medium) 0.2s backwards; /* 'backwards' applies from style before animation starts */
    /* background-color: white; */
}

.hero-logged-out .img-fluid:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0); /* Slightly stronger shadow on hover */
    /* box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); */
}

.hero-logged-out h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--app-light-text, #FFFFFF) !important;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.65);
    animation: fadeInUp 0.8s var(--app-transition-medium) 0.4s backwards;
}

.hero-logged-out .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem); /* Responsive font size */
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.55);
    max-width: 850px; /* Slightly wider lead text */
    animation: fadeInUp 0.8s var(--app-transition-medium) 0.6s backwards;
    line-height: 1.7;
}

.hero-logged-out .btn-lg {
    padding: 0.85rem 2.25rem; /* More prominent buttons */
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--app-card-border-radius);
    transition: transform var(--app-transition-fast), box-shadow var(--app-transition-fast),
                background-color var(--app-transition-fast), color var(--app-transition-fast),
                border-color var(--app-transition-fast);
}
.hero-logged-out .btn-lg i {
    transition: transform var(--app-transition-fast);
    margin-right: 0.75rem; /* More space for icon */
}

.hero-logged-out .btn-light {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: var(--app-primary-color, #007bff); /* Primary color text on light button */
}
.hero-logged-out .btn-light:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--app-primary-hover-color, #0056b3);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.hero-logged-out .btn-light:hover i {
    transform: scale(1.1) translateX(2px);
}


.hero-logged-out .btn-outline-light {
    border-width: 2px; /* Make outline more visible */
}
.hero-logged-out .btn-outline-light:hover {
    background-color: var(--app-light-text, #FFFFFF);
    color: var(--app-primary-color, #007bff);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.hero-logged-out .btn-outline-light:hover i {
    transform: scale(1.1) translateX(2px);
}

/* Animation for buttons in hero */
.hero-logged-out .d-grid > .btn:nth-child(1),
.hero-logged-out .d-sm-flex > .btn:nth-child(1) {
    animation: fadeInUp 0.8s var(--app-transition-medium) 0.8s backwards;
}
.hero-logged-out .d-grid > .btn:nth-child(2),
.hero-logged-out .d-sm-flex > .btn:nth-child(2) {
    animation: fadeInUp 0.8s var(--app-transition-medium) 1.0s backwards;
}


/* ==========================================================================
   Logged In View
   ========================================================================== */
.main-container-wrapper { /* This wraps the logged-in content */
    background-color: var(--app-light-bg, #f8f9fa); /* Light background for logged-in area */
}
.main-container-wrapper .container-lg {
    padding-top: var(--app-section-padding-y);
    padding-bottom: var(--app-section-padding-y);
}

.start-page-title {
    color: var(--app-dark-text, #212529) !important; /* Dark text on light bg */
    font-weight: 700;
    margin-bottom: 0.5rem !important; /* Adjusted margin */
}
.start-page-title:nth-of-type(2) { /* "Choose Your Path" */
    margin-bottom: 1.5rem !important; /* More space below the second title */
}

.page-intro-text {
    color: var(--app-secondary-color, #6c757d) !important; /* Secondary color for intro */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 3rem !important; /* More space before cards */
}

/* Role Cards Styling */
.role-card {
    background-color: var(--app-card-background-color, #FFFFFF);
    border-radius: var(--app-card-border-radius);
    text-decoration: none;
    color: var(--app-dark-text, #212529);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07); /* Softer initial shadow */
    transition: transform var(--app-transition-medium), box-shadow var(--app-transition-medium), border-color var(--app-transition-medium);
    border: 1px solid #e9ecef; /* Softer default border */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0; /* For animation */
    animation: fadeInUp 0.6s var(--app-transition-medium) forwards;
}
/* Animation delays for role cards */
.choices-wrapper > div:nth-child(1) .role-card { animation-delay: 0.2s; }
.choices-wrapper > div:nth-child(2) .role-card { animation-delay: 0.4s; }
.choices-wrapper > div:nth-child(3) .role-card { animation-delay: 0.6s; }
.choices-wrapper > div:nth-child(4) .role-card { animation-delay: 0.8s; } /* If there's a 4th */


.role-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem; /* Increased padding */
}

.role-card .role-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.role-card::before { /* For subtle gradient background effect */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity var(--app-transition-medium);
    z-index: 0;
    border-radius: var(--app-card-border-radius); /* Match card radius */
}

/* Specific Card Type Background Gradients (using theme variables) */
.find-coach-card::before {
    background: linear-gradient(135deg, rgba(var(--app-primary-color-rgb, 13, 110, 253), 0.1) 0%, rgba(var(--app-secondary-color-rgb, 108, 117, 125), 0.05) 100%);
}
.share-review-card::before {
    background: linear-gradient(135deg, rgba(var(--app-info-color-rgb, 23, 162, 184), 0.1) 0%, rgba(var(--app-secondary-color-rgb, 108, 117, 125), 0.05) 100%);
}
.coach-actions-card::before { /* For coach specific action cards */
    background: linear-gradient(135deg, rgba(var(--app-success-color-rgb, 40, 167, 69), 0.1) 0%, rgba(var(--app-secondary-color-rgb, 108, 117, 125), 0.05) 100%);
}

.role-card:hover {
    transform: translateY(-8px) scale(1.03); /* More pronounced hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Stronger shadow on hover */
}
.role-card:hover::before {
    opacity: 1;
}
.role-card:active {
    transform: translateY(-2px) scale(0.99);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.role-icon {
    margin-bottom: 1.5rem;
    width: 56px; /* Larger icons */
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--app-transition-medium);
}
.role-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--app-primary-color, #007bff); /* Default icon color to primary */
    transition: fill var(--app-transition-medium);
}
.role-card:hover .role-icon {
    transform: scale(1.1);
}

.role-card .card-title {
    font-weight: 600;
    font-size: 1.3rem; /* Larger card titles */
    margin-bottom: 0.75rem;
    color: var(--app-dark-text, #212529);
    transition: color var(--app-transition-medium);
}
.role-card:hover .card-title {
    color: var(--app-primary-color, #007bff); /* Change title color on general hover */
}

.role-card .card-text {
    font-size: 0.95rem; /* Slightly larger card text */
    color: var(--app-secondary-color, #6c757d);
    margin-bottom: 1.75rem;
    flex-grow: 1;
    line-height: 1.6;
}

.card-cta-arrow {
    font-size: 1.75rem; /* Adjusted size */
    font-weight: 700;
    color: var(--app-secondary-color, #6c757d); /* Subtler initial color */
    transition: transform var(--app-transition-medium), color var(--app-transition-medium);
    margin-top: auto;
    padding-top: 0.5rem;
    line-height: 1;
}
.role-card:hover .card-cta-arrow {
    transform: translateX(8px);
    color: var(--app-primary-color, #007bff); /* Arrow matches primary on hover */
}

/* Specific hover states for text/icon colors if needed to override general .role-card:hover */
.find-coach-card:hover .role-icon svg,
.find-coach-card:hover .card-title,
.find-coach-card:hover .card-cta-arrow { color: var(--app-primary-color, #007bff); }
.find-coach-card:hover { border-color: var(--app-primary-color, #007bff); }

.share-review-card:hover .role-icon svg,
.share-review-card:hover .card-title,
.share-review-card:hover .card-cta-arrow { color: var(--app-info-color, #17a2b8); }
.share-review-card:hover { border-color: var(--app-info-color, #17a2b8); }
.share-review-card .role-icon svg { fill: var(--app-info-color, #17a2b8); } /* Initial color */
.share-review-card .card-cta-arrow { color: var(--app-info-color, #17a2b8); } /* Initial color */


.coach-actions-card:hover .role-icon svg,
.coach-actions-card:hover .card-title,
.coach-actions-card:hover .card-cta-arrow { color: var(--app-success-color, #28a745); }
.coach-actions-card:hover { border-color: var(--app-success-color, #28a745); }
.coach-actions-card .role-icon svg { fill: var(--app-success-color, #28a745); } /* Initial color */
.coach-actions-card .card-cta-arrow { color: var(--app-success-color, #28a745); } /* Initial color */


/* ==========================================================================
   Shared Sections (Recent Reviews, Value Props)
   ========================================================================== */

/* Section Title Styling (Reusable) */
.section-title-container {
    margin-bottom: 3rem; /* More space after titles */
}
.section-title-container h2 { /* For "Fresh Off The Press", "Why My Muscle Connect?" */
    font-weight: 700;
    color: var(--app-dark-text, #212529) !important;
    position: relative;
    display: inline-block; /* For ::after positioning */
    padding-bottom: 0.75rem; /* Space for the decorative line */
    margin-bottom: 0.5rem !important; /* Override Bootstrap if needed */
}
.section-title-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Width of the decorative line */
    height: 4px;  /* Thickness */
    background-color: var(--app-primary-color, #007bff);
    border-radius: 2px;
}
.section-title-container .lead {
    color: var(--app-secondary-color, #6c757d) !important;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Recent Reviews Section */
.recent-reviews-section {
    height: 100dvh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    background-color: var(--app-background-color, #f0f0f0); /* Use theme main background */
    padding: var(--app-section-padding-y) 1rem;
}

/* Recent Reviews Mobile Styles */
@media (max-width: 767.98px) {
    .recent-reviews-section {
        height: auto; /* Don't force full viewport height on mobile */
        padding: calc(var(--app-section-padding-y) * 0.75) 1rem; /* Slightly reduced padding */
    }
    
    .recent-reviews-section .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .recent-reviews-section .section-title-container {
        margin-bottom: 2rem; /* Less space below title on mobile */
    }
    
    .recent-reviews-section .section-title-container h2 {
        font-size: 1.75rem; /* Smaller title font */
    }
    
    .recent-reviews-section .section-title-container .lead {
        font-size: 1rem; /* Smaller subtitle */
    }
    
    .review-cards-row {
        margin-bottom: 2rem; /* Less bottom margin */
    }
    
    .review-summary-card {
        margin-bottom: 1rem; /* Add margin between cards when stacked */
    }
    
    .review-summary-card .card-body {
        padding: 1.25rem; /* Smaller padding in cards */
    }
    
    /* Show only one review at a time on extra small screens */
    .recent-reviews-section .carousel-inner .carousel-item > div:not(:first-child) {
        display: none;
    }
    
    /* Single column layout */
    .recent-reviews-section .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* "See All Reviews" button modifications */
    .recent-reviews-section .btn-primary {
        width: 100%; /* Full width button */
        padding: 0.65rem 1.5rem; /* Smaller padding */
    }
}

/* Medium devices (tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .recent-reviews-section {
        height: auto; /* Auto height for tablets too */
    }
    
    .review-summary-card .card-body {
        padding: 1.5rem; /* Medium padding for tablets */
    }
    
    /* Two reviews per row on tablets */
    .recent-reviews-section .carousel-inner .carousel-item > div:nth-child(n+3) {
        display: none;
    }
}


.review-summary-card { /* Base style in main_theme.css, enhancements here */
    border-radius: var(--app-card-border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.07); /* Slightly more pronounced shadow */
    transition: transform var(--app-transition-medium), box-shadow var(--app-transition-medium);
    height: 100%; /* Ensure align-items-stretch works */
}
.review-summary-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.review-summary-card .card-body {
    padding: 1.75rem; /* Consistent padding */
}
.review-summary-card .card-title { /* h5 in HTML */
    color: var(--app-primary-color, #007bff) !important;
    font-weight: 600;
    font-size: 1.2rem; /* Slightly larger */
}
.review-summary-card .text-muted.mb-2 { /* "Questionnaire Name Review" */
    font-size: 0.8rem;
    color: var(--app-secondary-color, #6c757d) !important;
}
.review-summary-card .star-rating-summary span i { /* Target the <i> inside */
    color: #ffc107; /* Gold */
    font-size: 1rem; /* Adjust star size */
    margin-right: 1px;
}
.review-summary-card .star-rating-summary span.empty i {
    color: #e0e0e0; /* Light grey for empty stars */
}
.review-summary-card .fw-semibold { /* Rating text (4.5/5.0) */
    font-size: 0.95rem !important;
    color: var(--app-primary-color, #007bff) !important;
}
.review-summary-card .blurb-summary {
    font-size: 0.9rem;
    color: var(--app-dark-text, #343a40);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.review-summary-card .btn-review-detail {
    background-color: var(--app-primary-color, #007bff);
    border-color: var(--app-primary-color, #007bff);
    color: var(--app-light-text, #FFFFFF) !important; /* Ensure white text, add !important */
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem; /* Or var(--app-border-radius-sm) if you prefer */
    text-decoration: none; /* Explicitly remove underline if any inherited */
    display: inline-block; /* Good practice for <a> styled as buttons */
    text-align: center;   /* Ensure text is centered if it's an <a> tag behaving like a block */
    transition: background-color var(--app-transition-fast), border-color var(--app-transition-fast), transform var(--app-transition-fast), color var(--app-transition-fast);
}

.review-summary-card .btn-review-detail:hover {
    background-color: var(--app-primary-hover-color, #0056b3);
    border-color: var(--app-primary-hover-color, #0056b3);
    color: var(--app-light-text, #FFFFFF) !important; /* Ensure white text on hover as well */
    text-decoration: none; /* Explicitly remove underline on hover */
    transform: scale(1.05);
}
.recent-reviews-section .btn-primary { /* "See All Reviews" button */
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* Value Proposition Section */
.value-prop-section {
    padding: var(--app-section-padding-y) 1rem;
    background-color: var(--app-light-bg, #f8f9fa); /* Contrast with previous/next section */
}

.value-prop-item {
    text-align: center;
    margin-bottom: 2.5rem; /* More space between items */
    padding: 1rem; /* Add some padding for hover effects if needed */
}
.value-prop-item .icon {
    font-size: 3rem; /* Larger icons */
    color: var(--app-primary-color, #007bff);
    margin-bottom: 1.25rem;
    background-color: rgba(var(--app-primary-color-rgb, 13, 110, 253), 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--app-transition-medium), background-color var(--app-transition-medium), color var(--app-transition-medium);
}
.value-prop-item:hover .icon {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--app-primary-color, #007bff);
    color: white;
}
.value-prop-item h4 {
    font-size: 1.3rem; /* Larger headings */
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--app-dark-text, #212529) !important;
}
.value-prop-item p {
    font-size: 0.95rem;
    color: var(--app-secondary-color, #6c757d);
    line-height: 1.6;
}

/* ==========================================================================
   Final CTA Section (Logged Out)
   ========================================================================== */
.final-cta-section {
    padding: var(--app-section-padding-y) 1rem;
    background-color: var(--app-dark-bg, #343a40); /* Darker background for contrast */
    text-align: center;
    color: var(--app-light-text, #FFFFFF);
}
.final-cta-section h2 {
    color: var(--app-light-text, #FFFFFF) !important;
    font-weight: 700;
    margin-bottom: 1rem !important;
}
.final-cta-section .lead {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 2.5rem !important;
}
.final-cta-section .btn {
    padding: 0.85rem 2.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--app-card-border-radius);
    transition: transform var(--app-transition-fast), box-shadow var(--app-transition-fast);
}
.final-cta-section .btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.final-cta-section .btn-success {
    background-color: var(--app-success-color, #28a745);
    border-color: var(--app-success-color, #28a745);
}
.final-cta-section .btn-success:hover {
    background-color: var(--app-success-hover-color, #1e7e34);
    border-color: var(--app-success-hover-color, #1e7e34);
}
.final-cta-section .btn-outline-primary {
    color: var(--app-light-text, #FFFFFF); /* Make outline button text light */
    border-color: rgba(255,255,255,0.7); /* Lighter border for outline */
}
.final-cta-section .btn-outline-primary:hover {
    background-color: var(--app-light-text, #FFFFFF);
    color: var(--app-primary-color, #007bff);
    border-color: var(--app-light-text, #FFFFFF);
}

/* ==========================================================================
   Overrides & Utilities
   ========================================================================== */
.navbar {
    margin-bottom: 0 !important; /* Ensure no extra margin if page handles top spacing */
}

/*
   Ensure you have defined --app-primary-color-rgb, --app-secondary-color-rgb etc.
   in your main_theme.css if you are using them for rgba() values.
   Example:
   :root {
     --app-primary-color: #007bff;
     --app-primary-color-rgb: 13, 110, 253;
     --app-secondary-color: #6c757d;
     --app-secondary-color-rgb: 108, 117, 125;
     --app-success-color: #28a745;
     --app-success-color-rgb: 40, 167, 69;
     --app-info-color: #17a2b8;
     --app-info-color-rgb: 23, 162, 184;
     --app-primary-hover-color: #0056b3; // Example
     --app-success-hover-color: #1e7e34; // Example
     --app-dark-text: #212529;
     --app-light-text: #FFFFFF;
     --app-light-bg: #f8f9fa;
     --app-dark-bg: #343a40;
     --app-card-background-color: #FFFFFF;
     --app-background-color: #FFFFFF;
   }
*/