/* Premium styling for Viva Theme */

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Links and Interactive Elements */
a {
    color: var(--viva-primary);
    text-decoration: none;
    transition: color 0.2s ease-in-out, opacity 0.2s ease;
}

a:hover, a:focus {
    color: var(--viva-secondary);
    opacity: 0.9;
}

/* Grid layout for post template */
.wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0;
    list-style: none;
}

/* Modern Card Layout (Glassmorphism & Micro-animations) */
.wp-block-post-template > li {
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--viva-border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                border-color 0.3s ease;
}

.wp-block-post-template > li:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px -4px rgba(99, 102, 241, 0.2);
    border-color: var(--viva-primary);
}

/* Post Title */
.wp-block-post-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: 700;
}

.wp-block-post-title a {
    color: var(--viva-text);
}

.wp-block-post-title a:hover {
    color: var(--viva-primary);
}

/* Post Meta (Date) */
.wp-block-post-date {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    margin-bottom: 1.5rem;
}

/* Read More Button styling */
.wp-block-post-excerpt__more-link {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, var(--viva-primary), #4f46e5);
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.wp-block-post-excerpt__more-link:hover {
    background: linear-gradient(135deg, var(--viva-secondary), #db2777);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

/* Site Title Gradient Styling */
.wp-block-site-title a {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--viva-primary), var(--viva-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.2s ease;
}

.wp-block-site-title a:hover {
    opacity: 0.85;
}

/* Navigation items styling */
.wp-block-navigation .wp-block-navigation-item a {
    color: var(--viva-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.wp-block-navigation .wp-block-navigation-item a:hover {
    color: var(--viva-text);
    background-color: var(--viva-border);
}
