@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ===== INDUSTRY3D ECOSYSTEM MAP ===== */
/* Palette: i3D Brand */
.ecs3-ecosystem-standalone-project { all: revert; font-family: inherit; }

.ecs3-ecosystem-standalone-project {
    --ecosystem-bg: #fcfcfc;
    --ecosystem-bg-dark: #132d4a;
    --ecosystem-text: #111111;
    --ecosystem-text-secondary: #767676;
    --ecosystem-accent: #124972;
    --ecosystem-accent-light: #4db2ec;
    --ecosystem-accent-light-inverted: #b24d13;
    --ecosystem-accent-pale: #cccccc;
    --ecosystem-card-bg: #ffffff;
    --ecosystem-card-bg-alt: #f2f2f2;
    --ecosystem-card-border: #ededed;
    --ecosystem-footer-bg: #0d0d0d;
    --ecosystem-tag-bg: #ffffff;
    --tag-accent-accent-bg: #222222;
    --tag-accent-accent-text: #ffffff;
    --ecosystem-shadow: rgba(122, 122, 122, 0.1);

    --ecosystem-height-tag: 2.4rem;
/* 
    --ecosystem-card-bg1: #cfd5da;
    --card-header-bg: #b8c0c8;
    --subcategory-bg: #e7eaec; */
}

.ecs3-ecosystem-standalone-project * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ecs3-ecosystem-standalone-project {
    font-family: 'Montserrat', 'Calibri', sans-serif;
    background: var(--ecosystem-bg);
    color: var(--ecosystem-text);
    -webkit-font-smoothing: antialiased;
}

.ecs3-page-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 20px 24px;
}

/* ===== HEADER ===== */
.ecs3-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    margin-bottom: 20px;
    background: var(--ecosystem-bg-dark);
    border-radius: 12px;
}

.ecs3-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ecs3-header-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ecosystem-bg);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ecs3-header-right {
    display: flex;
    align-items: center;
}

.ecs3-header-url {
    font-size: 12px;
    font-weight: 500;
    color: var(--ecosystem-accent-pale);
    opacity: 0.8;
}

/* ===== MAIN GRID ===== */
.ecs3-main-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(350px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.ecs3-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ecs3-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* ===== CARDS ===== */
.ecs3-card {
    /* background: var(--ecosystem-card-bg); */
    /* background-color: var(--ecosystem-card-bg1); */
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--ecosystem-card-border);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ecs3-card.ecs3-highlighted {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(34, 128, 153, 0.4);
    z-index: 10;
}

.ecs3-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--ecosystem-shadow);
    border-color: var(--ecosystem-accent);
}

.ecs3-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ecosystem-card-border);
}

/* .ecs3-card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--ecosystem-bg-dark);
    color: var(--ecosystem-accent-light);
    flex-shrink: 0;
} */

.ecs3-card-header h2 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ecosystem-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.ecs3-card-body {
    padding: 12px 16px;
}

.ecs3-card-large .ecs3-card-body {
    max-height: none;
}

/* ===== SUBCATEGORIES ===== */
.ecs3-subcategory {
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 1px solid var(--ecosystem-card-border);
    border-radius: 6px;
    transition: transform 0.5s ease;
}

/*
.ecs3-subcategory::after {
    content: '';
    position: absolute;
    left: -2px;
    bottom: -2px;
    width: 10px; 
    height: 2px;
    background: var(--ecosystem-accent);
}
*/

.ecs3-subcategory:hover {
    transform: scale(1.005);
    border-color: var(--ecosystem-accent-light);
}

.ecs3-subcategory:last-child {
    margin-bottom: 0;
}

.ecs3-sub-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ecosystem-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    padding-left: 8px;
}


.ecs3-more-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ecosystem-footer-bg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s ease;
    text-decoration: none;
    padding: 8px;
}

.ecs3-more-label:hover {
    text-decoration: underline;
    cursor: pointer;
}

