/*
Theme Name: Biveris
Description: Custom WordPress theme designed exclusively for Biveris.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biveris
Update URI: false
*/

/*
 * Modern Blocks Theme Styles
 * Clean, minimal styling with focus on typography and spacing
 */

/* Reset and base styles */
* {
	box-sizing: border-box;
}

/* Set Quicksand as default font family */
body,
.wp-site-blocks,
.wp-block,
.editor-styles-wrapper {
	font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Link styles with modern underline */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: 0.2em;
	transition: text-decoration-color 0.2s ease;
    text-decoration: none;
}

a:hover {
	text-decoration-color: transparent;
    color: var(--wp--preset--color--secondary);
}

/* Focus styles for accessibility */
:where(.wp-site-blocks *:focus) {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* Navigation focus improvements */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/* More link styling */
.more-link {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.75rem 1.5rem;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	text-decoration: none;
	border-radius: 0.375rem;
	transition: all 0.2s ease;
}

.more-link:hover {
	background: var(--wp--preset--color--secondary);
	transform: translateY(-1px);
}

/* Button hover effects */
.wp-block-button__link:hover {
	transform: translateY(-1px);
	
}

/* Card hover effects */
.wp-block-group.is-style-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Smooth transitions for interactive elements */
.wp-block-navigation-item__content,
.wp-block-button__link,
.wp-block-group.is-style-card {
	transition: all 0.2s ease;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--wp--preset--color--surface);
}

::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--contrast-light);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--wp--preset--color--contrast);
}

/* Responsive typography */
@media (max-width: 768px) {
	:root {
		--wp--preset--font-size--large: 1.125rem;
		--wp--preset--font-size--x-large: 1.5rem;
		--wp--preset--font-size--xx-large: 2rem;
	}
}

/* Hero and Mega Menu Integration */
.hero-container {
	position: relative;
	z-index: 1;
}

.mega-menu-container {
	position: relative;
	z-index: 1000;
}

/* Ensure hero content is properly positioned */
.hero-content {
	position: relative;
	z-index: 10;
}

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

/* Ensure proper spacing between sections */
.features-section,
.cta-section {
	position: relative;
	z-index: 2;
}

/* Print styles */
@media print {
	.wp-block-navigation,
	.wp-block-search,
	.wp-block-comments,
	.wp-block-post-comments-form,
	.hero-container,
	.mega-menu-container {
		display: none;
	}
	
	.wp-block-post-content {
		font-size: 12pt;
		line-height: 1.4;
	}
}

/* ========================================
   ARCHIVE TEMPLATE STYLES
   ======================================== */

/* Archive header styling */
.archive-header {
    background: linear-gradient(135deg, var(--wp--preset--color--primary), var(--wp--preset--color--secondary));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 1rem;
}

.archive-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.archive-description {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.archive-info {
    background: white;
    color: var(--wp--preset--color--primary);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    display: inline-block;
    font-weight: 500;
    font-size: 1.125rem;
}

/* Post card enhancements */
.post-card {
    transition: all 0.3s ease;
    border: 1px solid var(--wp--preset--color--surface);
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--wp--preset--color--primary);
}

.post-card .wp-block-post-featured-image {
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.post-card .wp-block-post-featured-image img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.post-card:hover .wp-block-post-featured-image img {
    transform: scale(1.05);
}

/* Post title styling */
.post-card .wp-block-post-title a {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card:hover .wp-block-post-title a {
    color: var(--wp--preset--color--secondary);
}

/* Category badges */
.wp-block-post-terms a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--wp--preset--color--primary);
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.wp-block-post-terms a:hover {
    background: var(--wp--preset--color--secondary);
    transform: translateY(-1px);
}

/* Post date styling */
.wp-block-post-date {
    color: var(--wp--preset--color--contrast);
    opacity: 0.7;
    font-size: 0.75rem;
}

/* Pagination styling */
.wp-block-query-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next {
    background: var(--wp--preset--color--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.wp-block-query-pagination .wp-block-query-pagination-previous:hover,
.wp-block-query-pagination .wp-block-query-pagination-next:hover {
    background: var(--wp--preset--color--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wp-block-query-pagination .wp-block-query-pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

.wp-block-query-pagination .wp-block-query-pagination-numbers__number {
    background: var(--wp--preset--color--surface);
    color: var(--wp--preset--color--contrast);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 2.5rem;
    text-align: center;
}

.wp-block-query-pagination .wp-block-query-pagination-numbers__number:hover,
.wp-block-query-pagination .wp-block-query-pagination-numbers__number.is-current {
    background: var(--wp--preset--color--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive design */
@media (max-width: 768px) {
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-description {
        font-size: 1rem;
    }
    
    .wp-block-query .wp-block-post-template {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .archive-header {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .archive-title {
        font-size: 1.75rem;
    }
    
    .wp-block-query-pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .wp-block-query-pagination .wp-block-query-pagination-previous,
    .wp-block-query-pagination .wp-block-query-pagination-next {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .wp-block-query-pagination .wp-block-query-pagination-numbers__number {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Loading animation for post cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeInUp 0.6s ease-out;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }

