/**
 * Entschuldigung Generator - Custom Stylesheet
 * Works alongside Bulma CSS framework
 * Adds custom gradient theme and minor style overrides
 */

/* Custom gradient for hero section */
.hero.has-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Custom primary color override for Bulma */
.button.is-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.button.is-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

/* Ensure body has light background */
body {
    background-color: #f5f5f5;
}

/* Skip to main content link (accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Preview section initially hidden */
.preview-section {
    display: none;
}

.preview-section.active {
    display: block !important;
}

/* Collapsible info section with smooth transition */
.info-collapsible {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.info-collapsible.is-hidden {
    display: none;
}

/* Mobile-specific button styling */
.mobile-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* Responsive adjustments for mobile devices */
@media screen and (max-width: 768px) {
    /* Stack buttons vertically on mobile */
    .mobile-buttons {
        flex-direction: column;
        width: 100%;
    }

    .mobile-buttons .button {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }

    /* Adjust container padding on mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Reduce section padding on mobile */
    .section {
        padding: 1.5rem 0.75rem;
    }

    /* Hero section mobile adjustments */
    .hero .title.is-1 {
        font-size: 2rem;
    }

    .hero .subtitle.is-4 {
        font-size: 1.1rem;
    }

    /* Make form inputs larger for mobile touch */
    .input,
    .textarea,
    .select select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    /* Improve box spacing on mobile */
    .box {
        margin-bottom: 1rem;
    }
}

/* Tablet-specific adjustments */
@media screen and (min-width: 769px) and (max-width: 1023px) {
    .mobile-buttons .button {
        margin: 0.25rem;
    }
}

/* Enhanced focus visible for better keyboard navigation */
*:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Improve touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .button {
        min-height: 44px; /* Apple's recommended touch target size */
    }

    .input,
    .textarea,
    .select select {
        min-height: 44px;
    }
}
