/* Modern WaLinking CSS - WhatsApp Group/Channel Directory */


/* CSS Variables for Dark Theme */

:root {
    --primary-color: #25D366;
    --primary-dark: #128C7E;
    --secondary-color: #075E54;
    --accent-color: #34B7F1;
    --text-primary: #E8E8E8;
    --text-secondary: #B0B0B0;
    --background-light: #1A1A1A;
    --background-white: #2D2D2D;
    --background-dark: #1E1E1E;
    --border-color: #404040;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
}


/* Reset and Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}


/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}


/* Layout Components */

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* Header Styles */

.header {
    background: var(--background-white);
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo img {
    height: 32px;
    width: auto;
}


/* Header Navigation */

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-primary);
    text-decoration: none;
}

.nav-link:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.nav-link.btn-primary {
    background: var(--primary-color);
    color: white;
}

.nav-link.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}


/* Filter Toggle Button */

.filter-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-primary);
}

.filter-toggle-btn:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.filter-toggle-btn.active {
    background: var(--primary-color);
    color: white;
}

.filter-toggle-btn svg {
    width: 16px;
    height: 16px;
}


/* Dropdown Navigation */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.nav-dropdown-btn:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.nav-dropdown-btn svg {
    transition: transform 0.3s ease;
}

.nav-dropdown.active .nav-dropdown-btn svg {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 4px;
}

.nav-dropdown.active .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.nav-dropdown-content a:last-child {
    border-bottom: none;
}

.nav-dropdown-content a:hover {
    background: var(--background-light);
    color: var(--primary-color);
}


/* Scrollbar for dropdown */

.nav-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.nav-dropdown-content::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 3px;
}

.nav-dropdown-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.nav-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}


/* Main Content */

#main {
    flex: 1;
    padding: 1rem 0;
}

.main-content {
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col-sm-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 1rem;
}

.col-sm-9 {
    flex: 0 0 75%;
    max-width: 75%;
    padding: 0 1rem;
}


/* Search Form */

.search-form {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.selectbtn {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--background-white);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

.selectbtn:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.form-actions {
    text-align: center;
}

.serbtn {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-light);
}

.serbtn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}


/* Search Results */

.search-results {
    margin-bottom: 1.5rem;
}

.results-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 14px;
}


/* Featured Link */

