/*
Theme Name: Highline
Theme URI: https://instagram.com/naveenkmrrr
Author: Naveen Kumar
Author URI: https://instagram.com/naveenkmrrr
Description: A modern block theme optimized for content-rich blogs with categories like Humor, Riddles, Trivia, Party Games, and more. Built with Full Site Editing for easy customization.
Requires at least: 6.4
Tested up to: 6.7
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: highline
Tags: blog, entertainment, full-site-editing, block-patterns, custom-colors, custom-menu, editor-style, featured-images, flexible-header, rtl-language-support, threaded-comments, translation-ready, wide-blocks

Highline is a versatile block theme designed for content creators running entertainment and educational blogs.
*/

/* 
 * This theme uses theme.json for styling.
 * Material You (Material 3) design enhancements below.
 */

/* Import Roboto font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

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

/* Focus styles for accessibility - Material You style */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Material You Card elevations and hover states */
.wp-block-post {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wp-block-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px 4px rgba(0, 0, 0, 0.15), 0 2px 3px 0 rgba(0, 0, 0, 0.3) !important;
}

/* State layer on hover (Material You) */
.wp-block-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--wp--preset--color--on-surface);
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.wp-block-post:hover::before {
    opacity: 0.08;
}

/* Navigation Material You ripple effect */
.wp-block-navigation-item a {
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0.75rem;
    border-radius: 1.25rem;
}

.wp-block-navigation-item a:hover {
    background-color: var(--wp--preset--color--secondary-container);
    color: var(--wp--preset--color--on-secondary-container);
}

/* Material You buttons */
.wp-block-button__link {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.00625rem;
}

.wp-block-button__link:hover {
    box-shadow: 0 4px 8px 3px rgba(0, 0, 0, 0.15), 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.wp-block-button__link:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
}

/* Material You chips for categories/tags */
.wp-block-post-terms {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wp-block-post-terms a {
    padding: 0.25rem 0.75rem;
    background: var(--wp--preset--color--secondary-container);
    color: var(--wp--preset--color--on-secondary-container);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.03125rem;
}

.wp-block-post-terms a:hover {
    background: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--on-secondary);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
}

/* Featured image with scrim overlay on hover */
.wp-block-post-featured-image {
    overflow: hidden;
    position: relative;
}

.wp-block-post-featured-image img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

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

/* Material You search input */
.wp-block-search__input {
    border: 1px solid var(--wp--preset--color--outline);
    padding: 0.75rem 1rem;
    border-radius: 1.75rem;
    background: var(--wp--preset--color--surface-container);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-search__input:focus {
    border-color: var(--wp--preset--color--primary);
    outline: none;
    background: var(--wp--preset--color--surface-container-high);
}

.wp-block-search__button {
    border-radius: 1.25rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Comments section Material You style */
.wp-block-comments {
    margin-top: 3rem;
}

.wp-block-comment-template li {
    list-style: none;
    padding: 1rem;
    background: var(--wp--preset--color--surface-container-low);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

/* Material You blockquote */
.wp-block-quote {
    font-style: normal;
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--wp--preset--color--primary);
    background: var(--wp--preset--color--surface-container-low);
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1.5rem;
}

.wp-block-quote cite {
    font-style: normal;
    font-weight: 500;
    color: var(--wp--preset--color--on-surface-variant);
    font-size: 0.875rem;
}

/* Table styling with Material You */
.wp-block-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
}

.wp-block-table td,
.wp-block-table th {
    padding: 1rem;
    border-bottom: 1px solid var(--wp--preset--color--outline-variant);
}

.wp-block-table th {
    background: var(--wp--preset--color--surface-container);
    font-weight: 500;
    text-align: left;
}

.wp-block-table tbody tr:hover {
    background: var(--wp--preset--color--surface-container-low);
}

/* Pagination Material You style */
.wp-block-query-pagination {
    gap: 0.5rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--wp--preset--color--surface-container);
    color: var(--wp--preset--color--on-surface);
}

.wp-block-query-pagination a:hover {
    background: var(--wp--preset--color--secondary-container);
    color: var(--wp--preset--color--on-secondary-container);
}

.wp-block-query-pagination .current {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--on-primary);
}

/* Social links Material You style */
.wp-block-social-links a {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-social-links a:hover {
    transform: scale(1.1);
}

/* Material You elevation for header/footer */
header.wp-block-template-part {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 781px) {
    .wp-block-post-template.is-flex-container {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .wp-block-group.alignwide {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 599px) {
    .wp-block-post-template.is-flex-container {
        grid-template-columns: 1fr !important;
    }
    
    .wp-block-navigation {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
}

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