/**
 * Council Oak Lodge #745 - Main Stylesheet
 * Consolidated from app.css, modern-design.css, and production-ready.css
 * Brand compliant with Indiana Freemasons Brand Guidelines
 *
 * Colors:
 * - Lodge Blue: #343579
 * - Masonic Gold: #FFBB1C
 * - Masonic Maroon: #7D2248
 */

/* ===================================================================
   BLAZOR FRAMEWORK - BASE STYLES
   =================================================================== */

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM4NzEgMjM2LjAzMSA5NC4wOTk2IDIzNi4wODkgOTMuODE4NUwyMzYuMzM4IDkzLjAxNjIgMjM2LjQ0MSA5Mi43MzkxIDI1OS4xNDQgNTMuNzM4NUMyNTkuNjUxIDUyLjgxNDEgMjYwLjU0MiA1Mi4wNDQxIDI2MS42ODIgNTEuNTI4MUwyNjEuNjgyIDUxLjUyODEgMjYxLjY4MiA1MS41MjgxIDI2MS42ODIgNTEuNTI4MSAyNjEuNjgyIDUxLjUyODFMMjYyLjA4MyA1MS4zNzE3IDI2Mi4wODMgNTEuMzcxNyAyNjIuMDgzIDUxLjM3MTcgMjYyLjA4MyA1MS4zNzE3IDI2Mi43MDMgNTEuMTI5NCAyNjIuNzAzIDUxLjEyOTQgMjYyLjcwMyA1MS4xMjk0IDI2Mi43MDMgNTEuMTI5NCAyNjMuNTA2IDUxWiIgc3Ryb2tlPSIjRTVFNUU1IiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiNGRkZGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Loading Screen (index.html) */
.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.loading-screen-content {
    text-align: center;
    color: #343579;
    font-family: 'Source Sans Pro', sans-serif;
}

.loading-screen-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-screen-text {
    font-size: 0.875rem;
}

/* ===================================================================
   HERO SECTION - CLEAN AND SIMPLE
   =================================================================== */

.hero-clean {
    background: linear-gradient(135deg, #343579 0%, #2a2b5f 100%);
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 3rem 0;
}

.hero-label {
    color: #FFBB1C;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-heading {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: white;
}

.hero-highlight {
    color: #FFBB1C;
    display: block;
}

.hero-lodge-number {
    color: #FFBB1C;
    font-size: 4rem;
    display: block;
}

.hero-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-buttons .btn {
    min-width: 200px;
}

/* ===================================================================
   INFO CARDS - SIMPLE AND CLEAN
   =================================================================== */

.info-section {
    padding: 4rem 0;
}

.info-card-simple {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.info-card-simple:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(52, 53, 121, 0.15);
}

.info-card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.info-card-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343579;
    margin-bottom: 1rem;
}

.info-card-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

.info-card-text a {
    color: #343579;
    text-decoration: none;
    font-weight: 600;
}

.info-card-text a:hover {
    color: #FFBB1C;
}

/* ===================================================================
   FEATURE CARDS - IMPROVED
   =================================================================== */

.feature-section {
    padding: 5rem 0;
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 900;
    color: #343579;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle-modern {
    text-align: center;
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 3rem;
}

.feature-card-modern {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(52, 53, 121, 0.15);
}

.feature-icon-modern {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343579;
    margin-bottom: 1rem;
}

.feature-description-modern {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

/* ===================================================================
   SECTION STYLING
   =================================================================== */

.section-modern {
    padding: 5rem 0;
}

.content-block .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333;
}

/* ===================================================================
   EVENTS CARD - SIMPLE
   =================================================================== */

.events-card-modern {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.events-header {
    background: #343579;
    color: white;
    padding: 1.5rem 2rem;
}

.events-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.event-item-modern {
    padding: 2rem;
}

.event-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #343579;
    margin-bottom: 0.5rem;
}

