/* General body and html styles to match the app's feel */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif; /* Fallback font */
    background-color: var(--background, #ffffff); /* Use CSS variables if defined in style.css, else fallback */
    color: var(--foreground, #000000);
    overflow: hidden; /* Prevent body scroll when splash is active */
}

/* Logo Style */
.splash-logo {
    position: absolute; /* Position relative to .splash-screen-container */
    top: 1.5rem;        /* Corresponds to the container's top padding */
    left: 1.5rem;       /* Corresponds to the container's left padding */
    max-width: 40px;    /* Reduced size to 1/3 of 120px */
    height: auto;
    /* Removed previous margin styles for centering and bottom spacing */
}

.splash-screen-container {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: var(--background, #ffffff);
    padding: 1.5rem; /* p-6 */
    text-align: center;
    color: var(--foreground, #000000);
    overflow-x: hidden;
    touch-action: pan-y; /* Allows vertical scroll if needed, but captures horizontal for our logic */
}

.splash-top-spacer {
    /* Equivalent to the empty div for spacing at the top */
    min-height: 1px; /* Ensures it takes up some space if flex items don't push it */
}

.splash-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 48rem; /* max-w-2xl */
    flex-grow: 1;
    justify-content: center;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
    padding-top: 0.5rem; /* py-8 -> Reduced top padding to accommodate logo */
    padding-bottom: 1rem; /* py-8 -> Reduced to give more space to slide viewport */
}

.splash-slide-viewport {
    width: 100%;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden; /* Prevent viewport scrolling; scrolling handled by slide-item if needed */
    min-height: 240px; /* style={{ minHeight: '200px' }} - Increased to give more space */
}

.splash-slide-holder {
    position: relative;
    width: 100%;
    height: 100%;
}

.splash-slide-item {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /* Animation properties will be handled by JS and inline styles for framer-motion-like effects */
    opacity: 0; /* Start hidden, JS will manage visibility */
    transform: translateX(100%); /* Start off-screen, JS will manage transitions */
    transition: transform 0.4s ease-in-out, opacity 0.2s ease-in-out;
    background-color: var(--background, #ffffff); /* Ensure each slide has a solid background to cover previous ones */
    /* height: 100%; Removed */
    /* overflow-y: auto; Removed */
    box-sizing: border-box;
    /* padding: 0 1rem 1rem 1rem; Removed and replaced below */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: flex-start; /* Align content to the top vertically */
    padding: 0.75rem; /* Uniform padding, reduced */
    gap: 0.5rem; /* Space between title and badge link, reduced */
    /* z-index: 10; */ /* REMOVED TEMPORARY DEBUG STYLE */
}

.splash-slide-item.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.splash-slide-item.exit-to-left {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 0;
}

.splash-slide-item.exit-to-right {
    transform: translateX(100%);
    opacity: 0;
    z-index: 0;
}

.splash-title {
    font-size: 2.25rem; /* text-4xl */
    line-height: 2.5rem;
    font-weight: 700; /* font-bold */
    margin-bottom: 0; /* mb-6, now controlled by gap in .splash-slide-item */
    color: var(--primary, #007bff); /* text-primary */
}

@media (min-width: 768px) { /* md: */
    .splash-title {
        font-size: 3rem; /* md:text-5xl */
        line-height: 1;
    }
}

.splash-text {
    font-size: 1rem; /* text-base */
    line-height: 1.5rem;
    margin-bottom: 3rem; /* mb-12 */
    color: rgba(var(--foreground-rgb, 0,0,0), 0.9); /* text-foreground/90 */
    white-space: pre-line;
    line-height: 1.75; /* leading-loose */
    word-break: break-words;
}

@media (min-width: 768px) { /* md: */
    .splash-text {
        font-size: 1.125rem; /* md:text-lg */
        line-height: 1.75rem;
    }
}

.splash-bottom-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem; /* mb-4 -> Reduced */
}

.splash-journey-text-container {
    color: var(--primary, #007bff);
    font-size: 1rem; /* text-base */
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.75rem; /* mb-3 */
    user-select: none;
    opacity: 0;
    transition: opacity 2s ease-out;
}

.splash-journey-text-container.visible {
    opacity: 1;
}

.splash-button-container button {
    background-color: #ffffff; /* White background */
    color: var(--primary, #007bff); /* Blue text (theme's primary color) */
    border: 1px solid var(--primary, #007bff); /* Blue border (theme's primary color) */
    padding: 0.75rem 2rem; /* From original className px-8 py-3 */
    border-radius: 0.375rem; /* Default button radius (rounded-md) */
    font-size: 1rem; /* text-base is common for lg buttons */
    font-weight: 500; /* medium font weight */
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.splash-button-container button:hover {
    background-color: var(--primary, #007bff); /* Blue background on hover */
    color: var(--primary-foreground, #ffffff); /* White text on hover (or themed primary-foreground) */
    /* border-color will implicitly be the same as background or can be set explicitly if needed */
}

/* Margin for buttons */
#splash-button-container button.next-button {
    margin-top: 1.5rem; /* mt-6 */
}
#splash-button-container button.start-button {
    margin-top: 0.75rem; /* mt-3 */
}


.splash-dots-indicator {
    display: flex;
    gap: 0.625rem; /* space-x-2.5 */
    margin-top: 0.75rem; /* my-6 -> Reduced */
    margin-bottom: 0.75rem; /* my-6 -> Reduced */
}

.splash-dots-indicator button {
    height: 0.625rem; /* h-2.5 */
    width: 0.625rem; /* w-2.5 */
    border-radius: 9999px; /* rounded-full */
    transition: background-color 0.3s;
    border: none;
    padding: 0;
    cursor: pointer;
    background-color: #d1d5db; /* bg-gray-300 */
}

.splash-dots-indicator button:hover {
    background-color: #9ca3af; /* hover:bg-gray-400 */
}

.splash-dots-indicator button.active {
    background-color: var(--primary, #007bff); /* bg-primary */
}

/* Dark mode considerations for dots, if your style.css handles dark mode */
@media (prefers-color-scheme: dark) {
    .splash-dots-indicator button {
        background-color: #4b5563; /* dark:bg-gray-600 */
    }
    .splash-dots-indicator button:hover {
        background-color: #6b7280; /* dark:hover:bg-gray-500 */
    }
    .splash-dots-indicator button.active {
        background-color: var(--primary, #007bff); /* Ensure primary color is suitably defined for dark mode */
    }
}

.splash-dots-indicator button:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--background, #ffffff), 0 0 0 4px var(--primary, #007bff); /* focus:ring-2 focus:ring-primary focus:ring-offset-2 dark:focus:ring-offset-background */
}


.splash-terms-container {
    margin-bottom: 0.75rem; /* mb-6 -> Reduced */
    display: flex;
    align-items: center;
    align-self: center;
}

.splash-terms-label {
    color: rgba(var(--foreground-rgb, 0,0,0), 0.8); /* text-foreground/80 */
    font-size: 0.875rem; /* Assuming text-sm for label, adjust if needed */
}

.hidden {
    display: none !important;
}

/* For elements that should not trigger swipe */
.no-swipe-zone {
    /* This class is mainly for JS to identify, but can add touch-action if needed */
    /* touch-action: auto; */ /* Example: allow default touch actions */
}

/* Specific styles for the last slide to reduce its height */
.last-splash-slide {
    padding: 0.25rem !important; /* Further reduce padding */
    gap: 1.5rem !important;   /* Increased gap to approx 1.5 lines */
}

/*
    The .last-splash-slide .splash-title rule is removed to ensure its title font size
    matches other slides by inheriting from the general .splash-title style.
    This might re-introduce overflow if the content becomes too tall.
*/

/*
    The .last-splash-slide .splash-text rule is no longer needed
    as the last slide's badge is not wrapped in a p.splash-text element anymore.
    Removing these rules.
*/