/**
 * Advanced XML Sitemap - Frontend Styles
 * 
 * @version 2.5.0
 */

.axsp-html-sitemap {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
    line-height: 1.7;
    background: #fff;
    opacity: 0;
    animation: axspFadeIn 0.8s ease forwards 0.2s;
}

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

@keyframes axspPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 69, 199, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 69, 199, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 69, 199, 0); }
}

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

@keyframes axspShine {
    0% { transform: rotate(30deg) translateX(-100%); }
    100% { transform: rotate(30deg) translateX(100%); }
}

/* Logo */
.axsp-logo-container {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    position: relative;
}

.axsp-logo-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0045C7, transparent);
}

.axsp-logo {
    max-height: 80px;
    width: auto;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 8px 16px rgba(0, 69, 199, 0.1));
}

.axsp-logo:hover {
    transform: scale(1.08) translateY(-5px);
    filter: drop-shadow(0 12px 24px rgba(0, 69, 199, 0.2));
}

/* Breadcrumb */
.axsp-breadcrumb {
    background: linear-gradient(135deg, #0045C7 0%, #0056e0 100%);
    background-size: 200% 200%;
    animation: axspGradientShift 15s ease infinite;
    color: #fff;
    padding: 24px 36px;
    border-radius: 20px;
    margin-bottom: 60px;
    font-size: 1.05rem;
    box-shadow: 0 16px 32px rgba(0, 69, 199, 0.25);
    position: relative;
    overflow: hidden;
}

.axsp-breadcrumb::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.axsp-breadcrumb::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: rotate(30deg);
    animation: axspShine 8s linear infinite;
}

.axsp-breadcrumb a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.axsp-breadcrumb a:hover {
    color: #fff;
    text-decoration: none;
    transform: translateX(3px);
}

.axsp-breadcrumb a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.axsp-breadcrumb a:hover::after {
    width: 100%;
}

/* Main Title */
.axsp-main-title-wrap {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    padding: 0 20px;
}

.axsp-sitemap-main-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: #0045C7;
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 30px;
    letter-spacing: -0.8px;
    background: linear-gradient(135deg, #0045C7 0%, #0066ff 50%, #0088ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 69, 199, 0.1);
}

.axsp-sitemap-main-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 6px;
    background: linear-gradient(90deg, #0045C7 0%, #0066ff 100%);
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 69, 199, 0.35);
}

.axsp-main-title-wrap::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    z-index: -1;
}

/* Search */
.axsp-search-container {
    margin-bottom: 50px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.axsp-search-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.axsp-search-input {
    flex: 1;
    padding: 22px 28px 22px 60px;
    border: 1px solid #e5e7eb;
    border-radius: 24px 0 0 24px;
    font-size: 1.05rem;
    background: #f9fafb;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    font-weight: 500;
    border-right: none;
}

.axsp-search-submit {
    padding: 22px 30px;
    background: linear-gradient(135deg, #0045C7 0%, #0066ff 100%);
    color: white;
    border: none;
    border-radius: 0 24px 24px 0;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,69,199,0.15);
}

.axsp-search-submit:hover {
    background: linear-gradient(135deg, #002a80 0%, #0045C7 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,69,199,0.25);
}

.axsp-search-input:focus {
    outline: none;
    border-color: #0045C7;
    box-shadow: 0 0 0 8px rgba(0,69,199,0.12), 0 12px 32px rgba(0,0,0,0.12);
    background: #fff;
    transform: translateY(-3px);
    animation: axspPulse 1.5s infinite;
}

.axsp-search-container::before {
    content: "🔍";
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #0045C7;
    z-index: 1;
    transition: all 0.3s ease;
}

.axsp-search-container:focus-within::before {
    transform: translateY(-50%) scale(1.1);
    color: #002a80;
}

/* Stats */
.axsp-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(0,69,199,0.1) 0%, rgba(0,86,224,0.07) 100%);
    padding: 24px 36px;
    border-radius: 20px;
    margin-bottom: 50px;
    color: #0045C7;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(0,69,199,0.1);
    border: 1px solid rgba(0,69,199,0.15);
    position: relative;
    overflow: hidden;
}

.axsp-stats::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0,69,199,0.08) 0%, transparent 70%);
    border-radius: 0 0 0 100px;
}

/* Sections */
.axsp-sitemap-section {
    margin-bottom: 60px;
    background: #fff;
    border-radius: 24px;
    padding: 50px 55px;
    box-shadow: 0 20px 48px rgba(0,0,0,0.07);
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.98;
}

.axsp-sitemap-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    opacity: 1;
}

.axsp-sitemap-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #0045C7 0%, #0066ff 100%);
}

