/*
Theme Name: Golf Globe
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Golf Globe is a child theme of Hello Elementor, specifically designed for golf-related websites. Built to work seamlessly with Elementor and custom widgets for golf courses, player profiles, and course management.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready,golf,sports
Version: 1.0.0
Updated: 2025-07-08 00:00:00
*/

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS FOR ELEMENTOR INTEGRATION
   ========================================================================== */
b, strong {
    font-weight: 600 !important;
}

/* Apply Open Sans only to basic semantic content areas */
.entry-content,
.post-content,
.page-content,
.widget-content,
h1, h2, h3, h4, h5, h6,
p, article, section {
    font-family: 'Open Sans', sans-serif !important;
}

/* Skip navigation link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: #415464;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

/* Enhanced focus styles that work with Elementor */
body.user-is-tabbing *:focus {
    outline: 2px solid #005fcc !important;
    outline-offset: 2px !important;
}

/* Focus styles for interactive elements */
.blog-card:focus,
.golf-card:focus,
.post-card:focus,
.blog-card.focused,
.golf-card.focused,
.post-card.focused {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

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

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #E18633;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .blog-card::before,
    .golf-card::before,
    .post-card::before {
        background: rgba(0, 0, 0, 0.9) !important;
    }
    
    .skip-link:focus {
        outline: 3px solid #ffff00;
        background: #000000;
        color: #ffff00;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .loading::after {
        animation: none !important;
    }
}

/* Custom styles for Golf Globe theme are loaded via the widget system */




.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    list-style: none;
    padding: 0px;
    justify-content: center;
    /* background-color: #f0f0f0; */
}

.alphabet-filter li {
    margin: 0;
}

.alphabet-filter a {
    display: block;
    padding: 5px 10px;
    background-color: #415464;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    padding: 10px;
    text-decoration: none !important;
}

.alphabet-filter a:hover {
    background-color: #333;
}

.golf-glossary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.letter-section {
    display: none; /* Initially hide all sections */
}

.glossary-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    background-color: #f9f9f9;
    margin-bottom: 15px;
}

.glossary-item h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #333;
    cursor: pointer; /* Add cursor pointer for better UX */
}

.glossary-item h3 .chevron {
    font-size: 1.2em;
    color: #666;
    margin-left: 10px;
}

.glossary-item p {
    margin: 5px 0;
    font-size: 1em;
    color: #666;
    display: none; /* Initially hide descriptions */
}

.golf-glossary h2 {
    font-size: 2em;
    color: #333;
    margin-top: 20px;
}

.golf-glossary hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}