/* Base Font Settings */
html, body {
    font-family: 'IBM Plex Sans Thai', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Iconify Icon Styles */
.iconify {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

.iconify-inline {
    vertical-align: -0.125em;
}

/* Animated Icon Styles */
.icon-spin {
    animation: icon-spin 1s linear infinite;
}

.icon-pulse {
    animation: icon-pulse 1.5s ease-in-out infinite;
}

.icon-bounce {
    animation: icon-bounce 1s ease infinite;
}

@keyframes icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes icon-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Prototype Custom Styles */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.neon-glow {
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
}

.neon-border-blue {
    border: 1px solid rgba(0, 102, 255, 0.4);
    box-shadow: inset 0 0 10px rgba(0, 102, 255, 0.1), 0 0 10px rgba(0, 102, 255, 0.1);
}

.hero-gradient {
    background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 60%);
}

.glass-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.hero-gradient-light {
    background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.03) 0%, transparent 70%);
}

.ui-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

/* Pricing Page Specifics */
details>summary {
    list-style: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(0, 102, 255, 0.2);
    box-shadow: 0 10px 30px -10px rgba(0, 102, 255, 0.1);
}

/* ========================================
   Navigation Link Styles
   ======================================== */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
}

.nav-link:hover {
    color: #5a60ff;
    background-color: rgba(90, 96, 255, 0.05);
}

/* Active Navigation Link */
.nav-link.nav-link-active {
    color: #5a60ff !important;
    font-weight: 600;
    background-color: rgba(90, 96, 255, 0.08);
}

.nav-link.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -0.375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1.25rem;
    height: 2.5px;
    background: linear-gradient(90deg, #6e76ff, #4b00ff);
    border-radius: 2px;
}

/* ========================================
   Top Navigation Progress Bar
   ======================================== */
.nav-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #6e76ff, #4b00ff, #6e76ff);
    background-size: 200% 100%;
    z-index: 9999;
    transition: width 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.nav-progress-bar.nav-progress-active {
    opacity: 1;
    width: 90%;
    animation: progressShimmer 1.5s linear infinite, progressGrow 2s ease-out forwards;
}

@keyframes progressShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes progressGrow {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 90%; }
}

/* ========================================
   Skeleton Loading Styles
   ======================================== */
.skeleton-shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: skeletonShimmer 1.4s ease infinite;
}

.skeleton-page {
    animation: skeletonFadeIn 0.2s ease-out;
}

@keyframes skeletonShimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes skeletonFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Skeleton Overlay (for enhanced navigation) */
.skeleton-overlay {
    position: relative;
    z-index: 1;
    background: #ffffff;
    animation: skeletonFadeIn 0.15s ease-out;
    min-height: calc(100vh - 64px);
}

/* Responsive skeleton grid */
@media (max-width: 768px) {
    .skeleton-overlay .skeleton-page > div:last-child > div {
        grid-template-columns: 1fr !important;
    }
}

/* Page content transition */
.page-content {
    transition: opacity 0.15s ease;
}