/**
 * Hero Section Block Styles
 */

.crypto-news-hero-section-block {
    width: 100%;
    margin: 24px 0;
}

.crypto-news-hero-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--wp--preset--color--foreground, #1a1a1a);
}

.crypto-news-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

.crypto-news-hero-main {
    grid-column: 1;
}

.hero-main-article {
    position: relative;
    height: 100%;
}

.hero-main-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--wp--preset--color--background, #fff);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 0 20px rgba(245, 165, 36, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.hero-main-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(248, 181, 0, 0.2) 0%, rgba(245, 159, 11, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.hero-main-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18), 0 0 40px rgba(245, 165, 36, 0.3);
}

.hero-main-link:hover::before {
    opacity: 1;
}

.hero-main-image {
    width: 100%;
    height: clamp(350px, 50vh, 500px);
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

.hero-main-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0) 0%, rgba(11, 18, 32, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-main-link:hover .hero-main-image img {
    transform: scale(1.08);
}

.hero-main-content {
    padding: clamp(24px, 4vw, 40px);
    position: relative;
    z-index: 2;
}

.hero-main-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wp--preset--color--primary, #0066cc);
    margin-bottom: 12px;
}

.hero-main-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 16px 0;
    color: var(--wp--preset--color--foreground, #1a1a1a);
    letter-spacing: -0.02em;
}

.hero-main-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--wp--preset--color--foreground, #666);
    margin: 0;
}

.crypto-news-hero-secondary {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-secondary-article {
    flex: 1;
}

.hero-secondary-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--wp--preset--color--background, #fff);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-secondary-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15), 0 0 20px rgba(245, 165, 36, 0.2);
    border-color: rgba(245, 165, 36, 0.4);
}

.hero-secondary-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.hero-secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-secondary-content {
    padding: 16px;
}

.hero-secondary-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wp--preset--color--primary, #0066cc);
    margin-bottom: 8px;
}

.hero-secondary-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: var(--wp--preset--color--foreground, #1a1a1a);
}

/* Editor Preview Styles */
.crypto-news-hero-section-preview {
    padding: 16px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 12px;
}

.crypto-news-hero-main-preview {
    margin-bottom: 16px;
}

.preview-image {
    width: 100%;
    height: 200px;
    background: #ddd;
    border-radius: 4px;
    margin-bottom: 12px;
}

.preview-content {
    padding: 12px;
}

.preview-category {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.preview-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.crypto-news-hero-secondary-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-secondary-item {
    display: flex;
    gap: 12px;
}

.preview-image-small {
    width: 120px;
    height: 80px;
    background: #ddd;
    border-radius: 4px;
    flex-shrink: 0;
}

.preview-content-small {
    flex: 1;
}

.preview-category-small {
    display: block;
    font-size: 10px;
    color: #666;
    margin-bottom: 4px;
}

.preview-title-small {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.crypto-news-hero-section-placeholder {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-top: 12px;
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
    :root:not(.light-mode) .crypto-news-hero-section-title {
        color: var(--color-text, #f8fafc);
    }

    :root:not(.light-mode) .hero-main-link {
        background: var(--color-surface, #111827);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 165, 36, 0.15);
    }

    :root:not(.light-mode) .hero-main-link:hover {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(245, 165, 36, 0.25);
    }

    :root:not(.light-mode) .hero-main-category {
        color: var(--color-accent, #f5a524);
    }

    :root:not(.light-mode) .hero-main-title {
        color: var(--color-text, #f8fafc);
    }

    :root:not(.light-mode) .hero-main-excerpt {
        color: var(--color-muted, #9ca3af);
    }

    :root:not(.light-mode) .hero-secondary-link {
        background: var(--color-surface, #111827);
        border-color: var(--color-border, #1f2937);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    :root:not(.light-mode) .hero-secondary-link:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 165, 36, 0.2);
        border-color: rgba(245, 165, 36, 0.4);
    }

    :root:not(.light-mode) .hero-secondary-category {
        color: var(--color-accent, #f5a524);
    }

    :root:not(.light-mode) .hero-secondary-title {
        color: var(--color-text, #f8fafc);
    }

    :root:not(.light-mode) .crypto-news-hero-section-preview {
        background: var(--color-surface, #111827);
    }

    :root:not(.light-mode) .preview-category,
    :root:not(.light-mode) .preview-category-small {
        color: var(--color-muted, #9ca3af);
    }

    :root:not(.light-mode) .preview-title,
    :root:not(.light-mode) .preview-title-small {
        color: var(--color-text, #f8fafc);
    }

    :root:not(.light-mode) .crypto-news-hero-section-placeholder {
        background: var(--color-surface, #111827);
        color: var(--color-muted, #9ca3af);
    }
}

body.is-dark .crypto-news-hero-section-title {
    color: var(--color-text, #f8fafc);
}

body.is-dark .hero-main-link {
    background: var(--color-surface, #111827);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 165, 36, 0.15);
}

body.is-dark .hero-main-link:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(245, 165, 36, 0.25);
}

body.is-dark .hero-main-category {
    color: var(--color-accent, #f5a524);
}

body.is-dark .hero-main-title {
    color: var(--color-text, #f8fafc);
}

body.is-dark .hero-main-excerpt {
    color: var(--color-muted, #9ca3af);
}

body.is-dark .hero-secondary-link {
    background: var(--color-surface, #111827);
    border-color: var(--color-border, #1f2937);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.is-dark .hero-secondary-link:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 165, 36, 0.2);
    border-color: rgba(245, 165, 36, 0.4);
}

body.is-dark .hero-secondary-category {
    color: var(--color-accent, #f5a524);
}

body.is-dark .hero-secondary-title {
    color: var(--color-text, #f8fafc);
}

body.is-dark .crypto-news-hero-section-preview {
    background: var(--color-surface, #111827);
}

body.is-dark .preview-category,
body.is-dark .preview-category-small {
    color: var(--color-muted, #9ca3af);
}

body.is-dark .preview-title,
body.is-dark .preview-title-small {
    color: var(--color-text, #f8fafc);
}

body.is-dark .crypto-news-hero-section-placeholder {
    background: var(--color-surface, #111827);
    color: var(--color-muted, #9ca3af);
}

/* Responsive */
@media (max-width: 1024px) {
    .crypto-news-hero-grid {
        grid-template-columns: 1fr;
    }

    .crypto-news-hero-secondary {
        grid-column: 1;
        flex-direction: row;
        overflow-x: auto;
    }

    .hero-secondary-article {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .hero-main-image {
        height: 300px;
    }

    .hero-main-title {
        font-size: 24px;
    }

    .crypto-news-hero-secondary {
        flex-direction: column;
    }

    .hero-secondary-article {
        min-width: auto;
    }
}

