/* Sitemap Page Styles */

/* Sitemap Content */
.sitemap-content {
    padding: 60px 0;
    background: var(--bg);
}

/* Hero visual effects (full hero box, page-local) */
.hero #heroVisual { position: relative; overflow: hidden; }
.sitemap-hero-effects { position: absolute; left:0; right:0; top:0; bottom:0; z-index:0; pointer-events:none; }
.hero .hero-placeholder .page-name { position: relative; z-index: 10; filter: none; }

/* Subtle animated grid */
.sitemap-hero-effects .sitemap-grid {
    position: absolute; left: -8%; right: -8%; top: -8%; bottom: -8%;
    background-image: linear-gradient(rgba(0, 64, 255, 0.12) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 204, 253, 0.10) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.16;
    animation: gridDrift 60s linear infinite;
}

/* Aura glow */
.sitemap-hero-effects .sitemap-aura {
    position: absolute; width:140%; height:140%; left:-20%; top:-20%;
    background: radial-gradient(600px 400px at 30% 30%, rgba(0, 204, 253, 0.16), transparent 60%),
                radial-gradient(700px 500px at 70% 70%, rgba(0, 64, 255, 0.14), transparent 60%);
    mix-blend-mode: screen;
    animation: auraFloat 24s ease-in-out infinite;
}

/* Rings */
.sitemap-hero-effects .sitemap-ring {
    position: absolute; left:50%; top:50%; transform: translate(-50%, -50%);
    width: 240px; height: 240px; border-radius: 50%;
    border: 1px solid rgba(0, 204, 253, 0.25);
    animation: ringPulse 10s ease-in-out infinite;
}
.sitemap-hero-effects .ring-2 { width: 340px; height: 340px; border-color: rgba(0, 64, 255, 0.25); animation-delay: 3s; }

/* Floating icons */
.sitemap-hero-effects .sitemap-icon { position:absolute; color: var(--color-lightest-blue); opacity:0.85; text-shadow:0 0 14px rgba(0, 204, 253, 0.35); background:none; border:none; padding:0; }
.sitemap-hero-effects .icon-sitemap { left: 12%; top: 24%; animation: floatY 12s ease-in-out infinite; }
.sitemap-hero-effects .icon-nodes { right: 14%; top: 22%; animation: floatY 15s ease-in-out infinite reverse; }
.sitemap-hero-effects .icon-link { left: 18%; bottom: 18%; animation: floatY 17s ease-in-out infinite; }
.sitemap-hero-effects .sitemap-icon i { font-size: 1.2rem; }

@keyframes gridDrift { 0%{ transform: translate3d(0,0,0);} 100%{ transform: translate3d(-28px,-28px,0);} }
@keyframes auraFloat { 0%,100%{ transform: translate3d(0,0,0) scale(1);} 50%{ transform: translate3d(-1%,1%,0) scale(1.03);} }
@keyframes ringPulse { 0%,100%{ transform: translate(-50%, -50%) scale(1); opacity:0.35;} 50%{ transform: translate(-50%,-50%) scale(1.06); opacity:0.55;} }
@keyframes floatY { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-6px);} }

@media (prefers-reduced-motion: reduce) {
    .sitemap-hero-effects * { animation: none; }
}

.sitemap-intro {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sitemap-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px 0;
}

.sitemap-intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Sitemap Sections */
.sitemap-section {
    margin-bottom: 80px;
}

.sitemap-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-glow);
}

.section-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-lightest-blue));
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 64, 255, 0.2);
}

.section-icon i {
    font-size: 1.5rem;
    color: var(--color-primary-navy);
}

.section-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
}

.section-info p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Pages Grid */
.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

/* Page Cards */
.page-card {
    background: var(--nav-bg);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    overflow: hidden;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.page-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 64, 255, 0.15) inset;
    border-color: var(--color-accent-cyan);
}

.page-link {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 300ms ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 64, 255, 0.05) 0%, 
        rgba(0, 204, 253, 0.03) 100%);
    opacity: 0;
    transition: opacity 300ms ease;
}

.page-card:hover .page-link::before {
    opacity: 1;
}

.page-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(0, 64, 255, 0.1) 0%, 
        rgba(0, 204, 253, 0.08) 100%);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 300ms ease;
    position: relative;
    z-index: 2;
    margin-top: 8px;
}

.page-card:hover .page-icon {
    background: linear-gradient(135deg, 
        rgba(0, 64, 255, 0.15) 0%, 
        rgba(0, 204, 253, 0.12) 100%);
    transform: scale(1.05);
}

.page-icon i {
    font-size: 1.25rem;
    color: var(--color-accent-cyan);
    transition: color 300ms ease;
}

.page-card:hover .page-icon i {
    color: var(--color-lightest-blue);
}

.page-content {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
    transition: color 300ms ease;
}

.page-card:hover .page-title {
    color: var(--color-lightest-blue);
}