.featured-link {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.featured-link:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.featured-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.featured-link h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.featured-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.featured-link .proimg {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.meta-item a:hover {
    color: var(--primary-dark);
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.featured-tags .innertag {
    padding: 4px 12px;
    background: var(--background-light);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.featured-tags .innertag:hover {
    background: var(--primary-color);
    color: white;
}

.featured-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.featured-link .btn {
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.featured-link .btn:hover {
    transform: translateY(-1px);
}


/* Content Sections */

.content-sections {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.content-section {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 2rem;
}

.content-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item strong {
    color: var(--text-primary);
}

.detail-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.detail-item a:hover {
    color: var(--primary-dark);
}

.steps-list {
    display: grid;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.guidelines-list {
    list-style: none;
}

.guidelines-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.guidelines-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.guidelines-list li:last-child {
    margin-bottom: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.benefit-item svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.9rem;
}


/* Footer */

.footer {
    background: var(--background-dark);
    color: var(--text-secondary);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-logo p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-white);
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}


/* Floating Actions */

.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.addbtn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.addbtn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.addbtn.top {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    width: 50px;
    height: 50px;
}

.addbtn.top:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}


/* Alert Messages */

.alertmsg {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-light);
}

.closebtn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.closebtn:hover {
    background: var(--background-light);
    color: var(--text-primary);
}


/* Load More Button */

.load-more-container {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 14px 32px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-light);
    justify-content: center;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-light);
}

.load-more-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.load-more-btn:disabled::before {
    display: none;
}

.load-more-btn .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.load-more-btn.htmx-request .spinner {
    display: inline-block;
}

.load-more-btn.htmx-request .load-more-text {
    display: none;
}


/* Load More Button States */

.load-more-btn.loading {
    pointer-events: none;
}

.load-more-btn.success {
    background: linear-gradient(135deg, #27AE60, #2ECC71);
}

.load-more-btn.error {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
}


/* Load More Button Animation */

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.load-more-btn:hover {
    animation: pulse 0.3s ease-in-out;
}


/* Load More Button Mobile Responsive */

@media (max-width: 768px) {
    .header {
        padding: 0.25rem 0;
    }
    .header .wrap {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .logo img {
        height: 28px;
    }
    .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .nav-link {
        padding: 4px 8px;
        font-size: 12px;
    }
    .nav-dropdown-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    .nav-dropdown-content {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        max-height: 50vh;
        border-radius: 12px 12px 0 0;
        border: none;
        border-top: 1px solid var(--border-color);
        margin-top: 0;
        min-width: auto;
        background: var(--background-white);
        box-shadow: var(--shadow-medium);
        z-index: 1001;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    .nav-dropdown.active .nav-dropdown-content {
        transform: translateY(0);
    }
    .nav-dropdown-content a {
        padding: 12px 16px;
        font-size: 14px;
        color: var(--text-primary);
        text-decoration: none;
        display: block;
        transition: var(--transition);
        border-bottom: 1px solid var(--border-color);
    }
    .nav-dropdown-content a:last-child {
        border-bottom: none;
    }
    .nav-dropdown-content a:hover {
        background: var(--background-light);
        color: var(--primary-color);
    }
    #main {
        padding: 1rem 0;
        width: 100%;
        overflow-x: hidden;
    }
    .row {
        flex-direction: column;
        margin: 0;
        width: 100%;
        overflow-x: hidden;
    }
    .col-sm-3 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
        margin-bottom: 1rem;
        width: 100%;
        overflow-x: hidden;
    }
    .col-sm-9 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .link-card-header {
        flex-direction: column;
        text-align: center;
    }
    .link-card-actions {
        justify-content: center;
        width: 100%;
    }
    .btn {
        flex: 1;
        justify-content: center;
    }
    .share-buttons {
        justify-content: center;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    .floating-actions {
        bottom: 10px;
        right: 10px;
    }
    .addbtn.top {
        bottom: 70px;
        left: 10px;
        right: auto;
    }
    .featured-meta {
        flex-direction: column;
        gap: 1rem;
    }
    .featured-actions {
        flex-direction: column;
    }
    .details-grid {
        grid-template-columns: 1fr;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    /* Mobile Grid Layout */
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .wrap {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .col-sm-3 {
        padding: 0;
        margin-bottom: 1rem;
        width: 100%;
        overflow-x: hidden;
    }
    .col-sm-9 {
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }
    .featured-link {
        padding: 1.5rem;
        width: 100%;
        overflow-x: hidden;
    }
    .addbtn {
        padding: 12px 16px;
        font-size: 14px;
    }
    .footer {
        padding: 2rem 0 1rem;
        width: 100%;
        overflow-x: hidden;
    }
    .content-section {
        padding: 1.5rem;
        width: 100%;
        overflow-x: hidden;
    }
    .header .wrap {
        gap: 0.5rem;
        width: 100%;
        overflow-x: hidden;
    }
    .logo img {
        height: 32px;
    }
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        overflow-x: hidden;
    }
}


/* Loading States */

.loading {
    opacity: 0.6;
    pointer-events: none;
}


/* Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Link Cards */

.link-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.link-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.link-card-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: column;
}

.link-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
}

.link-card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.link-card-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.link-card-info h3 a:hover {
    color: var(--primary-color);
}

.link-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.link-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.link-card-meta img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.link-card-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.link-card-meta a:hover {
    color: var(--primary-dark);
}

.link-card-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.link-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.innertag {
    padding: 4px 10px;
    background: var(--background-light);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.8rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.innertag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.link-card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--background-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.share-buttons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.share-buttons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.share-buttons a:hover svg {
    transform: scale(1.1);
}

.share-buttons svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}


/* Utility Classes */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}


/* Links Grid Layout */

.links-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}


/* Responsive grid adjustments */

@media (min-width: 1200px) {
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 767px) {
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}