/**
 * Create Page Styling Fixes
 * Fixes navigation button sizing and ensures consistency across pages
 * File: includes/css/create-page-fixes.css
 * 
 * IMPORTANT: This file ensures navigation buttons match the standard styles
 * from header.php and are not affected by form button styles in create.php
 */

/* Ensure navigation buttons use standard styles - override any create.php styles */
.site-header .festive-nav .festive-button,
.festive-nav .festive-button {
    /* Standard navigation button styles from header.php */
    display: inline-block !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px !important;
    background: white !important;
    color: #212529 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1) !important;
    margin: 0 5px !important;
    min-width: 110px !important;
    text-align: center !important;
    height: 38px !important;
    line-height: 1.5 !important;
    font-size: inherit !important; /* Use default font size, not 18px */
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Navigation button color variants */
.site-header .festive-nav .festive-button.primary,
.festive-nav .festive-button.primary {
    background: #007bff !important;
    color: white !important;
}

.site-header .festive-nav .festive-button.secondary,
.festive-nav .festive-button.secondary {
    background: #6c757d !important;
    color: white !important;
}

.site-header .festive-nav .festive-button.success,
.festive-nav .festive-button.success {
    background: #28a745 !important;
    color: white !important;
}

.site-header .festive-nav .festive-button.info,
.festive-nav .festive-button.info {
    background: #17a2b8 !important;
    color: white !important;
}

.site-header .festive-nav .festive-button.warning,
.festive-nav .festive-button.warning {
    background: #ffc107 !important;
    color: black !important;
}

/* Navigation button hover states */
.site-header .festive-nav .festive-button:hover,
.festive-nav .festive-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15) !important;
}

.site-header .festive-nav .festive-button.active,
.festive-nav .festive-button.active {
    transform: translateY(0) !important;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.1) !important;
}

/* Ensure navigation container doesn't break */
.festive-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    align-items: center !important;
    justify-content: flex-end !important; /* Match other pages - align to right */
    height: 45px !important;
    text-align: right !important; /* Ensure text alignment matches */
}

.festive-nav .festive-button {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Mobile navigation fixes */
@media (max-width: 767.98px) {
    .mobile-nav-wrapper .festive-button {
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.95rem !important;
        margin-bottom: 8px !important;
        touch-action: manipulation !important;
        width: 100% !important;
        padding: 0.4rem 1rem !important;
    }
}

/* Responsive fixes for smaller desktop screens */
@media (max-width: 991px) {
    .festive-nav .festive-button {
        padding: 0.4rem 1rem !important;
        font-size: 0.9rem !important;
        min-width: 100px !important;
    }
}

