/* Links Page Specific Styles */

/* Breadcrumb Navigation */
.breadcrumb-container {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e9e9e9;
    padding: 8px 0;
    margin-top: 120px; /* Adjust for fixed header */
}

.breadcrumb {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb .current {
    color: #666;
}

/* Links Section */
.links-section {
    padding: 40px 0;
    background-color: var(--light-bg);
}

.links-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.links-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-color);
    line-height: 1.6;
}

/* Search */
.search-container {
    max-width: 600px;
    margin: 30px auto;
    display: flex;
    position: relative;
}

#searchLinks {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#searchLinks:focus {
    border-color: var(--primary-color);
    outline: none;
}

#searchButton {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.3s;
}

#searchButton:hover {
    background: var(--secondary-color);
}

/* Alphabet Navigation */
.alphabet-nav {
    margin: 40px 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.alphabet-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    text-align: center;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.alphabet-nav a:hover,
.alphabet-nav a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Links Content */
.letter-section {
    margin-bottom: 50px;
    padding-top: 15px; /* Space for scrolling with fixed header */
}

.letter-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.link-item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.link-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.link-item p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.5;
}

.link-url {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 10px;
    word-break: break-all;
}

.link-url:hover {
    text-decoration: underline;
}

.link-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    display: inline-block;
    background-color: #e9e9e9;
    color: #555;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 40px;
    background-color: var(--white);
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
}

/* Highlighted Search Results */
.link-item.highlighted {
    border-left: 4px solid var(--primary-color);
}

/* Resource Button Style */
.resource-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.resource-btn:hover {
    background-color: var(--secondary-color);
}


/* Header Styles to match main site */
#header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .alphabet-nav {
        gap: 5px;
    }
    
    .alphabet-nav a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
        transition: 0.4s;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .alphabet-nav a {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .letter-section h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .alphabet-nav {
        gap: 4px;
    }
    
    .alphabet-nav a {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .link-item {
        padding: 15px;
    }
}

/* Disabled alphabet buttons */
.alphabet-nav .disabled {
    color: #ccc;
    cursor: not-allowed;
    padding: 5px;
    margin: 0 2px;
}