/* ===== TAGS ===== */
.ecs3-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ecs3-tag {
    margin-left:10px;
    display: inline-flex;
    align-items: center;
    height: var(--ecosystem-height-tag);
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--ecosystem-tag-bg);
    color: var(--ecosystem-text);
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ecs3-tag-invert {
    margin-left:10px;
    display: inline-flex;
    align-items: center;
    height: var(--ecosystem-height-tag);
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--ecosystem-text);
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    background-color: black;
    filter: invert(1);
}

.ecs3-tag-invert:hover {
    border-radius: 4px;
    border: 1px solid var(--ecosystem-accent-light-inverted);
    font-weight: 600;
}

.ecs3-tag:hover {
    border-radius: 4px;
    border: 1px solid var(--ecosystem-accent-light);
    font-weight: 600;
}

.ecs3-tag-accent {
    border-radius: 4px;
    border: 1px solid orange;
    font-weight: 600;
}

.ecs3-tag-accent2 {
    border-radius: 4px;
    border: 1px solid red;
    font-weight: 600;
}

.ecs3-tag-accent3 {
    border-radius: 4px;
    border: 1px solid #0a2d4b;
    font-weight: 600;
}

.ecs3-tag-accent4 {
    border-radius: 4px;
    border: 1px solid #2f4e5f;
    font-weight: 600;
}

.ecs3-tag-small {
    font-size: 9px;
    color: var(--ecosystem-text-secondary);
    font-style: italic;
}

.ecs3-fake-logo {
    margin-left:10px;
    display: inline-flex;
    align-items: center;
    height: var(--ecosystem-height-tag);
    font-size: 1rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--ecosystem-tag-bg);
    color: var(--ecosystem-text);
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-weight: bold;
    text-wrap: wrap;
    color: #333;
}

.ecs3-fake-logo:hover {
    border-radius: 4px;
    border: 1px solid var(--ecosystem-accent-light);
}

/* ===== MATERIALS LIST ===== */
.ecs3-material-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ecs3-material-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--ecosystem-text);
    padding: 4px 0;
    border-bottom: 1px solid #EDF3F6;
}

.ecs3-material-item:last-child {
    border-bottom: none;
}

.ecs3-material-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ecosystem-accent);
    flex-shrink: 0;
}

/* ===== CENTRAL HUB ===== */
.ecs3-central-hub {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ecs3-hex-svg {
    width: 100%;
    height: 100%;
}

.ecs3-sector-hex {
    cursor: pointer;
    transition: all 0.3s ease;
}

.ecs3-sector-hex:hover polygon {
    /* fill: #bbdce5;
    stroke: #4BACC6; */
    /* filter: brightness(0.95) drop-shadow(0 0 8px); */
    filter: drop-shadow(0 0 8px rgba(75, 172, 198, 0.4));
}

/* .ecs3-sector-hex:hover text {
    fill: darkgray;
} */




/* ===== BOTTOM ROW ===== */
.ecs3-bottom-row {
    margin-bottom: 16px;
}

/* .ecs3-card-wide {
    width: 100%;
} */

/* ===== FOOTER ===== */
.ecs3-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--ecosystem-footer-bg);
    border-radius: 10px;
}

.ecs3-footer-left {
    display: flex;
    align-items: center;
}

.ecs3-logo-small .ecs3-logo-text {
    font-size: 20px;
    color: var(--ecosystem-text);
}

.ecs3-logo-small .ecs3-logo-dot {
    width: 6px;
    height: 6px;
}

.ecs3-footer-center {
    font-size: 8px;
    font-weight: 600;
    color: var(--ecosystem-text);
    letter-spacing: 1px;
    text-align: center;
    max-width: 500px;
}

.ecs3-footer-right {
    font-size: 10px;
    font-weight: 500;
    color: var(--ecosystem-text);
}

/* ===== INTERACTIVE HIGHLIGHTS ===== */
.ecs3-card[data-highlight="true"] {
    border-color: var(--ecosystem-accent);
    box-shadow: 0 0 0 2px rgba(34, 128, 153, 0.2), 0 6px 24px var(--ecosystem-shadow);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--ecosystem-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--ecosystem-card-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ecosystem-accent-pale);
}

.ecs3-ecosystem-standalone-project a {
    cursor: pointer;
}
/* 
@media (max-width: 1023px) {
.ecs3-page-wrapper {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
} */