/*
Theme Name: Twenty Twenty-Five Child - Waarbeek
Description: Child theme van Twenty Twenty-Five voor Waarbeek met iframe functionaliteit
Template: twentytwentyfive
Version: 1.0.0
Author: Waarbeek
*/

/* Import parent theme styles */
@import url("../twentytwentyfive/style.css");

/* ==========================================================================
   Iframe Specific Styles
   ========================================================================== */

/* Hide elements when in iframe mode */
body.iframe-mode .site-header,
body.iframe-mode .site-footer,
body.iframe-mode .wp-site-blocks > header,
body.iframe-mode .wp-site-blocks > footer,
body.iframe-mode .navigation,
body.iframe-mode .breadcrumbs,
body.iframe-mode .sidebar,
body.iframe-mode #wpadminbar {
    display: none !important;
}

/* Clean iframe body styling */
body.iframe-mode {
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Content area optimalization for iframe */
body.iframe-mode .wp-site-blocks,
body.iframe-mode .entry-content,
body.iframe-mode .page-content {
    margin: 0 !important;
    padding: 20px !important;
    max-width: none !important;
    width: 100% !important;
}

/* Gravity Forms styling in iframe */
body.iframe-mode .gform_wrapper {
    max-width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
}

body.iframe-mode .gform_wrapper .gform_body {
    background: transparent !important;
    box-shadow: none !important;
}

body.iframe-mode .gform_wrapper .gform_footer {
    padding: 20px 0 !important;
}

/* Form field styling improvements */
body.iframe-mode .gfield {
    margin-bottom: 20px !important;
    position: relative !important;
    overflow: visible !important;
}

body.iframe-mode .gfield input[type="text"],
body.iframe-mode .gfield input[type="email"],
body.iframe-mode .gfield input[type="tel"],
body.iframe-mode .gfield input[type="time"],
body.iframe-mode .gfield select,
body.iframe-mode .gfield textarea {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 10px !important;
    font-size: 16px !important;
    width: 100% !important;
}

/* Fix voor tijd/datepicker velden */
body.iframe-mode .gfield_time_hour,
body.iframe-mode .gfield_time_minute {
    width: auto !important;
    display: inline-block !important;
    margin-right: 10px !important;
}

body.iframe-mode .gfield_time_hour select,
body.iframe-mode .gfield_time_minute select {
    min-width: 70px !important;
    width: auto !important;
}

/* Zorg dat dropdown menus zichtbaar blijven */
body.iframe-mode .ui-timepicker-wrapper,
body.iframe-mode .ui-datepicker,
body.iframe-mode .gfield select {
    z-index: 999999 !important;
    position: relative !important;
}

/* Extra ruimte voor tijd velden */
body.iframe-mode .gfield.gfield_time {
    margin-bottom: 40px !important;
    min-height: 80px !important;
    overflow: visible !important;
}

/* Submit button styling */
body.iframe-mode .gform_wrapper .gform_footer input[type="submit"] {
    background: #007cba !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

body.iframe-mode .gform_wrapper .gform_footer input[type="submit"]:hover {
    background: #005a87 !important;
}

/* Capacity indicator styling (from your plugin) */
body.iframe-mode .capacity-indicator {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

body.iframe-mode .capacity-indicator.warning {
    background: #fff3cd !important;
    border-color: #ffc107 !important;
}

body.iframe-mode .capacity-indicator.danger {
    background: #f8d7da !important;
    border-color: #dc3545 !important;
}

/* Responsive adjustments for iframe */
@media (max-width: 768px) {
    body.iframe-mode .wp-site-blocks,
    body.iframe-mode .entry-content,
    body.iframe-mode .page-content {
        padding: 15px !important;
    }
    
    body.iframe-mode .gform_wrapper {
        font-size: 14px !important;
    }
    
    body.iframe-mode .capacity-indicator {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
}

/* ==========================================================================
   Regular Waarbeek Styling (non-iframe)
   ========================================================================== */

/* Hier kun je je normale Waarbeek styling toevoegen */

/* Custom Waarbeek colors */
:root {
    --waarbeek-primary: #007cba;
    --waarbeek-secondary: #2c5530;
    --waarbeek-accent: #8bc34a;
}

/* Schoolreisje specific styling for regular pages */
.schoolreisje-info {
    background: #f0f8f0;
    border-left: 4px solid var(--waarbeek-accent);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.waarbeek-btn {
    background: var(--waarbeek-primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: background 0.3s ease;
}

.waarbeek-btn:hover {
    background: #005a87;
    color: white;
}

/* Custom post/page styling */
.waarbeek-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}