﻿/*header*/
.page-intro {
    background: var(--white);
    padding: 80px 0 40px;
    margin-top: 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .page-intro::before {
        content: '';
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        height: 200px;
        background: var(--primary-light);
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.5;
        z-index: 1;
    }

    .page-intro .container {
        position: relative;
        z-index: 5;
    }

.intro-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(134,166,240,0.3);
}

.intro-title {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.2;
}

.intro-text {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 300;
    line-height: 1.6;
}

.text-highlight-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .page-intro {
        padding: 60px 0 30px;
        margin-top: 60px;
    }

    .intro-title {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
        padding: 0 20px;
    }
}


/*  PAGE LAYOUT  */
.resource-page {
    background: var(--background-color);
    /*min-height: 100vh;*/
}

/*  HEADER (Minimal)  */
.resource-header {
    padding: 120px 0 40px;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.resource-header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

.resource-title h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.resource-title h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.resource-title p {
    color: var(--gray);
    font-size: 1rem;
    max-width: 500px;
}

.resource-stats {
    display: flex;
    gap: 2rem;
}

.stat-badge {
    text-align: right;
}

.stat-badge .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: monospace;
}

.stat-badge .label {
    font-size: 0.8rem;
    color: var(--gray);
}

/*  SEARCH / FILTER BAR */
.resource-toolbar {
    /*background: var(--white);*/
    padding: 1rem 0;
    /*border-bottom: 1px solid rgba(0, 0, 0, 0.05);*/
    /*position: sticky;*/
    top: 85px;
    z-index: 50;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.search-box i {
    color: var(--gray);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: var(--gray);
}

.category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 2px solid var(--primary-light);
    background: var(--white);
    color: var(--text-color);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.filter-chip.active {
    background: var(--primary-color);
    color: white;
}

.filter-chip:hover:not(.active) {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

/*  DIRECTORY GRID */
.resource-directory {
    padding: 3rem 0 0rem;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Category Section Headers */
.category-section {
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
     category-section-tight {
        margin-top: -1.4rem;
    }
    
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.category-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.category-header h2 {
    font-size: 1.3rem;
    color: var(--text-color);
}

.category-count {
    background: var(--background-color);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--gray);
}

/* Link Item */
/*.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}*/

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.link-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.link-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.link-favicon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.link-details h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-color);
}

.link-details p {
    font-size: 0.8rem;
    color: var(--gray);
}

.link-url {
    font-size: 0.75rem;
    color: var(--gray);
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-url span {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-url i {
    opacity: 0.5;
    font-size: 0.7rem;
}

.link-action {
    opacity: 0;
    transition: opacity 0.2s;
}

.link-item:hover .link-action {
    opacity: 1;
}

.link-action a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/*  DISCLAIMER */
.disclaimer-wrapper {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    /*padding: 0 2rem;*/
    /*margin-bottom: 2rem;*/
}

.disclaimer-card {
    border-radius: 20px;
    padding: 1rem 1.5rem;
    text-align: center;
    color: var(--gray);
    font-size: smaller;
}

.disclaimer-card i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.disclaimer-card p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

/*  EMPTY STATE  */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 24px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--gray);
}


/*  TWO COLUMN LAYOUT  */
.two-column {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/*  RESPONSIVE  */
@media (max-width: 1024px) {
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .quick-notes {
        position: static;
        order: 2;
    }
    
    .resource-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resource-stats {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stat-badge {
        text-align: left;
    }
    
    .directory-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .resource-header {
        padding: 100px 0 30px;
    }
    
    .resource-title h1 {
        font-size: 1.8rem;
    }
    
    .resource-toolbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .link-info {
        flex-wrap: wrap;
    }
    
    .link-url {
        display: none;
    }
    
    .link-action {
        opacity: 1;
    }
}