/**
 * Frontend Block Styles for Gray Tree media
 * These styles are loaded when blocks are present on the page
 */

/* ===== BUTTON STYLES ===== */
.is-style-outline-red .wp-block-button__link {
    background-color: transparent;
    color: #dc2626;
    border: 2px solid #dc2626;
    transition: all 0.3s ease;
}

.is-style-outline-red .wp-block-button__link:hover {
    background-color: #dc2626;
    color: #ffffff;
}

.is-style-fill-blue .wp-block-button__link {
    background-color: #1e3a8a;
    color: #ffffff;
    transition: all 0.3s ease;
}

.is-style-fill-blue .wp-block-button__link:hover {
    background-color: #2563eb;
}

/* ===== IMAGE STYLES ===== */
.is-style-rounded-shadow img {
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.is-style-rounded-shadow img:hover {
    transform: translateY(-5px);
}

.is-style-border-red img {
    border: 4px solid #dc2626;
    border-radius: 8px;
    padding: 4px;
    background: #ffffff;
}

/* ===== QUOTE STYLES ===== */
.is-style-breaking-news {
    background: #dc2626;
    border-left: none;
    border-radius: 8px;
    color: #ffffff;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.is-style-breaking-news::before {
    content: '🔴';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.is-style-breaking-news p {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.is-style-breaking-news cite {
    color: rgba(255, 255, 255, 0.8);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== GROUP STYLES ===== */
.is-style-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.is-style-breaking-bar {
    background: #dc2626;
    color: #ffffff;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.is-style-breaking-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== LATEST POSTS BLOCK ===== */
.wp-block-latest-posts__list li {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}

.wp-block-latest-posts__list li:hover {
    background: #f1f5f9;
}

.wp-block-latest-posts__post-title {
    color: #1e3a8a;
    font-weight: 600;
    font-size: 1.1rem;
}

.wp-block-latest-posts__post-title:hover {
    color: #dc2626;
}

.wp-block-latest-posts__post-date {
    color: #64748b;
    font-size: 0.9rem;
}

/* ===== QUERY LOOP BLOCK ===== */
.wp-block-query .wp-block-post-template {
    gap: 2rem;
}

.wp-block-query .wp-block-post {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-query .wp-block-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== POST AUTHOR BLOCK ===== */
.wp-block-post-author {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 12px;
}

.wp-block-post-author__avatar img {
    border-radius: 50%;
    border: 3px solid #dc2626;
}

.wp-block-post-author__name {
    color: #1e3a8a;
    font-weight: 700;
}

/* ===== POST TERMS (CATEGORIES/Tags) ===== */
.wp-block-post-terms a {
    display: inline-block;
    background: #dc2626;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 5px;
    transition: background 0.3s ease;
}

.wp-block-post-terms a:hover {
    background: #991b1b;
    color: #ffffff;
}

/* ===== READ MORE BLOCK ===== */
.wp-block-read-more {
    display: inline-block;
    background: #1e3a8a;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-block-read-more:hover {
    background: #dc2626;
    color: #ffffff;
}

/* ===== FEATURED IMAGE BLOCK ===== */
.wp-block-post-featured-image img {
    border-radius: 12px;
    transition: transform 0.5s ease;
}

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

/* ===== NAVIGATION BLOCK ===== */
.wp-block-navigation .wp-block-navigation-item__content {
    color: #1e293b;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
    color: #dc2626;
    background: #f1f5f9;
}

.wp-block-navigation .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
    color: #dc2626;
    background: #fef2f2;
}

/* ===== SOCIAL LINKS BLOCK ===== */
.wp-block-social-links .wp-social-link {
    background: #1e3a8a;
    transition: transform 0.3s ease, background 0.3s ease;
}

.wp-block-social-links .wp-social-link:hover {
    background: #dc2626;
    transform: translateY(-3px);
}

/* ===== ADDITIONAL CUSTOM BLOCK STYLES ===== */
.is-style-fill-red .wp-block-button__link {
    background-color: #dc2626;
    color: #ffffff;
}

.is-style-fill-red .wp-block-button__link:hover {
    background-color: #991b1b;
}

.is-style-outline-blue .wp-block-button__link {
    background-color: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.is-style-outline-blue .wp-block-button__link:hover {
    background-color: #1e3a8a;
    color: #ffffff;
}

.is-style-border-blue img {
    border: 4px solid #1e3a8a;
    border-radius: 8px;
    padding: 4px;
    background: #ffffff;
}

.is-style-featured-quote {
    background: #eff6ff;
    border-left: 4px solid #1e3a8a;
    border-radius: 8px;
    padding: 1.5rem;
}

.is-style-featured-quote p {
    color: #1e3a8a;
    font-size: 1.15rem;
    font-weight: 700;
}

.is-style-highlight-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px -24px rgba(15, 23, 42, 0.3);
}

.is-style-breaking-box {
    background: #fef2f2;
    border-left: 5px solid #dc2626;
}

.is-style-info-box {
    background: #eff6ff;
    border-left: 5px solid #1e3a8a;
}

.is-style-lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #1e293b;
}

.is-style-caption-style {
    font-size: 0.92rem;
    color: #64748b;
    font-style: italic;
}

.is-style-section-title {
    font-size: 2rem;
    line-height: 1.1;
    color: #1e3a8a;
    border-left: 6px solid #1e3a8a;
    padding-left: 16px;
}

.is-style-article-title {
    font-size: 2.4rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.is-style-checklist-red,
.is-style-arrow-list {
    list-style: none;
    padding-left: 0;
}

.is-style-checklist-red li,
.is-style-arrow-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.is-style-checklist-red li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: 800;
}

.is-style-arrow-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #1e3a8a;
    font-weight: 800;
}

.is-style-red-accent {
    border-top-color: #dc2626;
    border-bottom-color: #dc2626;
}

.is-style-blue-accent {
    border-top-color: #1e3a8a;
    border-bottom-color: #1e3a8a;
}

.is-style-red-thick {
    border-top: 4px solid #dc2626;
}

.is-style-blue-thick {
    border-top: 4px solid #1e3a8a;
}

.is-style-news-table table th {
    background: #1e3a8a;
    color: #ffffff;
}

.is-style-striped-red table tr:nth-child(even) {
    background: #fef2f2;
}

.featured-article-block {
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 34px -26px rgba(15, 23, 42, 0.35);
}

.breaking-news-cover {
    border-radius: 16px;
    overflow: hidden;
}

.news-grid-2-columns,
.news-grid-3-columns {
    gap: 1.5rem;
}

.highlight-red {
    background: #fee2e2;
    color: #991b1b;
    padding: 0 0.2em;
}

.highlight-blue {
    background: #dbeafe;
    color: #1e3a8a;
    padding: 0 0.2em;
}

/* ===== SEARCH BLOCK ===== */
.wp-block-search__input {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
}

.wp-block-search__button {
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wp-block-search__button:hover {
    background: #991b1b;
}

/* ===== COMMENTS BLOCK ===== */
.wp-block-comments {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wp-block-comment-author-name {
    color: #1e3a8a;
    font-weight: 700;
}

.wp-block-comment-date {
    color: #64748b;
    font-size: 0.9rem;
}

/* ===== PAGINATION BLOCK ===== */
.wp-block-query-pagination {
    margin-top: 2rem;
}

.wp-block-query-pagination a {
    color: #1e3a8a;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.wp-block-query-pagination a:hover {
    background: #f1f5f9;
    color: #dc2626;
}

.wp-block-query-pagination .wp-block-query-pagination-current {
    background: #dc2626;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

/* ===== MEDIA TEXT BLOCK ===== */
.wp-block-media-text {
    border-radius: 12px;
    overflow: hidden;
}

.wp-block-media-text__media img {
    border-radius: 12px 0 0 12px;
}

/* ===== GALLERY BLOCK ===== */
.wp-block-gallery .wp-block-image img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* ===== VERSE BLOCK ===== */
.wp-block-verse {
    background: #f1f5f9;
    border-left: 4px solid #dc2626;
    padding: 1.5rem;
    font-family: 'Georgia', serif;
    font-style: italic;
    color: #1e293b;
    border-radius: 0 8px 8px 0;
}

/* ===== CODE BLOCK ===== */
.wp-block-code {
    background: #1e293b;
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    overflow-x: auto;
}

.wp-block-code code {
    font-family: inherit;
}

/* ===== PREFORMATTED BLOCK ===== */
.wp-block-preformatted {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
}