.page-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0 0 12px 0;
    transition: color 300ms ease;
}

.page-card:hover .page-description {
    color: var(--text);
}

.page-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-url {
    font-size: 0.8rem;
    color: var(--color-accent-cyan);
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.page-priority {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.page-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 300ms ease;
    position: relative;
    z-index: 2;
    margin-top: 8px;
}

.page-card:hover .page-arrow {
    color: var(--color-lightest-blue);
    transform: translateX(4px);
}

.page-arrow i {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sitemap-content {
        padding: 40px 0;
    }
    
    .sitemap-intro {
        margin-bottom: 40px;
    }
    
    .sitemap-intro h2 {
        font-size: 2rem;
    }
    
    .sitemap-intro p {
        font-size: 1rem;
    }
    
    .sitemap-section {
        margin-bottom: 60px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .section-icon {
        width: 50px;
        height: 50px;
    }
    
    .section-icon i {
        font-size: 1.25rem;
    }
    
    .section-info h3 {
        font-size: 1.75rem;
    }
    
    .pages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .page-link {
        padding: 20px;
        gap: 16px;
    }
    
    .page-icon {
        width: 40px;
        height: 40px;
    }
    
    .page-icon i {
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 1.1rem;
    }
    
    .page-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .sitemap-content {
        padding: 30px 0;
    }
    
    .sitemap-intro {
        margin-bottom: 30px;
    }
    
    .sitemap-intro h2 {
        font-size: 1.75rem;
    }
    
    .sitemap-section {
        margin-bottom: 40px;
    }
    
    .section-header {
        gap: 12px;
    }
    
    .section-icon {
        width: 44px;
        height: 44px;
    }
    
    .section-info h3 {
        font-size: 1.5rem;
    }
    
    .page-link {
        padding: 16px;
        gap: 12px;
    }
    
    .page-icon {
        width: 36px;
        height: 36px;
    }
    
    .page-title {
        font-size: 1rem;
    }
    
    .page-description {
        font-size: 0.8rem;
    }
}

/* Light Theme Adjustments */
[data-theme="light"] .page-card {
    background: var(--nav-bg);
    border-color: rgba(0, 11, 129, 0.1);
}

[data-theme="light"] .page-card:hover {
    border-color: var(--color-accent-cyan);
    box-shadow: 
        0 20px 60px rgba(0, 11, 129, 0.08),
        0 0 0 1px rgba(0, 11, 129, 0.12) inset;
}

[data-theme="light"] .page-icon {
    background: linear-gradient(135deg, 
        rgba(0, 11, 129, 0.08) 0%, 
        rgba(0, 64, 255, 0.06) 100%);
}

[data-theme="light"] .page-card:hover .page-icon {
    background: linear-gradient(135deg, 
        rgba(0, 11, 129, 0.12) 0%, 
        rgba(0, 64, 255, 0.08) 100%);
}

[data-theme="light"] .page-icon i {
    color: var(--color-primary-navy);
}

[data-theme="light"] .page-card:hover .page-icon i {
    color: var(--color-accent-cyan);
}

[data-theme="light"] .page-url {
    color: var(--color-primary-navy);
}

[data-theme="light"] .page-card:hover .page-url {
    color: var(--color-accent-cyan);
}

[data-theme="light"] .page-arrow {
    color: var(--color-primary-navy);
}

[data-theme="light"] .page-card:hover .page-arrow {
    color: var(--color-accent-cyan);
}

/* Apple-style scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Initial hidden state for scroll animations */
.sitemap-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.sitemap-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.pages-grid {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
}

.pages-grid.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.page-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered animation delays for cards */
.page-card:nth-child(1) { transition-delay: 0.1s; }
.page-card:nth-child(2) { transition-delay: 0.15s; }
.page-card:nth-child(3) { transition-delay: 0.2s; }
.page-card:nth-child(4) { transition-delay: 0.25s; }
.page-card:nth-child(5) { transition-delay: 0.3s; }
.page-card:nth-child(6) { transition-delay: 0.35s; }
.page-card:nth-child(7) { transition-delay: 0.4s; }
.page-card:nth-child(8) { transition-delay: 0.45s; }
.page-card:nth-child(9) { transition-delay: 0.5s; }
.page-card:nth-child(10) { transition-delay: 0.55s; }
.page-card:nth-child(11) { transition-delay: 0.6s; }
.page-card:nth-child(12) { transition-delay: 0.65s; }

/* Hero section animations */
.hero-search {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.5s;
}

.hero-search.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Section icon animations */
.section-icon {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-icon.animate-in {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Smooth hover effects */
.page-card:hover {
    transform: translateY(-8px) scale(1.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-card:hover .page-icon {
    transform: scale(1.1) rotate(5deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading state for initial page load */
.sitemap-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.sitemap-content.loaded {
    opacity: 1;
    transform: translateY(0);
}
