/**
 * Landing 2.0 Resources Block Styles
 * Scoped with .landing-2-resources prefix to avoid conflicts
 */

/* CSS Custom Properties */
.landing-2-resources {
    --res-bg: #F7F7F7;
    --res-title-color: #434343;
    --res-tile-bg: #FFFFFF;
    --res-tile-border: #E8E8E8;
    --res-tile-bg-hover: #FAFAFA;
    --res-tile-text: #434343;
    --res-tile-icon: #6B7B8A;
    --res-arrow-color: #9CA3AF;
    --res-arrow-hover: #6B7B8A;
    --res-btn-border: #D1D5DB;
    --res-btn-text: #6B7280;
    --res-radius-tile: 14px;
    --res-radius-pill: 999px;
    --res-gap: 20px;
    --res-section-padding: 80px;
}

/* Main Container */
.landing-2-resources {
    background-color: var(--res-bg);
    padding: var(--res-section-padding) 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.landing-2-resources__wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header Row */
.landing-2-resources__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.landing-2-resources__title {
    font-size: 52px;
    font-weight: 300;
    color: var(--res-title-color);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* View All Button */
.landing-2-resources__view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid var(--res-btn-border);
    border-radius: var(--res-radius-pill);
    color: var(--res-btn-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.landing-2-resources__view-all:hover {
    border-color: #9CA3AF;
    color: var(--res-title-color);
    text-decoration: none;
}

.landing-2-resources__view-all svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Grid Layout */
.landing-2-resources__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--res-gap);
}

/* Tile (Card) */
.landing-2-resources__tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--res-tile-bg);
    border: 1px solid var(--res-tile-border);
    border-radius: var(--res-radius-tile);
    padding: 18px 22px;
    min-height: 64px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.landing-2-resources__tile:hover {
    background-color: var(--res-tile-bg-hover);
    border-color: #D0D0D0;
    text-decoration: none;
}

/* Tile Content (Left Group) */
.landing-2-resources__tile-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.landing-2-resources__tile-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--res-tile-icon);
}

.landing-2-resources__tile-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.landing-2-resources__tile-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--res-tile-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tile Arrow (Right) - Simple arrow, no circle */
.landing-2-resources__tile-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    color: var(--res-arrow-color);
    transition: color 0.2s ease, transform 0.2s ease;
}

.landing-2-resources__tile:hover .landing-2-resources__tile-arrow {
    color: var(--res-arrow-hover);
    transform: translateX(2px);
}

.landing-2-resources__tile-arrow svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Empty State */
.landing-2-resources__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .landing-2-resources {
        --res-section-padding: 60px;
        --res-gap: 16px;
    }

    .landing-2-resources__wrapper {
        padding: 0 30px;
    }

    .landing-2-resources__title {
        font-size: 42px;
    }

    .landing-2-resources__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .landing-2-resources {
        --res-section-padding: 50px;
        --res-gap: 12px;
    }

    .landing-2-resources__wrapper {
        padding: 0 20px;
    }

    .landing-2-resources__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }

    .landing-2-resources__title {
        font-size: 34px;
    }

    .landing-2-resources__grid {
        grid-template-columns: 1fr;
    }

    .landing-2-resources__tile {
        padding: 16px 18px;
    }

    .landing-2-resources__tile-label {
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .landing-2-resources {
        --res-section-padding: 40px;
    }

    .landing-2-resources__title {
        font-size: 30px;
    }
}
