.resource-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.resource-sidebar-wrapper {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 20px 16px;
    box-shadow: -4px 0 16px rgba(0,0,0,0.04), -8px 0 32px rgba(0,0,0,0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.9);
    width: 240px;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 120px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.resource-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-section-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(0, 0, 0, 0.25);
    font-weight: 400;
    margin-bottom: 8px;
    padding-left: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.sidebar-tools {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
}

.tool-link {
    font-size: 9px;
    color: #000;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    padding: 0 0 0 6px;
    background: transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-left: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tool-link i {
    font-size: 11px;
    opacity: 0.6;
    transition: opacity 0.25s ease;
}

.tool-link:hover {
    border-left-color: #000;
    padding-left: 10px;
    color: #000;
}

.tool-link:hover i {
    opacity: 1;
}

.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}

.category-link {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.category-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
    transform: translateX(2px);
}

.sidebar-label {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 6px;
    margin-top: 16px;
}

.social-buttons-row {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    background: #000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.social-link.twitter {
    background: #000;
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: white;
}

.social-link i {
    font-size: 14px;
}

.x-logo {
    display: inline-block;
    width: 14px;
    height: 14px;
    font-weight: bold;
}

.x-logo::before {
    content: "𝕏";
    font-family: serif;
    font-weight: bold;
    color: white;
}

.sidebar-ad-unit {
    background: transparent;
    padding: 0;
    margin-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 16px;
}

.sidebar-ad-unit::before {
    content: 'Sponsored';
    display: block;
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 600;
}

.sidebar-toggle {
    position: absolute;
    left: 12px;
    top: 80px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.sidebar-toggle:hover {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.25);
    transform: scale(1.1);
}

.sidebar-toggle i {
    font-size: 11px;
    color: #000;
    transition: transform 0.3s ease;
}

.resource-sidebar.collapsed .sidebar-toggle {
    left: -220px;
}

.resource-sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.resource-sidebar.collapsed .resource-sidebar-wrapper {
    transform: translateX(100%);
}

@media (max-width: 991px) {
    .resource-sidebar {
        display: none;
    }
}
