/* =================================================================
   SITEMAP PAGE STYLES - BEAN MERCHANT THEME
   ================================================================= */

:root {
    --sitemap-primary: #d4a574;
    --sitemap-secondary: #c09660;
    --sitemap-dark: #2c1810;
    --sitemap-light: #faf8f5;
    --sitemap-white: #ffffff;
    --sitemap-gray: #666666;
    --sitemap-border: #e5e5e5;
    --sitemap-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --sitemap-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* =================================================================
   PAGE LAYOUT
   ================================================================= */

.sitemap-page {
    background: var(--sitemap-white);
    min-height: 100vh;
}

/* =================================================================
   HERO SECTION
   ================================================================= */

.sitemap-hero {
    background: linear-gradient(135deg, var(--sitemap-dark) 0%, #3a2318 100%);
    color: var(--sitemap-white);
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.sitemap-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    color: var(--sitemap-white);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

/* Search Bar */
.search-site {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-site input {
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-site input:focus {
    outline: none;
    border-color: var(--sitemap-primary);
    background: rgba(255, 255, 255, 0.15);
}

.search-site input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-site i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sitemap-primary);
    font-size: 1rem;
}

/* =================================================================
   CONTENT AREA
   ================================================================= */

.sitemap-content {
    padding: 3rem 0;
    background: var(--sitemap-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =================================================================
   SITEMAP GRID LAYOUT
   ================================================================= */

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* =================================================================
   SITEMAP SECTIONS
   ================================================================= */

.sitemap-section {
    background: var(--sitemap-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--sitemap-shadow);
    border: 1px solid var(--sitemap-border);
    position: relative;
    transition: all 0.3s ease;
}

.sitemap-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--sitemap-hover-shadow);
}

/* Section Header */
.sitemap-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    color: var(--sitemap-dark);
    margin-bottom: 1.25rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--sitemap-border);
}

.sitemap-section h2 i {
    color: var(--sitemap-primary);
    font-size: 1.1rem;
}

.sitemap-section h4 {
    color: var(--sitemap-primary);
    font-size: 1rem;
    margin: 1.25rem 0 0.5rem 0;
    font-weight: 600;
}

/* Sitemap Links */
.sitemap-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-links li {
    margin-bottom: 0.5rem;
    padding-left: 0.75rem;
    position: relative;
}

.sitemap-links li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--sitemap-primary);
    font-weight: bold;
}

.sitemap-links a {
    color: var(--sitemap-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sitemap-links a:hover {
    color: var(--sitemap-primary);
}

/* =================================================================
   QUICK ACTIONS SECTION - MATCHING SITE STYLE
   ================================================================= */

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.quick-action-card {
    background: var(--sitemap-white);
    padding: 1.75rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--sitemap-dark);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--sitemap-border);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

/* Subtle hover effect matching your account page style */
.quick-action-card:hover {
    transform: translateY(-3px);
    border-color: var(--sitemap-primary);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.15);
    background: linear-gradient(135deg, var(--sitemap-white) 0%, rgba(212, 165, 116, 0.03) 100%);
}

.quick-action-card i {
    font-size: 2rem;
    color: var(--sitemap-primary);
    margin-bottom: 0.75rem;
    display: block;
    transition: transform 0.3s ease;
}

.quick-action-card:hover i {
    transform: translateY(-2px);
}

.quick-action-card h4 {
    font-size: 1.05rem;
    margin: 0 0 0.25rem 0;
    color: var(--sitemap-dark);
    font-weight: 600;
    line-height: 1.2;
}

.quick-action-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--sitemap-gray);
    line-height: 1.3;
}

/* Focus state for accessibility */
.quick-action-card:focus {
    outline: 2px solid var(--sitemap-primary);
    outline-offset: 2px;
}

/* Highlight Section - More subtle */
.highlight-section {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.05) 0%, var(--sitemap-white) 100%);
    border-color: var(--sitemap-primary);
}

.highlight-section h2 {
    color: var(--sitemap-dark);
}

/* =================================================================
   SEARCH STATES & HIGHLIGHTING
   ================================================================= */

mark {
    background: rgba(212, 165, 116, 0.2);
    color: var(--sitemap-dark);
    padding: 0.1em 0.2em;
    border-radius: 2px;
    font-weight: 600;
}

/* Loading State */
.sitemap-loading {
    text-align: center;
    padding: 2rem;
    color: var(--sitemap-gray);
}

.sitemap-loading i {
    font-size: 1.5rem;
    color: var(--sitemap-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 3rem;
    background: var(--sitemap-white);
    border-radius: 12px;
    border: 1px solid var(--sitemap-border);
}

.no-results i {
    font-size: 2.5rem;
    color: var(--sitemap-primary);
    margin-bottom: 1rem;
    display: block;
}

.no-results h3 {
    color: var(--sitemap-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.no-results p {
    color: var(--sitemap-gray);
}

/* Search Results Counter */
.search-results-info {
    background: var(--sitemap-white);
    padding: 0.875rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--sitemap-dark);
    font-weight: 500;
    border: 1px solid var(--sitemap-border);
}

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

@media (max-width: 968px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    
    .sitemap-section {
        padding: 1.75rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .sitemap-hero {
        padding: 3.5rem 0 2.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .sitemap-content {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .sitemap-section h2 {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .quick-action-card {
        padding: 1.25rem;
        min-height: auto;
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .quick-action-card i {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .quick-action-card h4 {
        font-size: 1rem;
    }
    
    .quick-action-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .sitemap-section {
        padding: 1.5rem 1.25rem;
    }
    
    .sitemap-section h2 {
        font-size: 1.1rem;
    }
    
    .search-site input {
        padding: 0.75rem 2rem 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* =================================================================
   UTILITY CLASSES & ANIMATIONS
   ================================================================= */

/* Fade in animation for sections */
.sitemap-section {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.sitemap-section:nth-child(1) { animation-delay: 0.1s; }
.sitemap-section:nth-child(2) { animation-delay: 0.2s; }
.sitemap-section:nth-child(3) { animation-delay: 0.3s; }
.sitemap-section:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* JavaScript Enhancement Classes */
.js-search-active .sitemap-section {
    transition: opacity 0.3s ease;
}

.js-search-active .sitemap-section.hidden {
    opacity: 0.3;
    pointer-events: none;
}

.js-search-highlight {
    background: rgba(212, 165, 116, 0.15);
    border-radius: 3px;
    padding: 0.1em 0.2em;
}

/* Print Styles */
@media print {
    .sitemap-hero,
    .search-site {
        display: none;
    }
    
    .sitemap-section {
        break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .quick-actions-grid {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .sitemap-section,
    .quick-action-card {
        border-width: 2px;
        border-color: var(--sitemap-dark);
    }
    
    .sitemap-links a,
    .quick-action-card {
        color: var(--sitemap-dark);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .sitemap-section,
    .quick-action-card {
        animation: none;
        transition: none;
    }
}