.axsp-sitemap-section::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0,69,199,0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.axsp-sitemap-section h2 {
    margin: 0 0 40px 0;
    font-size: 2.1rem;
    font-weight: 700;
    color: #111827;
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.axsp-sitemap-section h2::after {
    content: "";
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #0045C7 0%, #0066ff 100%);
    position: absolute;
    left: 0;
    bottom: -1px;
    border-radius: 3px;
}

.axsp-section-count {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0045C7 0%, #0066ff 100%);
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: 0 6px 16px rgba(0,69,199,0.25);
    transition: all 0.3s ease;
}

.axsp-sitemap-section:hover .axsp-section-count {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,69,199,0.3);
}

/* Links Grid */
.axsp-sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.axsp-sitemap-links li {
    margin: 0;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.axsp-sitemap-links li:hover {
    opacity: 1;
}

.axsp-sitemap-links a {
    display: flex;
    align-items: center;
    padding: 20px 28px;
    color: #0045C7;
    text-decoration: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f7ff 100%);
    border-left: 6px solid #0045C7;
    font-weight: 500;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    font-size: 1.02rem;
}

.axsp-sitemap-links a::before {
    content: "→";
    margin-right: 18px;
    font-size: 1.1rem;
    color: #0045C7;
    font-weight: 700;
    transition: all 0.4s ease;
}

.axsp-sitemap-links a::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.8s ease;
}

.axsp-sitemap-links a:hover {
    background: linear-gradient(135deg, #e6f0ff 0%, #d4e4ff 100%);
    color: #002a80;
    transform: translateX(10px);
    box-shadow: 0 12px 32px rgba(0,69,199,0.2);
    border-left-color: #002a80;
}

.axsp-sitemap-links a:hover::before {
    color: #002a80;
    transform: translateX(5px);
}

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

.axsp-item-date,
.axsp-item-count {
    font-size: 0.85rem;
    color: #6b7280;
    margin-left: 12px;
    font-weight: 400;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.axsp-sitemap-links li:hover .axsp-item-date,
.axsp-sitemap-links li:hover .axsp-item-count {
    opacity: 1;
    color: #0045C7;
}

/* Highlight */
.axsp-highlight {
    background: linear-gradient(120deg, #fff3cd 0%, #ffe899 100%);
    padding: 3px 8px;
    border-radius: 6px;
    color: #856404;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(255,204,0,0.25);
    position: relative;
    z-index: 1;
}

/* Footer */
.axsp-sitemap-footer {
    margin-top: 80px;
    padding: 50px 40px;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f7ff 100%);
    border-radius: 24px;
    text-align: center;
    font-size: 1.05rem;
    color: #4b5563;
    border-top: 6px solid #0045C7;
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.axsp-sitemap-footer::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0045C7, transparent);
}

.axsp-sitemap-footer a {
    color: #0045C7;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.axsp-sitemap-footer a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0045C7 0%, #0066ff 100%);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.axsp-sitemap-footer a:hover {
    text-decoration: none;
    color: #002a80;
}

.axsp-sitemap-footer a:hover::after {
    width: 100%;
}

/* Hidden */
.axsp-hidden { display: none !important; }

/* Responsive */
@media (max-width: 1200px) {
    .axsp-sitemap-links { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

@media (max-width: 992px) {
    .axsp-sitemap-main-title { font-size: 3rem; }
    .axsp-sitemap-section { padding: 40px 35px; }
    .axsp-sitemap-links { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
}

@media (max-width: 768px) {
    .axsp-sitemap-main-title { font-size: 2.5rem; padding-bottom: 20px; }
    .axsp-sitemap-main-title::after { width: 120px; height: 5px; }
    .axsp-sitemap-section { padding: 35px 28px; margin-bottom: 40px; }
    .axsp-sitemap-section h2 { font-size: 1.8rem; padding-bottom: 20px; }
    .axsp-sitemap-links { grid-template-columns: 1fr; gap: 18px; }
    .axsp-stats { flex-direction: column; gap: 20px; text-align: center; padding: 20px 24px; }
    .axsp-logo { max-height: 70px; }
    .axsp-breadcrumb { padding: 20px 24px; margin-bottom: 40px; }
    .axsp-search-input { padding: 20px 24px 20px 55px; }
    .axsp-search-submit { padding: 20px 24px; }
    .axsp-sitemap-footer { padding: 40px 24px; margin-top: 60px; }
}

@media (max-width: 480px) {
    .axsp-html-sitemap { margin: 40px auto; padding: 0 15px; }
    .axsp-sitemap-main-title { font-size: 2.2rem; }
    .axsp-sitemap-section { padding: 30px 20px; border-radius: 16px; }
    .axsp-sitemap-section h2 { font-size: 1.6rem; }
    .axsp-stats { padding: 18px 20px; font-size: 0.95rem; }
    .axsp-search-input { padding: 18px 20px 18px 50px; border-radius: 20px 0 0 20px; }
    .axsp-search-submit { padding: 18px 20px; border-radius: 0 20px 20px 0; }
    .axsp-breadcrumb { border-radius: 16px; padding: 18px 20px; }
    .axsp-logo { max-height: 60px; }
}
