/* --- Enhanced Sheet Content Styling (Universal) --- */

/* Algemene styling voor HTML en body */
html, body {
    height: 100%;
    margin: 0;
    background-color: #e3f48c;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    cursor: none;
}

/* Styling voor de header */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    padding: 0;
    transform: scale(1.2);
    transition: transform 0.3s ease-out;
}

/* Styling voor de titel "HeatherAI" */
.title {
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    z-index: 1;
    text-align: center;
    border: none;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title:hover {
    transform: scale(1.05);
}

/* New style for the logo image within the title */
.title-logo {
    max-width: 100%;
    height: auto;
    max-height: 230px;
    display: block;
}

/* Styling voor de zwevende objecten (containers) */
.floating-object-container {
    position: absolute;
    height: auto;
    z-index: 0;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.floating-object-container:hover {
    transform: scale(1.1);
    z-index: 2;
}

.floating-object {
    width: 100%;
    height: auto;
}

/* Specifieke posities en rotaties voor desktop objecten */
.object1-container { width: 370px; top: 8%; left: 10%; transform: rotate(30deg); }
.object2-container { width: 250px; top: 15%; right: 15%; transform: rotate(-10deg); }
.object3-container { width: 370px; bottom: 10%; left: 12%; transform: rotate(8deg); }
.object4-container { width: 450px; bottom: 10%; right: 35%; transform: rotate(-12deg); }
.object5-container { width: 250px; bottom: 8%; right: 15%; transform: rotate(-12deg); }
.object6-container { width: 340px; top:4%; left: 40%; }

/* Custom cursor styling */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: rgba(144, 226, 121, 0.5);
    border: 2px solid #90e279;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.custom-cursor::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 2px solid rgba(144, 226, 121, 0.3);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Verbergt de normale body-content div. Deze is niet meer nodig voor de hoofdweergave. */
.body-content {
    display: none;
}

/* Alt Text Pop-up (desktop) */
.alt-text-popup {
    position: fixed;
    background-color: rgba(144, 226, 121, 0.8);
    color: #fff;
    padding: 16px 30px;
    border-radius: 30px;
    font-size: 2rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 10;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Alt Text voor Mobiel (altijd zichtbaar) */
.floating-object-text {
    display: none;
    background-color: rgba(144, 226, 121, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-top: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* --- CSS voor de SwiftUI-achtige Sheet (Modale Overlay) --- */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.bottom-sheet {
    background-color: white;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8);
}

/* Actieve status: sheet is zichtbaar en schuift omhoog */
.bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet-overlay.active .bottom-sheet {
    opacity: 1;
    transform: scale(1);
}

/* Styling voor de header van de sheet */
.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.bottom-sheet-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.bottom-sheet-header .close-button {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #555;
    padding: 5px;
    line-height: 1;
}

.bottom-sheet-header .close-button:hover {
    color: #000;
}

/* Styling voor de inhoud van de sheet */
.bottom-sheet-content {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- Media Queries voor Mobiel en Tablet (Unified) --- */
@media (max-width: 884px) {
    html, body {
        overflow-y: auto;
        cursor: default;
    }

    .custom-cursor { display: none; }

    header {
        position: static;
        width: auto;
        height: auto;
        flex-direction: column;
        padding: 20px;
        transform: scale(1) !important;
        transition: none;
    }

    .title {
        padding: 15px 25px;
        margin-top: 150px;
        margin-bottom: 30px;
        width: 80%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .title-logo {
        max-height: 250px;
    }

    .floating-object-container {
        position: static;
        width: 80%;
        margin: 0 auto 30px auto;
        max-width: 300px;
        flex-direction: column;
        align-items: center;
        order: 1;
    }

    #miraObject {
        order: 2;
    }

    .object1-container { transform: rotate(5deg); }
    .object2-container { transform: rotate(-8deg); }
    .object3-container { transform: rotate(12deg); }
    .object4-container { transform: rotate(-3deg); }
    .object5-container { transform: rotate(7deg); }
    .object6-container { transform: rotate(0deg); }

    .floating-object-container {
        margin: 0 auto 80px auto;
        max-width: 300px;
    }
    .floating-object { width: 100%; height: 30%; }
    .alt-text-popup { display: none; }

    .floating-object-text {
        display: block;
        background-color: transparent;
        color: #fff;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        padding: 0;
        margin-top: 5px;
    }

    .bottom-sheet {
        border-radius: 0;
        max-height: 100vh;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
        transform: translateY(100%);
        opacity: 1;
        position: fixed;
        left: 0;
    }
    .bottom-sheet-overlay {
        align-items: flex-end;
    }
    .bottom-sheet-overlay.active .bottom-sheet {
        transform: translateY(0);
        opacity: 1;
    }

    @media (max-width: 480px) {
        .title { margin-top: 20px; }
        .title-logo { max-height: 120px; }
        .floating-object-container { width: 90%; max-width: 250px; }
        .floating-object-text { font-size: 1rem; padding: 8px 15px; }
    }
}

/* Styles for FAQ items, adapted from feature-item */
.faq-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
}

.faq-item:hover {
    transform: translateY(-5px);
}

.faq-question-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    color: #666;
}

.faq-content {
    flex-grow: 1;
}

.faq-content h3 {
    margin-top: 0;
    font-size: 1.3em;
    color: #333;
    margin-bottom: 8px;
}

.faq-content p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
}

.faq-separator {
    border: 0;
    border-top: 1px dashed #ddd;
    margin: 30px 0;
}

/* Responsive adjustments for FAQ items */
@media (max-width: 600px) {
    .faq-item {
        flex-direction: column;
        text-align: center;
    }

    .faq-question-icon {
        margin-right: 0;
        margin-bottom: 15px;
        width: 60px;
        height: 60px;
    }
}

/* --- Featured App Styling --- */
.sheet-content-wrapper {
    padding: 20px; /* Ensure consistent padding within the sheet */
}

.featured-list-container {
    margin-top: 20px;
}

.feature-item{
    display:flex;
    align-items:center;
    margin-bottom:25px;
    padding:15px;
    background-color:#f9f9f9;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.05);
    transition:transform 0.2s ease-in-out;
}

.feature-item:hover{
    transform:translateY(-5px);
}

.feature-image{
    width:150px;
    height:250px;
    object-fit:cover;
    border-radius:8px;
    margin-right:20px;
    flex-shrink:0;
}
            
.feature-content{
    flex-grow:1;
}

.feature-content h3{
    margin-top:0;
    font-size:1.3em;
    color:#333;
    margin-bottom:8px;
}

.feature-content p{
    font-size:0.9em;
    color:#666;
    line-height:1.5;
}

.feature-separator{
    border:0;
    border-top:1px dashed #ddd;
    margin:30px 0;
}

@media (max-width:600px){
.feature-item{
    flex-direction:column;
    text-align:center;
}

.feature-image{
    margin-right:0;
    margin-bottom:15px;
    width:150px;
    height:250px;
    }
}

.social-links {
    margin-top: 1.5em; 
    display: flex;
    justify-content: space-evenly;
    color: rgba(144, 226, 121, 0.8);
}

.social-links img {
    width: 48px;
    height: 48px; 
    vertical-align: middle; 
    transition: filter 0.3s ease;
}

.feature-separator {
    border: 0;
    border-top: 1px dashed rgba(144, 226, 121, 0.8); 
    margin: 30px 0; 
}

.launch {
    width: 460px; 
    border-radius: 12px; 
    height: 290px;
    display: block; 
    margin-bottom: 1em; 
    object-fit: cover;
}

/* --- Responsive Iframe Styling --- */
.iframe-container {
    position: relative;
    width: 100%;
    /* Calculate height based on desired aspect ratio (e.g., 2127 / 460 = 4.62) */
    /* Or, if you want it to be scrollable and not fixed height on mobile, adjust */
    padding-bottom: 250%; /* This is (height / width * 100%). Adjust as needed. */
    height: 0;
    overflow: hidden;
    max-width: 100%; /* Ensure it doesn't exceed its parent's width */
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* Remove default iframe border */
}

/* Adjustments for mobile for the iframe container */
@media (max-width: 884px) {
    .iframe-container {
        padding-bottom: 0; /* Remove padding-bottom to allow natural height */
    }

    .iframe-container iframe {
        position: static; /* Revert to static positioning */
        height: 100%; /* Take full height of container */
    }
}

/* Further refinements for very small screens if needed */
@media (max-width: 480px) {
    .iframe-container {
        min-height: 400px; /* Smaller min-height for very small phones */
    }
}