.event-info {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.event-time {
    font-size: 0.875rem;
    color: #FFBB1C;
    font-weight: 600;
}

.event-cta {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    text-align: center;
}

.event-cta-text {
    color: #666;
    margin-bottom: 1rem;
}

/* ===================================================================
   CTA SECTION
   =================================================================== */

.cta-section-modern {
    background: linear-gradient(135deg, #343579 0%, #2a2b5f 100%);
    padding: 5rem 0;
    color: white;
}

.cta-title-modern {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
}

.cta-description-modern {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* ===================================================================
   BUTTONS - STANDARDIZED TO BRAND GUIDELINES
   =================================================================== */

/**
 * BUTTON SYSTEM STANDARDIZATION:
 *
 * PRIMARY: Lodge Blue (#343579) - Main actions, submit buttons
 * SECONDARY: Masonic Gold (#FFBB1C) - Secondary actions, highlights
 * OUTLINE: Blue border - Tertiary actions, cancel buttons
 *
 * This aligns with indiana-freemasons-brand.css
 */

.btn {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Primary Button - Lodge Blue */
.btn-primary {
    background: #343579;
    border-color: #343579;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible {
    background: #2a2b5f;
    border-color: #2a2b5f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 53, 121, 0.3);
}

/* Secondary Button - Masonic Gold */
.btn-secondary {
    background: #FFBB1C;
    border-color: #FFBB1C;
    color: #000;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:focus-visible {
    background: #FFA500;
    border-color: #FFA500;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 187, 28, 0.3);
}

/* Outline Light - For dark backgrounds */
.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

/* Outline Primary - Lodge Blue */
.btn-outline-primary {
    border: 2px solid #343579;
    color: #343579;
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
    background: #343579;
    color: white;
    border-color: #343579;
}

/* ===================================================================
   NAVIGATION - CLEAN
   =================================================================== */

.navbar {
    padding: 1rem 0;
    background: linear-gradient(135deg, #343579 0%, #2a2b5f 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-logo {
    height: 50px;
    width: auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: white !important;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand-top {
    font-size: 0.7rem;
    font-weight: 600;
    color: #FFBB1C;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.navbar-brand-main {
    font-size: 1.25rem;
    font-weight: 900;
    color: white;
}

.nav-link {
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #FFBB1C !important;
}

.nav-link.active {
    color: #FFBB1C !important;
    font-weight: 700;
}

.btn-nav-contact {
    background: #FFBB1C !important;
    color: #000 !important;
    border-radius: 8px;
    padding: 0.75rem 1.5rem !important;
    font-weight: 700;
}

.btn-nav-contact:hover,
.btn-nav-contact:focus,
.btn-nav-contact:focus-visible {
    background: #FFA500 !important;
    transform: translateY(-2px);
}

/* ===================================================================
   FOOTER - CLEAN AND COMPACT
   =================================================================== */

.footer-modern {
    background: linear-gradient(135deg, #1f2047 0%, #2a2b5f 100%);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-compact {
    background-color: #343579 !important;
    color: white !important;
    border-top: 2px solid #FFBB1C;
    font-size: 0.75rem;
    line-height: 1.4;
}

.footer-text {
    color: white !important;
    font-size: 0.75rem;
}

.footer-text.fw-semibold {
    color: #FFBB1C !important;
}

.footer-link {
    color: white !important;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.15s ease;
}

.footer-link:hover,
.footer-link:focus,
.footer-link:focus-visible {
    color: #FFBB1C !important;
    text-decoration: none;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.6875rem;
}

.footer-social-icon {
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.15s ease;
    display: inline-block;
    vertical-align: middle;
    padding: 0 0.25rem;
}

.footer-social-icon:hover,
.footer-social-icon:focus,
.footer-social-icon:focus-visible {
    color: #1877F2 !important;
    transform: scale(1.1);
}

.footer-column-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFBB1C;
    margin-bottom: 1.5rem;
}

.footer-contact-item {
    margin-bottom: 1rem;
}

.footer-contact-icon {
    margin-right: 0.75rem;
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-contact-link:hover {
    color: #FFBB1C;
}

.footer-link-modern {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer-link-modern:hover {
    color: #FFBB1C;
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social-link {
    color: #FFBB1C;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 187, 28, 0.1);
}

.footer-social-link:hover {
    color: #FFF;
    background: #FFBB1C;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 187, 28, 0.3);
}

.footer-social-link svg {
    display: block;
}

/* ===================================================================
   UTILITY CLASSES
   =================================================================== */

.bg-light {
    background-color: #f8f9fa !important;
}

.text-center {
    text-align: center !important;
}

/* Horizontal Rule with Gold Border */
.hr-gold {
    border-color: #FFBB1C;
    opacity: 0.5;
}

.hr-gold-solid {
    border-color: #FFBB1C;
    opacity: 1;
}

/* Progress Bar Heights */
.progress-sm {
    height: 8px;
}

/* Officer Card Utilities */
.officer-card-body {
    min-height: 320px;
}

.officer-image-container {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.officer-image {
    max-height: 220px;
    max-width: 100%;
    object-fit: contain;
}

.officer-name {
    font-size: 1.375rem;
    font-weight: 700;
}

.officer-contact-btn {
    min-height: 44px;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.officer-vacant-text {
    font-size: 0.9rem;
    font-style: italic;
}

.officer-office-text {
    font-size: 0.95rem;
}

/* Centered Max-Width Content */
.content-centered-narrow {
    max-width: 500px;
    margin: 0 auto;
}

/* Grand Master Pin Image */
.gm-pin-image {
    max-width: 200px;
}

/* Auto-Save Indicators */
.auto-save-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.auto-save-text {
    font-weight: 600;
    color: #28a745;
}

.auto-save-status-bar {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.auto-save-message {
    color: #0f5132;
    font-weight: 600;
}

/* ===================================================================
   ACCESSIBILITY
   =================================================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #FFBB1C;
    color: #000;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
}

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

*:focus-visible {
    outline: 3px solid #FFBB1C;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-section-modern::before,
    .btn-modern::before,
    .feature-icon-modern,
    .info-card-modern {
        transition: none;
    }
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

/* Navbar Responsive */
@media (max-width: 991px) {
    .navbar-logo {
        height: 40px;
    }

    .navbar-brand {
        gap: 0.75rem;
    }

    .navbar-brand-top {
        font-size: 0.6rem;
    }

    .navbar-brand-main {
        font-size: 1rem;
    }

    .nav-link {
        padding: 0.5rem 1rem !important;
    }

    .hero-heading {
        font-size: 2.5rem;
    }

    .hero-lodge-number {
        font-size: 3rem;
    }

    .section-title-modern,
    .cta-title-modern {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .navbar-logo {
        height: 35px;
    }

    .navbar-brand {
        gap: 0.5rem;
    }

    .navbar-brand-top {
        font-size: 0.55rem;
    }

    .navbar-brand-main {
        font-size: 0.9rem;
    }

    .nav-link {
        padding: 0.5rem !important;
    }

    .btn-nav-contact {
        padding: 0.5rem 1rem !important;
    }

    .hero-clean {
        min-height: 500px;
    }

    .hero-heading {
        font-size: 2rem;
    }

    .hero-lodge-number {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-title-modern,
    .cta-title-modern {
        font-size: 1.75rem;
    }

    .footer-bottom .d-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Footer mobile responsiveness - prevent horizontal overflow */
@media (max-width: 575.98px) {
    .footer-compact {
        padding: 1rem 0.5rem;
    }

    .footer-text,
    .footer-link {
        font-size: 0.7rem;
        word-wrap: break-word;
    }

    /* Stack footer links vertically on very small screens */
    .footer-compact .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-separator {
        display: none;
    }

    .footer-link {
        display: block;
        text-align: center;
        padding: 0.75rem 1rem; /* Increased for 44×44px minimum touch target */
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-social-icon {
        padding: 0.5rem; /* Increased for 44×44px minimum touch target */
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .footer-copyright {
        font-size: 0.65rem;
        text-align: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .navbar-logo {
        height: 30px;
    }

    .navbar-brand {
        gap: 0.5rem;
    }

    .navbar-brand-top {
        font-size: 0.5rem;
    }

    .navbar-brand-main {
        font-size: 0.8rem;
    }
}
