/* Sitemap Page Styles */
.sitemap-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.sitemap-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.sitemap-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2c8462, #B1F373, #2c8462);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.sitemap-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2c8462 0%, #1f5f47 50%, #B1F373 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(44, 132, 98, 0.2);
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
}

.sitemap-description {
    font-size: 1.3rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

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

.sitemap-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.sitemap-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2c8462, #B1F373, #2c8462);
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sitemap-section:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(44, 132, 98, 0.15);
    border-color: rgba(177, 243, 115, 0.3);
}

.sitemap-section:hover::before {
    height: 6px;
    animation-duration: 1.5s;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #2c8462, #B1F373);
    border-radius: 2px;
}

.section-title a {
    color: #2c8462;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.section-title a:hover {
    color: #1f5f47;
    transform: translateX(3px);
}

.section-title i {
    color: #2c8462;
    font-size: 1.4rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 132, 98, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sitemap-section:hover .section-title i {
    background: rgba(177, 243, 115, 0.2);
    transform: scale(1.1);
}

.sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.sitemap-links li {
    position: relative;
    transition: all 0.3s ease;
}

.sitemap-links li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #2c8462;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.sitemap-links li:hover::before {
    transform: translateY(-50%) translateX(4px);
    opacity: 1;
    color: #B1F373;
}

.sitemap-links a {
    color: #475569;
    text-decoration: none;
    padding: 0.75rem 1rem 0.75rem 1.5rem;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sitemap-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(177, 243, 115, 0.1), transparent);
    transition: left 0.5s ease;
}

.sitemap-links a:hover {
    color: #1e293b;
    background: linear-gradient(135deg, rgba(44, 132, 98, 0.05), rgba(177, 243, 115, 0.05));
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(44, 132, 98, 0.1);
}

.sitemap-links a:hover::before {
    left: 100%;
}

.tools-count {
    background: linear-gradient(135deg, #2c8462, #1f5f47);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(44, 132, 98, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Add tool count badges */
.section-title .tools-count {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    margin-left: auto;
}

/* Add search functionality styling */
.sitemap-search {
    max-width: 500px;
    margin: 2rem auto;
    position: relative;
}

.sitemap-search input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sitemap-search input:focus {
    outline: none;
    border-color: #2c8462;
    box-shadow: 0 0 0 3px rgba(44, 132, 98, 0.1);
}

.sitemap-search i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sitemap-container {
        padding: 1.5rem 1rem;
    }

    .sitemap-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .sitemap-title {
        font-size: 2.5rem;
    }

    .sitemap-description {
        font-size: 1.1rem;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .sitemap-section {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .sitemap-links a {
        padding: 0.6rem 0.8rem 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .sitemap-title {
        font-size: 2rem;
    }
    
    .sitemap-section {
        padding: 1rem;
    }
    
    .sitemap-links li {
        margin-bottom: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .sitemap-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .sitemap-section::before {
        display: none;
    }
    
    .sitemap-links a {
        color: #000 !important;
    }
    
    .section-title a {
        color: #000 !important;
    }
}
