/* =========================================
   WEB3 PAGE STYLES
   Matches pricing.css aesthetics (Sidebar Layout + Glassmorphism)
   ========================================= */

/* --- SHARED LAYOUT: HEADER/SIDEBAR GRID --- */
.web3-section {
    position: relative;
    padding: 10vh 0;
    width: 100%;
    background: transparent;
    z-index: 2;
}

.web3-grid {
    display: grid;
    grid-template-columns: 0.8fr 2fr;
    gap: 4vw;
}

.web3-sidebar {
    position: relative;
}

.web3-content {
    display: flex;
    flex-direction: column;
}

/* --- TYPOGRAPHY (Matching Pricing) --- */
/* web3-eyebrow, web3-headline, web3-subline → shared.css */

/* Override: subline max-width for web3 */
.web3-subline {
    max-width: 700px;
}

/* --- 1. HERO SECTION --- */
/* Uses generic web3-section/web3-grid layout */

/* --- 2. TERMINOLOGY SECTION (TABLE) --- */
/* Styled to match Pricing Features or Data Terminal */
.web3-table-wrapper {
    background: var(--surface-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.web3-table-wrapper:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

.web3-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-main);
}

.web3-table th {
    text-align: left;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-mint);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(52, 254, 194, 0.02);
}

.web3-table td {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.6;
    vertical-align: top;
}

.web3-table tr:last-child td {
    border-bottom: none;
}

.web3-term-cell {
    font-weight: 600;
    color: var(--text-white);
    width: 25%;
    min-width: 180px;
}

/* --- 3. ECOSYSTEM SECTION (CARDS) --- */
.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* .eco-card glassmorphism/reveal/hover → shared.css */
.eco-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
}


.eco-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.eco-number {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-grey);
    font-size: 0.8rem;
    opacity: 0.5;
}

.eco-title {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: -0.02em;
    margin: 0;
    transition: color 0.3s ease;
}

.eco-card:hover .eco-title {
    color: var(--accent-mint);
}

.eco-desc {
    font-family: var(--font-main);
    font-size: 1.05rem;
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.eco-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eco-list-item {
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-grey);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.eco-list-icon {
    color: var(--accent-mint);
    font-size: 0.7rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.eco-list-item strong {
    color: var(--text-white);
    font-weight: 500;
}

/* --- 4. PORTFOLIO SCROLL SECTION --- */

.web3-scroll-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.web3-nav-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 1.0rem;
}

.web3-nav-btn:hover {
    border-color: var(--accent-mint);
    color: var(--accent-mint);
    background: rgba(52, 254, 194, 0.1);
}


.web3-portfolio-scroll {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 10px 0 40px 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Smooth scrolling for js interaction */
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-top: 20px;
}

.web3-portfolio-scroll::-webkit-scrollbar {
    display: none;
}

/* Work Card Styles */
.web3-work-card {
    flex: 0 0 400px;
    height: 500px;
    position: relative;
    background: transparent;
    border: 1px solid var(--border-color);
    scroll-snap-align: start;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.web3-work-card:hover {
    border-color: var(--accent-mint);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background: var(--surface-hover);
}


.web3-card-img-container {
    width: 100%;
    height: 72%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: #000;
}

/* .web3-card-img-container::after shine sweep → shared.css */

.web3-work-card:hover .web3-card-img-container::after {
    left: 150%;
}

/* .web3-card-img grayscale/opacity/transition → shared.css */
.web3-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.web3-card-info {
    padding: 25px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(10, 30, 70, 0.9) 0%, rgba(1, 1, 2, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.web3-work-card:hover .web3-card-info {
    background: linear-gradient(180deg, rgba(52, 254, 194, 0.15) 0%, rgba(1, 1, 2, 0.95) 100%);
}

/* Ensure no blue tint unless hovered/active if inherited */

.web3-card-title {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.web3-work-card:hover .web3-card-title {
    color: var(--accent-mint);
}

.web3-card-tags {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.web3-work-card:hover .web3-card-tags {
    color: var(--accent-mint);
    opacity: 0.8;
}


/* web3-cta-btn base + hover → shared.css */
.web3-cta-btn {
    margin-top: 30px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .web3-grid {
        grid-template-columns: 1fr;
    }

    .web3-sidebar {
        display: none;
    }

    .ecosystem-grid {
        grid-template-columns: 1fr;
    }

    .web3-work-card {
        flex: 0 0 320px;
        height: 420px;
    }
}

@media (max-width: 768px) {

    .web3-table th,
    .web3-table td {
        padding: 15px 15px;
        font-size: 0.85rem;
    }

    .web3-headline {
        font-size: 2.2rem;
    }

    .web3-term-cell {
        width: auto;
        min-width: auto;
    }

    /* Adjust portfolio scroll padding */
    .web3-portfolio-scroll {
        padding-right: 20px;
        /* peek next card */
    }

    .web3-scroll-controls {
        display: none;
        /* Hide custom arrows on mobile, rely on swipe */
    }
}