/* Guide Navigation Styles - Ultra High Priority */
/* Force layout with maximum specificity */
body .guide-navigation,
body .guide-navigation *,
html body .guide-navigation,
html body .guide-navigation * {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 12px !important;
    padding: 20px 0 !important;
}

/* Main item container */
body .guide-item,
body .guide-item *,
html body .guide-item,
html body .guide-item * {
    display: flex !important;
    flex-direction: row !important;
    background: #ffffff !important;
    border: 1px solid #e1e5e9 !important;
    border-radius: 8px !important;
    padding: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 50px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body .guide-item:hover,
body .guide-item:hover *,
html body .guide-item:hover,
html body .guide-item:hover * {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: #007cba !important;
}

/* Icon positioning classes */
body .guide-item-left,
body .guide-item-left *,
html body .guide-item-left,
html body .guide-item-left * {
    flex-direction: row !important;
}

body .guide-item-right,
body .guide-item-right *,
html body .guide-item-right,
html body .guide-item-right * {
    flex-direction: row-reverse !important;
}

body .guide-item-top,
body .guide-item-top *,
html body .guide-item-top,
html body .guide-item-top * {
    flex-direction: column !important;
    text-align: center !important;
}

body .guide-item-bottom,
body .guide-item-bottom *,
html body .guide-item-bottom,
html body .guide-item-bottom * {
    flex-direction: column-reverse !important;
    text-align: center !important;
}

/* Icon container - LEFT 1/3 */
body .guide-item-icon,
body .guide-item-icon *,
html body .guide-item-icon,
html body .guide-item-icon * {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 33.333% !important;
    max-width: 40px !important;
    min-width: 30px !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Icon positioning for different layouts */
body .guide-item-left .guide-item-icon,
body .guide-item-left .guide-item-icon *,
html body .guide-item-left .guide-item-icon,
html body .guide-item-left .guide-item-icon * {
    order: 1 !important;
}

body .guide-item-right .guide-item-icon,
body .guide-item-right .guide-item-icon *,
html body .guide-item-right .guide-item-icon,
html body .guide-item-right .guide-item-icon * {
    order: 2 !important;
}

/* Reset icon styles for vertical layouts */
body .guide-item-top .guide-item-icon,
body .guide-item-top .guide-item-icon *,
body .guide-item-bottom .guide-item-icon,
body .guide-item-bottom .guide-item-icon *,
html body .guide-item-top .guide-item-icon,
html body .guide-item-top .guide-item-icon *,
html body .guide-item-bottom .guide-item-icon,
html body .guide-item-bottom .guide-item-icon * {
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
}

/* Icon image */
body .guide-item-icon img,
body .guide-item-icon img *,
html body .guide-item-icon img,
html body .guide-item-icon img * {
    width: 24px !important;
    height: 24px !important;
    border-radius: 4px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

body .guide-item:hover .guide-item-icon img,
body .guide-item:hover .guide-item-icon img *,
html body .guide-item:hover .guide-item-icon img,
html body .guide-item:hover .guide-item-icon img * {
    transform: scale(1.1) !important;
}

/* Content container - RIGHT 2/3 */
body .guide-item-content,
body .guide-item-content *,
html body .guide-item-content,
html body .guide-item-content * {
    flex: 1 !important;
    width: 66.667% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding-left: 6px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    min-height: 40px !important;
}

/* Content positioning for different layouts */
body .guide-item-right .guide-item-content,
body .guide-item-right .guide-item-content *,
html body .guide-item-right .guide-item-content,
html body .guide-item-right .guide-item-content * {
    padding-left: 0 !important;
    padding-right: 6px !important;
}

body .guide-item-top .guide-item-content,
body .guide-item-top .guide-item-content *,
body .guide-item-bottom .guide-item-content,
body .guide-item-bottom .guide-item-content *,
html body .guide-item-top .guide-item-content,
html body .guide-item-top .guide-item-content *,
html body .guide-item-bottom .guide-item-content,
html body .guide-item-bottom .guide-item-content * {
    width: 100% !important;
    padding: 0 !important;
}

/* Header - Title and Note on SAME LINE (UPPER HALF) */
body .guide-item-header,
body .guide-item-header *,
html body .guide-item-header,
html body .guide-item-header * {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    min-height: 16px !important;
    width: 100% !important;
    margin-bottom: 4px !important;
}

/* Title - takes available space */
body .guide-item-title,
body .guide-item-title *,
html body .guide-item-title,
html body .guide-item-title * {
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #2c3e50 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 !important;
    min-width: 0 !important;
    display: block !important;
}

body .guide-item-title a,
body .guide-item-title a *,
html body .guide-item-title a,
html body .guide-item-title a * {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 12px !important;
}

body .guide-item-title a:hover,
body .guide-item-title a:hover *,
html body .guide-item-title a:hover,
html body .guide-item-title a:hover * {
    color: #007cba !important;
}

/* Note - fixed width, no wrapping */
body .guide-item-note,
body .guide-item-note *,
html body .guide-item-note,
html body .guide-item-note * {
    font-size: 10px !important;
    color: #6c757d !important;
    background: #f8f9fa !important;
    padding: 1px 4px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

body .guide-item-note a,
body .guide-item-note a *,
html body .guide-item-note a,
html body .guide-item-note a * {
    color: inherit !important;
    text-decoration: none !important;
}

body .guide-item-note:hover,
body .guide-item-note:hover *,
html body .guide-item-note:hover,
html body .guide-item-note:hover * {
    background: #007cba !important;
    color: #ffffff !important;
}

/* Description - SINGLE LINE ONLY (LOWER HALF) */
body .guide-item-description,
body .guide-item-description *,
html body .guide-item-description,
html body .guide-item-description * {
    margin: 0 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    color: #6c757d !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
    min-height: 12px !important;
    display: block !important;
    width: 100% !important;
    flex-shrink: 0 !important;
}

/* Hover effect for description - show full text */
body .guide-item:hover .guide-item-description,
body .guide-item:hover .guide-item-description *,
html body .guide-item:hover .guide-item-description,
html body .guide-item:hover .guide-item-description * {
    white-space: normal !important;
    overflow: visible !important;
    position: absolute !important;
    background: #ffffff !important;
    padding: 6px 8px !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 10 !important;
    max-width: 200px !important;
    border: 1px solid #e1e5e9 !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 2px !important;
    font-size: 10px !important;
}

/* Responsive design */
@media (max-width: 1200px) {
    body .guide-navigation,
    body .guide-navigation *,
    html body .guide-navigation,
    html body .guide-navigation * {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

@media (max-width: 992px) {
    body .guide-navigation,
    body .guide-navigation *,
    html body .guide-navigation,
    html body .guide-navigation * {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 768px) {
    body .guide-navigation,
    body .guide-navigation *,
    html body .guide-navigation,
    html body .guide-navigation * {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    body .guide-item,
    body .guide-item *,
    html body .guide-item,
    html body .guide-item * {
        flex-direction: column !important;
        text-align: center !important;
        padding: 6px !important;
    }
    
    body .guide-item-icon,
    body .guide-item-icon *,
    html body .guide-item-icon,
    html body .guide-item-icon * {
        width: auto !important;
        max-width: none !important;
        min-width: auto !important;
        margin-bottom: 6px !important;
        padding: 0 !important;
    }
    
    body .guide-item-content,
    body .guide-item-content *,
    html body .guide-item-content,
    html body .guide-item-content * {
        width: 100% !important;
        padding: 0 !important;
    }
    
    body .guide-item-header,
    body .guide-item-header *,
    html body .guide-item-header,
    html body .guide-item-header * {
        flex-direction: column !important;
        gap: 2px !important;
        align-items: center !important;
    }
    
    body .guide-item-note,
    body .guide-item-note *,
    html body .guide-item-note,
    html body .guide-item-note * {
        margin-top: 2px !important;
    }
}

@media (max-width: 576px) {
    body .guide-navigation,
    body .guide-navigation *,
    html body .guide-navigation,
    html body .guide-navigation * {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    body .guide-navigation,
    body .guide-navigation *,
    html body .guide-navigation,
    html body .guide-navigation * {
        grid-template-columns: 1fr !important;
    }
}

/* Loading state */
body .guide-item.loading,
body .guide-item.loading *,
html body .guide-item.loading,
html body .guide-item.loading * {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

body .guide-item.loading::after,
body .guide-item.loading::after *,
html body .guide-item.loading::after,
html body .guide-item.loading::after * {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 16px !important;
    margin: -8px 0 0 -8px !important;
    border: 2px solid #f3f3f3 !important;
    border-top: 2px solid #007cba !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 