/* XiaoUI Block Theme - Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography improvements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom link styles */
a {
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

/* Button hover effects */
.wp-block-button__link {
    transition: all 0.2s ease;
}

.wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-decoration: none !important;
}

/* Card style */
.is-style-card {
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.is-style-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Hero section */
.is-style-hero-section {
    position: relative;
    overflow: hidden;
}

.is-style-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    z-index: 0;
}

.is-style-hero-section > * {
    position: relative;
    z-index: 1;
}

/* Responsive typography */
@media (max-width: 768px) {
    .wp-block-heading {
        font-size: var(--wp--preset--font-size--large);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --wp--preset--color--base: #111111;
        --wp--preset--color--contrast: #f0f0f0;
    }
}

/* Print styles */
@media print {
    .wp-block-navigation,
    .wp-block-search,
    .wp-block-comments {
        display: none !important;
    }
}
