/* Wisconsin Score My Shore Splash Page Styles */

.wi-survey-splash {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    position: relative;
}

/* Dreamlike background image overlay */
.wi-survey-splash::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/wisconsin/TransitionZones-People.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

/* Ensure content stays above background */
.wi-survey-splash > * {
    position: relative;
    z-index: 1;
}

/* Header Section */
.wi-header {
    background-color: #ffffff;
    border-bottom: 2px solid #ddd;
    padding: 1.5rem 0;
}

.wi-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wi-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.wi-logo img {
    height: 70px;
    width: auto;
}

.wi-logo a {
    text-decoration: none;
}

.wi-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.25rem;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}

.wi-home-link:hover {
    transform: scale(1.1);
}

.wi-home-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.wi-home-text {
    letter-spacing: 0.05em;
}

.wi-view-surveys-btn {
    border: 2px solid #3b5998;
    color: #3b5998;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: white;
    white-space: nowrap;
    display: inline-block;
}

.wi-view-surveys-btn:hover {
    background-color: #3b5998;
    color: white;
    border-color: #3b5998;
}

/* Blue Title Banner */
.wi-title-banner {
    background: linear-gradient(to right, #3b5998, #4a6fb1);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wi-title-banner h1 {
    font-size: 2.25rem;
    font-weight: 400;
    margin: 0;
    padding: 0 1rem;
}

/* Main Content Area */
.wi-content-wrapper {
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
    position: relative;
}

.wi-content-card {
    background: rgba(255, 255, 255, 0.98);
    max-width: 1200px;
    width: 100%;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative; /* Added for admin button positioning */
    overflow: auto; /* Clear floated image */
}

/* Final Practices image - floated to the right with text wrapping */
.wi-practices-image {
    float: right;
    width: 400px;
    height: auto;
    margin: 0 0 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.wi-welcome-title {
    color: #333;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.wi-content-card h3 {
    color: #000000;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Override: Keep waterbody names white on teal gradient card headers */
.wi-content-card .lake-card-header h3.lake-name,
.wi-content-card .lake-card-header .lake-name {
    color: #ffffff;
}

.wi-content-card p {
    color: #333;
    font-size: 13pt;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.wi-content-card a {
    color: #3b5998;
    text-decoration: none;
}

.wi-content-card a:hover {
    text-decoration: underline;
}

/* Call-to-Action Section */
.wi-cta-section {
    margin-top: 2.5rem;
    text-align: center;
}

.wi-start-button {
    background-color: #4a6fb1 !important;
    border: 2px solid #3b5998 !important;
    color: #ffffff !important;
    padding: 0.875rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(74, 111, 177, 0.3);
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 1 !important;
}

.wi-start-button:hover {
    background-color: #3b5998;
    border-color: #2d4373;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 89, 152, 0.4);
    color: #ffffff !important;
    text-decoration: none !important;
}

.wi-start-button:active {
    transform: translateY(0);
}

.wi-start-button:focus,
.wi-start-button:visited {
    color: #ffffff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wi-header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .wi-logo-section {
        gap: 0.4rem;
    }

    .wi-logo img {
        height: 60px;
    }

    .wi-home-link {
        width: 35px;
        height: 35px;
    }

    .wi-home-icon {
        font-size: 1.25rem;
    }

    .wi-title-banner {
        padding: 2rem 0;
    }

    .wi-title-banner h1 {
        font-size: 1.75rem;
    }

    .wi-content-wrapper {
        padding: 2rem 1rem;
    }

    .wi-content-card {
        padding: 2rem 1.5rem;
    }

    .wi-welcome-title {
        font-size: 1.35rem;
    }

    .wi-content-card p {
        font-size: 11pt;
    }

    .wi-start-button {
        font-size: 1rem;
        padding: 0.75rem 2rem;
    }

    /* Make practices image smaller and reduce margins on tablets */
    .wi-practices-image {
        width: 220px;
        margin: 0 0 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .wi-header {
        padding: 1rem 0;
    }

    .wi-view-surveys-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .wi-title-banner h1 {
        font-size: 1.5rem;
    }

    .wi-welcome-title {
        font-size: 1.25rem;
    }

    .wi-content-card {
        padding: 1.5rem 1rem;
    }

    .wi-start-button {
        width: 100%;
        max-width: 300px;
    }

    /* Stack the practices image on mobile */
    .wi-practices-image {
        float: none;
        display: block;
        margin: 0 auto 1.5rem;
        width: 100%;
        max-width: 280px;
    }
}

/* Admin Dashboard Access Link */
.wi-admin-access {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.wi-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #666;
    text-decoration: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    opacity: 0.7;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wi-admin-link:hover {
    opacity: 1;
    color: #3b5998;
    background-color: rgba(59, 89, 152, 0.1);
    transform: scale(1.15);
    box-shadow: 0 2px 6px rgba(59, 89, 152, 0.2);
    border-color: rgba(59, 89, 152, 0.3);
}

.wi-admin-link svg {
    width: 18px;
    height: 18px;
}


/* River System Context Badge */
.river-system-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #0369a1;
    background-color: #e0f2fe;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    border: 1px solid #7dd3fc;
    cursor: help;
    white-space: nowrap;
}

.river-system-badge:hover {
    background-color: #bae6fd;
    border-color: #38bdf8;
}

/* Anonymous Information Styling */
.anonymous-info-container {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 1.25rem;
    margin-top: 0.75rem;
}

.anonymous-info-section {
    margin-bottom: 1rem;
}

.anonymous-info-section:last-child {
    margin-bottom: 0;
}

.anonymous-info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0c4a6e;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.anonymous-info-header i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.anonymous-info-text {
    color: #334155;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 1.75rem; /* Indent text to align with header text after icon */
}

/* Responsive - Adjust padding on smaller screens */
@media (max-width: 768px) {
    .anonymous-info-container {
        padding: 1rem;
    }

    .anonymous-info-text {
        padding-left: 1.5rem;
    }
}

/* Collapsible Section Styles */
.wi-collapsible-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    background-color: #fafafa;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.wi-collapsible-section:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.wi-collapsible-section summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    background-color: #f5f5f5;
    border-bottom: 1px solid transparent;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s ease;
}

.wi-collapsible-section summary::-webkit-details-marker {
    display: none;
}

.wi-collapsible-section summary::before {
    content: "▶";
    font-size: 0.75rem;
    color: #3b5998;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.wi-collapsible-section[open] summary::before {
    transform: rotate(90deg);
}

.wi-collapsible-section summary:hover {
    background-color: #eef2f7;
}

.wi-collapsible-section summary h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
}

.wi-collapsible-section[open] summary {
    border-bottom-color: #e0e0e0;
}

.wi-collapsible-section > p {
    padding: 1rem 1.25rem;
    margin: 0;
    background-color: #ffffff;
}

.wi-collapsible-section > p:last-child {
    padding-bottom: 1.25rem;
}

/* Responsive adjustments for collapsible sections */
@media (max-width: 768px) {
    .wi-collapsible-section summary {
        padding: 0.875rem 1rem;
    }

    .wi-collapsible-section summary h3 {
        font-size: 1rem;
    }

    .wi-collapsible-section > p {
        padding: 0.875rem 1rem;
    }
}
